Fix missing game scripts types when starting editor from IDE with -skipCompile arg

This commit is contained in:
Wojtek Figat
2023-02-13 17:14:53 +01:00
parent cb83de4769
commit 19c24e2a4d
3 changed files with 25 additions and 0 deletions

View File

@@ -66,6 +66,11 @@ namespace FlaxEditor
/// </summary>
public static event Action ScriptsReloadEnd;
/// <summary>
/// Occurs when engine loads game scripts.
/// </summary>
public static event Action ScriptsLoaded;
/// <summary>
/// Occurs when code editor starts asynchronous open a file or a solution.
/// </summary>
@@ -86,6 +91,7 @@ namespace FlaxEditor
ReloadBegin = 5,
Reload = 6,
ReloadEnd = 7,
ScriptsLoaded = 8,
}
internal static void Internal_OnEvent(EventType type)
@@ -118,6 +124,9 @@ namespace FlaxEditor
case EventType.ReloadEnd:
ScriptsReloadEnd?.Invoke();
break;
case EventType.ScriptsLoaded:
ScriptsLoaded?.Invoke();
break;
}
}