Version: 2022.3

Handles.DrawSelectionFrame

切换到手册
public static void DrawSelectionFrame (int controlID, Vector3 position, Quaternion rotation, float size, EventType eventType);

参数

position Handles.matrix 空间中手柄的位置。
rotation 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.
controlID 手柄的控件 ID。
eventType The type of event for the handle to act on. You can only use this function with EventType.Repaint.

描述

Creates a square at a position and rotation with a specified size.