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.
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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
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)' ?