FollowMeToggle Class

Definition

A utility script for toggling the 'Follow Me' behavior by activating/deactivating the Radial View Solver. This script also provides optional toggle at specified distance.

C++
public ref class FollowMeToggle : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
FollowMeToggle
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute

Constructors

Properties

AutoFollowAtDistance

Should following be automatically enabled when the user is further than a certain distance away?

AutoFollowDistance

If autoFollowAtDistance is enabled, what distance to trigger auto following at.

AutoFollowTransformTarget

Optional transform to use when using autoFollowAtDistance. If not specified the local transform is used.

AutoFollowTriggered

Event that gets fired when auto follow is triggered.

ButtonBehavior

A way to indicate how should interactable react to the follow behavior state.

InteractableObject

An optional Interactable to select/deselect when toggling the follow behavior.

VisualizationObject

An optional object for visualizing the 'Follow Me' mode state.

Methods

SetFollowMeBehavior(Boolean)

Enables or disables the solver based on the follow parameter.

ToggleFollowMeBehavior()

Toggles the current follow behavior of the solver.

Applies to

Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0