UnityEditor.Handles.CubeCap C# (CSharp) Method

CubeCap() public static method

Draw a cube. Pass this into handle functions.

public static CubeCap ( int controlID, Vector3 position, Quaternion rotation, float size ) : void
controlID int The control ID for the handle.
position Vector3 The world-space position of the handle's start point.
rotation UnityEngine.Quaternion The rotation of the handle.
size float The size of the handle in world-space units.
return void
        public static void CubeCap(int controlID, Vector3 position, Quaternion rotation, float size)
        {
            if (Event.current.type == EventType.Repaint)
            {
                Graphics.DrawMeshNow(s_CubeMesh, StartCapDraw(position, rotation, size));
            }
        }