ドキュメント

Unity Engine


Unity Engine


Register(VisualElement, in TArg)

Sets a value for the provided element for this argument identifier. That value can then be retrieved by callbacks that have a second argument of the same type.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

Register(VisualElement, T)

public void Register(VisualElement element, in TArg value)

Parameters

The element to set a value for.

value

T
The value that will be used by callbacks on this element for the provided argument.

Remarks

If a callback is triggered on an element for which the expected argument value has not been set, that callback will be skipped and a warning will be printed.
Additional Resources: EventArg<TArg>.Unregister