ScriptReference/MonoBehaviour.OnDrawGizmosSelected #560
Replies: 1 comment
-
|
You can add this code at the top of the method so that gizmos are not drawn when the selection is just a parent of the object: #if UNITY_EDITOR
if (!UnityEditor.Selection.Contains(gameObject))
return;
#endif |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/MonoBehaviour.OnDrawGizmosSelected
https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnDrawGizmosSelected.html
Beta Was this translation helpful? Give feedback.
All reactions