UxrObjectBlink.Setup Method

Sets up the blinking animation parameters.

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

Syntax

C#

public void Setup(
	MeshRenderer renderer,
	Color colorNormal,
	Color colorHighlight,
	float blinksPerSec = 4f,
	float durationSeconds = -1f
)

Parameters

 

renderer
Type: MeshRenderer
Renderer whose material will be animated
colorNormal
Type: Color
The emission color when it is not blinking
colorHighlight
Type: Color
The fully blinking color
blinksPerSec (Optional)
Type: System.Single
The blinking frequency
durationSeconds (Optional)
Type: System.Single
The total duration of the animation in seconds

See Also

Reference

UxrObjectBlink Class
UltimateXR.Animation.GameObjects Namespace