Modifier

Partager via


IMixedRealityEventSystem.Register(GameObject) Method

Definition

Caution

Register using a game object causes all components of this object to receive global events of all types. Use RegisterHandler<> methods instead to avoid unexpected behavior.

Registers a GameObject to listen for events from this Event System.

public:
 void Register(UnityEngine::GameObject ^ listener);
[System.Obsolete("Register using a game object causes all components of this object to receive global events of all types. Use RegisterHandler<> methods instead to avoid unexpected behavior.")]
public void Register (UnityEngine.GameObject listener);
[<System.Obsolete("Register using a game object causes all components of this object to receive global events of all types. Use RegisterHandler<> methods instead to avoid unexpected behavior.")>]
abstract member Register : UnityEngine.GameObject -> unit
Public Sub Register (listener As GameObject)

Parameters

listener
UnityEngine.GameObject

GameObject to add to EventListeners.

Attributes

Applies to