Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

HandleUtility.AddControl

public static void AddControl(int controlId, float distance);

Description

Record a distance measurement from a handle.

All handles call this with their controlID during layout, then use nearestControl to check if they got the mouseDown.

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