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

LocomotionTunneling Class

Extends MonoBehaviour, ITimeConsumer, IDeltaTimeConsumer
This component will listen to locomotion events and reduce the FOV of the player with a vignette based on the different character motions: rotation, linear movement, accelerations.

Properties

AnimationCurve RotationStrength[Get]
AnimationCurve AccelerationStrength[Get]
AnimationCurve MovementStrength[Get]
float FadeOutTime[Get]
float FadeOutWait[Get]

Member Functions

Sets a custom function that returns the last delta time in seconds.
Parameters
deltaTimeProvider
A delegate that returns the time elapsed since the last frame.
Sets a custom function that provides the current time in seconds.
Parameters
timeProvider
A delegate that returns the current time in seconds.

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )
virtual void LateUpdate ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon