Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DefaultAngleHandleDrawFunction(int, Vector3, Quaternion, float, EventType)

A Handles.CapFunction that draws a line terminated with Handles.CylinderHandleCap.
Read time 1 minuteLast updated 5 days ago

Definition

public static void DefaultAngleHandleDrawFunction(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)

Parameters

controlID

The control ID for the handle.

position

The position of the handle in the space of Handles.matrix.

rotation

The rotation of the handle in the space of Handles.matrix.

size

The size of the handle in the space of Handles.matrix. Use HandleUtility.GetHandleSize if you want a constant screen-space size.

eventType

Event type for the handle to act upon. By design it handles EventType.Layout and EventType.Repaint events.

Remarks

This method is the default value assigned to ArcHandle.angleHandleDrawFunction for new ArcHandle instances, and is not intended to be called on its own.