기술 자료

Unity Engine

Unity Engine

Register(TElement)

Adds this callback's event handler to the given element.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

Register(T)

public void Register(TElement element)

Parameters

element

T
The element to add the callback to.

Remarks

If the event handler is already registered for the same phase (either TrickleDown or BubbleUp), this method has no effect.
Refer to the Handle event callbacks and value changes manual page for more information and examples.
This method allows this callback instance to be shared by multiple elements, resulting in a reduced memory footprint.