Search Issue Tracker
Fixed in 5.0.X
Votes
1
Found in
4.0.0b7
Issue ID
493315
Regression
No
Documentation for OnDrawGizmos needs to be updated
The OnDrawGizmos documentation needs to be updated - it currently
states:
"Implement this OnDrawGizmos if you want to draw gizmos that are also
pickable and always drawn."
It should note that it is not drawn if the object is selected. For that case OnDrawGizmosSelected() should be used.
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
greggman
Dec 09, 2013 04:19
Yes! Please also list
* the correct way to set/use Gizmos.matrix. Do I set it to transform.localWorldToMatrix? Do I need to restore it?
* the correct way to use OnDrawGizmos vs OnDrawGizmosSelect. OnDrawGizmos is always called regardless of whether or not it is selected therefore the recommended way of using both needs to be documented.
* the correct way to handle whether or not the component is enabled. Currently, even if the component is disabled the functions are still called. Is that a bug or the expected behavior. Should we surround our code with 'if (enabled)' ?