I'm making some custom gizmos for my objects in Unity. I want them to work with the 2d and 3d-size setting in the Unity editor. Where do I get this value so I can use it in my script?

If you use http://docs.unity3d.com/Documentation/ScriptReference/Gizmos.DrawIcon.html it should be automatic. Otherwise you can try http://docs.unity3d.com/Documentation/ScriptReference/HandleUtility.GetHandleSize.html to get a correct size.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With