diff --git a/GlitchyEngine/src/World/Scene.bf b/GlitchyEngine/src/World/Scene.bf index 6ca639c..d677367 100644 --- a/GlitchyEngine/src/World/Scene.bf +++ b/GlitchyEngine/src/World/Scene.bf @@ -133,6 +133,9 @@ namespace GlitchyEngine.World if (initializeScripts) { + // Set context, so that constructors can correctly reference the scene + ScriptEngine.SetContext(target); + //CopyComponents(this, target); // Copy ScriptComponents... needs extra handling for the script instances