Class VRControllerInputVisualExtensions
Extension methods for VRControllerInputVisual components.
Inheritance
System.Object
VRControllerInputVisualExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Liminal.SDK.VR.Avatars.Controllers
Assembly: Liminal.SDK.dll
Syntax
public static class VRControllerInputVisualExtensions
Methods
| Improve this Doc View SourceFadeColor(VRControllerInputVisual, Color, Single, AnimationCurve)
Fades the color of a VRControllerInputVisual over time.
Declaration
public static Coroutine FadeColor(this VRControllerInputVisual inputVisual, Color color, float duration, AnimationCurve curve = null)
Parameters
Type | Name | Description |
---|---|---|
VRControllerInputVisual | inputVisual | The VRControllerInputVisual to fade. |
UnityEngine.Color | color | The color to fade to. |
System.Single | duration | The duration of the fade, in secondse. |
UnityEngine.AnimationCurve | curve | The curve of the fade over time. |
Returns
Type | Description |
---|---|
UnityEngine.Coroutine | An awaitable Coroutine. |
PulseColor(VRControllerInputVisual, Color, Int32, Single, AnimationCurve)
Pulses the color of a VRControllerInputVisual over time.
Declaration
public static Coroutine PulseColor(this VRControllerInputVisual inputVisual, Color color, int count, float duration, AnimationCurve curve = null)
Parameters
Type | Name | Description |
---|---|---|
VRControllerInputVisual | inputVisual | The VRControllerInputVisual to pulse. |
UnityEngine.Color | color | The color to fade to. |
System.Int32 | count | The number of times to pulse within |
System.Single | duration | The duration of the pulse, in seconds. |
UnityEngine.AnimationCurve | curve | The curve of the fade over time. |
Returns
Type | Description |
---|---|
UnityEngine.Coroutine | An awaitable Coroutine. |
PulseColor(VRControllerInputVisual, Color, Single, AnimationCurve)
Pulses the color of a VRControllerInputVisual at a specific rate indefinitely.
Declaration
public static Coroutine PulseColor(this VRControllerInputVisual inputVisual, Color color, float rate, AnimationCurve curve = null)
Parameters
Type | Name | Description |
---|---|---|
VRControllerInputVisual | inputVisual | The VRControllerInputVisual to pulse. |
UnityEngine.Color | color | The color to fade to. |
System.Single | rate | The rate of each pulse, in seconds. |
UnityEngine.AnimationCurve | curve | The curve of the fade over time. |
Returns
Type | Description |
---|---|
UnityEngine.Coroutine | An awaitable Coroutine. |