Skip to content

Commit 15db2ed

Browse files
committed
[ScriptEngine] Protect plugin instances with HideAndDontSave
1 parent e6e9176 commit 15db2ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ScriptEngine/ScriptEngine.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ private void ReloadPlugins()
9494

9595
scriptManager = new GameObject($"ScriptEngine_{DateTime.Now.Ticks}");
9696
DontDestroyOnLoad(scriptManager);
97+
scriptManager.hideFlags = HideFlags.HideAndDontSave;
9798

9899
var files = Directory.GetFiles(ScriptDirectory, "*.dll", IncludeSubdirectories.Value ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly);
99100
if (files.Length > 0)

0 commit comments

Comments
 (0)