Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ArcHandle.DefaultAngleHandleDrawFunction

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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

Parameters

controlIDThe control ID for the handle.
positionThe position of the handle in the space of Handles.matrix.
rotationThe rotation of the handle in the space of Handles.matrix.
sizeThe size of the handle in the space of Handles.matrix. Use HandleUtility.GetHandleSize if you want a constant screen-space size.
eventTypeEvent type for the handle to act upon. By design it handles EventType.Layout and EventType.Repaint events.

Description

A CapFunction that draws a line terminated with Handles.CylinderHandleCap.

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

Did you find this page useful? Please give it a rating: