UxrObjectBlink.StartBlinking Method

Starts a blinking animation using the emission material of an object.

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

Syntax

C#

public static UxrObjectBlink StartBlinking(
	GameObject gameObject,
	Color emissionColor,
	float blinksPerSec,
	float durationSeconds,
	bool useUnscaledTime = false
)

Parameters

 

gameObject
Type: GameObject
The GameObject to blink
emissionColor
Type: Color
The emission color
blinksPerSec
Type: System.Single
The blink frequency
durationSeconds
Type: System.Single
Total duration of the blinking animation
useUnscaledTime (Optional)
Type: System.Boolean
Whether to use unscaled time (unscaledTime) or not ( time)

Return Value

Type: UxrObjectBlink
Animation component

See Also

Reference

UxrObjectBlink Class
UltimateXR.Animation.GameObjects Namespace