UxrAnimatedLightIntensity.Animate Method

Starts an animation at a constant speed

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

Syntax

C#

public static UxrAnimatedLightIntensity Animate(
	Light light,
	float speed,
	bool useUnscaledTime = false
)

Parameters

 

light
Type: Light
The light component to apply the animation to
speed
Type: System.Single
The animation speed. For int/float values use .x, for Vector2 use x and y. For Vector3 use x, y, z. etc.
useUnscaledTime (Optional)
Type: System.Boolean
If it is true then Time.unscaledTime will be used to count seconds. By default it is false meaning Time.time will be used instead. Time.time is affected by Time.timeScale which in many cases is used for application pauses or bullet-time effects, while Time.unscaledTime is not.

Return Value

Type: UxrAnimatedLightIntensity
Animation component

See Also

Reference

UxrAnimatedLightIntensity Class
UltimateXR.Animation.Lights Namespace