Scaling Gizmo Depending on the Scene View Camera
Scaling Gizmo Depending on the Scene View Camera
When we use Gizmos API for drawing objects, the object is drawn in world space and it won’t get scaled depending on the camera zoom in the scene view, to fix this, you need to scale the size of gizmo, by using HandleUtility.GetHandleSize: (The below is an example usage of this method)
using System.Collections; using System.Collections.Generic; using UnityEngine; #if UNITY_EDITOR using…
View On WordPress















