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
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
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)' ?