Class LocomotionMediator
Behavior that mediates user locomotion by providing Locomotion
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit.Locomotion
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("XR/Locomotion/Locomotion Mediator", 11)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.1/api/UnityEngine.XR.Interaction.Toolkit.Locomotion.LocomotionMediator.html")]
[RequireComponent(typeof(XRBodyTransformer))]
public class LocomotionMediator : MonoBehaviour
Properties
xrOrigin
The XR Origin controlled by the XRBody
Declaration
public XROrigin xrOrigin { get; set; }
Property Value
Type | Description |
---|---|
XROrigin |
Methods
Awake()
See Mono
Declaration
protected void Awake()
GetProviderLocomotionState(LocomotionProvider)
Queries the state of locomotion for the given provider.
Declaration
public LocomotionState GetProviderLocomotionState(LocomotionProvider provider)
Parameters
Type | Name | Description |
---|---|---|
Locomotion |
provider | The provider whose locomotion state to query. |
Returns
Type | Description |
---|---|
Locomotion |
Returns the state of locomotion for the given |
Update()
See Mono
Declaration
protected void Update()