- Home /
What is a difference between GizmoType.Active and GizmoType.Selected?
I trying to understand DrawGizmo attibute.
https://docs.unity3d.com/ScriptReference/DrawGizmo.html
I try to find difference between GizmoType.Active and GizmoType.Selected.
https://docs.unity3d.com/ScriptReference/GizmoType.html
I do many tests but I see no difference.
Answer by unityBerserker · Dec 21, 2017 at 05:06 PM
GizmoType.Selected - gizmo will display when we select gameObjects in SceneView or Hierarchy Window. .
This flag allow us to select MULTIPLE gameObjects and draw gizmo for all of them.
GizmoType.Active - gizmo will display when we select one gameObject in SceneView or Hierarchy Window.
If we select multiple gameObjects gizmo will be displayed ONLY FOR FIRST selected.
Your answer
Follow this Question
Related Questions
Select object by selecting gizmo or handle? 1 Answer
Controlling OnDrawGizmo 1 Answer
Make hidden gizmos invisible 0 Answers
Component on SceneView camera has wrong gameObject In OnDrawGizmos. 0 Answers
Gizmos at RunTime 1 Answer