Meta SDK2 Beta  2.7.0
Meta.Buttons.MetaButtonGameObjectEventBroadcaster Class Reference

Broadcast the button events from the headset via GameObject.FindObjectsOfType. This class is not performant but is the easiest way to interact with buttons. For more performant implementations please see MetaButtonIndividualEventBroadcaster, MetaButtonGeneralEventBroadcaster or MetaButtonEventBroadcaster. More...

Inheritance diagram for Meta.Buttons.MetaButtonGameObjectEventBroadcaster:
Meta.Buttons.BaseMetaButtonEventBroadcaster Meta.MetaBehaviour Meta.BaseMetaBehaviour< IMetaContext >

Protected Member Functions

override void ProcessButtonEvents (MetaButton button)
 Process the button events More...
 

Properties

ButtonBroadcastType BroadcastType [get, set]
 Gets or sets the Broadcast type of this broadcaster More...
 
- Properties inherited from Meta.BaseMetaBehaviour< IMetaContext >
metaContext [get]
 Contains references to modules used to provide Meta functionality in the scene. More...
 

Detailed Description

Broadcast the button events from the headset via GameObject.FindObjectsOfType. This class is not performant but is the easiest way to interact with buttons. For more performant implementations please see MetaButtonIndividualEventBroadcaster, MetaButtonGeneralEventBroadcaster or MetaButtonEventBroadcaster.

Member Function Documentation

◆ ProcessButtonEvents()

override void Meta.Buttons.MetaButtonGameObjectEventBroadcaster.ProcessButtonEvents ( MetaButton  button)
inlineprotectedvirtual

Process the button events

Parameters
buttonButton event

Implements Meta.Buttons.BaseMetaButtonEventBroadcaster.

Property Documentation

◆ BroadcastType

ButtonBroadcastType Meta.Buttons.MetaButtonGameObjectEventBroadcaster.BroadcastType
getset

Gets or sets the Broadcast type of this broadcaster