API reference
API reference
Select your platform
No SDKs available
No versions available

InteractableTriggerBroadcaster Class

Extends MonoBehaviour
Acts as a forwarder of Trigger events for Rigidbody overlaps.
Used in conjunction with CollisionInteractionRegistry<TInteractor, TInteractable>.
Note: If Physics.simulationMode is SimulationMode.Script, ForceGlobalUpdateTriggers should be called after every call to Physics.Simulate(float)

Fields

Raised when a rigidbody collision is detected with the associated IInteractable.
Raised when a rigidbody collision with the associated IInteractable ends.

Protected Fields

bool _started[Get]

Protected Functions

virtual void Start ( )
virtual void OnTriggerStay
( Collider collider )
virtual void OnEnable ( )
virtual void FixedUpdate ( )
virtual void OnDisable ( )
virtual void OnDestroy ( )

Static Member Functions

Forces trigger broadcasters to update their trigger states.
If Physics.simulationMode is SimulationMode.Script, ForceGlobalUpdateTriggers should be called after every call to Physics.Simulate(float)

Member Functions

Injects all required dependencies for a dynamically instantiated InteractableTriggerBroadcaster.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the underlying IInteractable for a dynamically instantiated InteractableTriggerBroadcaster.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon