diff --git a/Source/Engine/Content/SceneReference.h b/Source/Engine/Content/SceneReference.h index dae02606f..da25b2c73 100644 --- a/Source/Engine/Content/SceneReference.h +++ b/Source/Engine/Content/SceneReference.h @@ -4,6 +4,7 @@ #include "Engine/Core/Types/Guid.h" #include "Engine/Core/ISerializable.h" +#include "Engine/Scripting/ScriptingType.h" /// /// Represents the reference to the scene asset. Stores the unique ID of the scene to reference. Can be used to load the selected scene. diff --git a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.Cpp.cs b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.Cpp.cs index a0184c63e..76ef5d805 100644 --- a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.Cpp.cs +++ b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.Cpp.cs @@ -2302,7 +2302,10 @@ namespace Flax.Build.Bindings separator = true; contents.Append(parameterInfo.Type).Append(' ').Append(parameterInfo.Name); } - contents.Append(") override").AppendLine(); + contents.Append(')'); + if (functionInfo.IsConst) + contents.Append(" const"); + contents.Append(" override").AppendLine(); contents.AppendLine(" {"); // TODO: try to use ScriptVTable for interfaces implementation in scripting to call proper function instead of manually check at runtime if (functionInfo.Parameters.Count != 0)