Made the camera path arrows turn off every time we play or continue the path, without bringing them back if the path is paused or stopped, making its state in the UI more consistent.

This commit is contained in:
originalnicodr committed 2024-02-10 16:15:15 -03:00
1 parent bc58603398
commit a7038ec378
1 file changed
+2 -3
+2 -3
View File
@@ -331,7 +331,7 @@ namespace UnityExplorer.UI.Panels
UpdateCatmullRomMoverData();
GetCameraPathsManager().StartPath();
UIManager.ShowMenu = false;
if (pathVisualizer) pathVisualizer.SetActive(false);
visualizePathToggle.isOn = false;
}
if (unpauseOnPlay && UIManager.GetTimeScaleWidget().IsPaused()){
@@ -342,7 +342,7 @@ namespace UnityExplorer.UI.Panels
void TogglePause_OnClick(){
if(GetCameraPathsManager()){
GetCameraPathsManager().TogglePause();
if (pathVisualizer) pathVisualizer.SetActive(!GetCameraPathsManager().IsPaused());
if (visualizePathToggle.isOn && GetCameraPathsManager().IsPaused()) visualizePathToggle.isOn = false;
}
EventSystemHelper.SetSelectedGameObject(null);
@@ -351,7 +351,6 @@ namespace UnityExplorer.UI.Panels
void Stop_OnClick(){
if (GetCameraPathsManager()){
GetCameraPathsManager().Stop();
if (pathVisualizer) pathVisualizer.SetActive(true);
}
EventSystemHelper.SetSelectedGameObject(null);