ドキュメント

Unity Engine

Unity Engine

Handles.CapFunction

The function to use for drawing the handle e.g. Handles.RectangleCap.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Delegate
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public delegate void Handles.CapFunction(int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType)

Remarks

Custom CapFunction has two responsibilities:
  1. For [EventType.Layout event, call HandleUtility.AddControl to inform Unity about the distance of the handle from mouse position.
  2. For [EventType.Repaint event, render the actual handle.