Skip to content

Target Area Triggerer

eisclimber edited this page Feb 11, 2024 · 2 revisions

Target Area Triggerer

class in ExPresSXR.Minigames.SwordCleaning / Extends UnityEngine.MonoBehaviour
Component added via Component Menu

Description

Triggers Target Areas that are set as target and tracks the progress of triggering all targets.
Should be attached to the GameObject holding the Collider that is used as a trigger.

Members

Editor Properties

  • TargetArea[] targets: The TargetAreas that are required to be completed.
  • bool _setupOnAwake: The number of targets to be completed. Default: true
  • bool _emitEventsExclusively: If enabled all events each of the three events below will be called mutually exclusive. This prevents errors when using these for different haptic feedbacks. Default: true

Public Properties

  • int numTargets: (Readonly) How many targets are available/required for this TargetAreaTriggerer.

Public Methods

  • void SetupTargets(): Connects this to the TagetAreas in _targets.

Events

  • OnTargetAreaActionPerformed: If an action was performed on a valid TargetArea.
  • OnSingleTargetCompleted: If a single TargetArea was completed but not all.
  • OnSingleTargetCompleted: If a all TargetAreas were completed.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally