UnityEditor.Handles.CylinderCap C# (CSharp) Method

CylinderCap() public static method

Draw a Cylinder. Pass this into handle functions.

public static CylinderCap ( 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 CylinderCap(int controlID, Vector3 position, Quaternion rotation, float size)
        {
            if (Event.current.type == EventType.Repaint)
            {
                Graphics.DrawMeshNow(s_CylinderMesh, StartCapDraw(position, rotation, size));
            }
        }