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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答