Fix inconsistent Time.GameTime when entering play mode
GameWindow entering effect does not reset properly sometimes when play mode is entered due to game time getting reset after the `OnPlayBegin` event.
This commit is contained in:
@@ -159,11 +159,11 @@ namespace FlaxEditor.States
|
||||
SceneDuplicated?.Invoke();
|
||||
RestoreSelection();
|
||||
|
||||
Time.Synchronize(true);
|
||||
|
||||
Editor.OnPlayBegin();
|
||||
IsPlayModeStarting = false;
|
||||
Profiler.EndEvent();
|
||||
|
||||
Time.Synchronize(true);
|
||||
}
|
||||
|
||||
private void SetupEditorEnvOptions()
|
||||
|
||||
Reference in New Issue
Block a user