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
- Size of ShadowCaster2D with Casting Source set to a Collider increases when RigidBody2D is attached to the GameObject
- GameObjects with a material derived from a Custom Lighting Surface Shader are displayed as skewed on quads when the Camera's Width and Height properties of the Viewport Rect are lower than 1
- Warning 'Unable to find player assmebly' is thrown when building some Project Templates
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
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)' ?