UxrAnimatedComponent<T>.ToVector4 Method

Converts a float value to a Vector4. Internally Vector4 values are used for everything but some animations only require to store a float value. The x component will be used to store the value.

Namespace: UltimateXR.Animation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

protected static Vector4 ToVector4(
	float v
)

Parameters

 

v
Type: System.Single
Float value to store

Return Value

Type: Vector4
Vector4 storing the float value in the x component.

See Also

Reference

UxrAnimatedComponent<T> Class
UltimateXR.Animation Namespace