Fix missing game scripts types when starting editor from IDE with -skipCompile arg
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user