Class TunnelingVignetteController
Provides methods for ITunneling
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit.Locomotion.Comfort
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("XR/Locomotion/Tunneling Vignette Controller", 11)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.1/api/UnityEngine.XR.Interaction.Toolkit.Locomotion.Comfort.TunnelingVignetteController.html")]
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public class TunnelingVignetteController : MonoBehaviour
Properties
currentParameters
(Read Only) The current Vignette
Declaration
public VignetteParameters currentParameters { get; }
Property Value
Type | Description |
---|---|
Vignette |
defaultParameters
The default Vignette
Declaration
public VignetteParameters defaultParameters { get; set; }
Property Value
Type | Description |
---|---|
Vignette |
locomotionVignetteProviders
List to store Locomotion
Declaration
public List<LocomotionVignetteProvider> locomotionVignetteProviders { get; set; }
Property Value
Type | Description |
---|---|
List<Locomotion |
Methods
Awake()
See Mono
Declaration
protected virtual void Awake()
BeginTunnelingVignette(ITunnelingVignetteProvider)
Queues an ITunneling
Declaration
public void BeginTunnelingVignette(ITunnelingVignetteProvider provider)
Parameters
Type | Name | Description |
---|---|---|
ITunneling |
provider | The ITunneling |
Remarks
Unity will automatically sort all providers by their aperture size to prioritize the control from the one with the smallest aperture size if multiple providers are calling this method.
EndTunnelingVignette(ITunnelingVignetteProvider)
Queues an ITunneling
Declaration
public void EndTunnelingVignette(ITunnelingVignetteProvider provider)
Parameters
Type | Name | Description |
---|---|---|
ITunneling |
provider | The ITunneling |
Remarks
Unity will automatically sort all providers by their aperture size to prioritize the control from the one with the smallest aperture size if multiple providers are calling this method.
Reset()
See Mono
Declaration
[Conditional("UNITY_EDITOR")]
protected virtual void Reset()
Update()
See Mono
Declaration
protected virtual void Update()