버그 수정
This commit is contained in:
@@ -61,7 +61,9 @@ namespace Studio.RuntimeGizmo
|
||||
workGizmoId = GizmoId.None;
|
||||
}
|
||||
public void SetWorkGizmoId(GizmoId gizmoId)
|
||||
{
|
||||
{
|
||||
if (ManagerHub.instance.Get<RunManager>().curState == RunManager.EState.Run)
|
||||
return;
|
||||
objectMoveGizmo.Gizmo.SetEnabled(false);
|
||||
objectRotationGizmo.Gizmo.SetEnabled(false);
|
||||
objectScaleGizmo.Gizmo.SetEnabled(false);
|
||||
@@ -102,6 +104,8 @@ namespace Studio.RuntimeGizmo
|
||||
}
|
||||
public void SetGizmoTargetObjects(List<GameObject> objects)
|
||||
{
|
||||
if (ManagerHub.instance.Get<RunManager>().curState == RunManager.EState.Run)
|
||||
return;
|
||||
selectedObjects.Clear();
|
||||
selectedObjects.AddRange(objects);
|
||||
objectMoveGizmo.SetTargetObjects(selectedObjects);
|
||||
@@ -111,6 +115,10 @@ namespace Studio.RuntimeGizmo
|
||||
|
||||
workGizmo.Gizmo.SetEnabled(selectedObjects.Count != 0);
|
||||
}
|
||||
public void ResetGizmo()
|
||||
{
|
||||
SetGizmoTargetObjects(new List<GameObject>());
|
||||
}
|
||||
private void OnGizmoDragBegin(Gizmo gizmo, int t)
|
||||
{
|
||||
onTransformBegin?.Invoke();
|
||||
|
||||
Reference in New Issue
Block a user