Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

Handles.DrawSelectionFrame

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

Declaration

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

Parameters

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.
controlID The control ID for the handle.
eventType The type of event for the handle to act on. You can only use this function with EventType.Repaint.

Description

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