OnDrawGizmos

Implement OnDrawGizmos if you want to draw gizmos that are also pickable and always drawn. This allows you to quickly pick important objects in your scene. You can also use OnDrawGizmos to draw the line or different types of Gizmos, such as Gizmos.DrawRay, Gizmos.DrawLine, Gizmos.DrawWireSphere, and so on, which will make it easier for you to debug.

Note

OnDrawGizmos will use a mouse position that is relative to the Scene view.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.30.178