IMixedRealityEventSystem.Register(GameObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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