UxrAnimatedLightIntensity.AnimateNoise Method

Starts an animation using noise.

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

Syntax

C#

public static UxrAnimatedLightIntensity AnimateNoise(
	Light light,
	float noiseTimeStart,
	float noiseTimeDuration,
	float noiseValueStart,
	float noiseValueEnd,
	float noiseValueMin,
	float noiseValueMax,
	float noiseValueFrequency,
	bool useUnscaledTime = false,
	Action finishedCallback = null
)

Parameters

 

light
Type: Light
The light component to apply the animation to
noiseTimeStart
Type: System.Single
The time in seconds the noise will start (Time.time or Time.unscaledTime value)
noiseTimeDuration
Type: System.Single
The duration in seconds of the noise animation
noiseValueStart
Type: System.Single
The start intensity value
noiseValueEnd
Type: System.Single
The end intensity value
noiseValueMin
Type: System.Single
The minimum intensity value for the noise
noiseValueMax
Type: System.Single
The maximum intensity value for the noise
noiseValueFrequency
Type: System.Single
The noise frequency
useUnscaledTime (Optional)
Type: System.Boolean
If true it will use Time.unscaledTime, if false it will use Time.time
finishedCallback (Optional)
Type: System.Action
Optional callback when the animation finished

Return Value

Type: UxrAnimatedLightIntensity
Animation component

See Also

Reference

UxrAnimatedLightIntensity Class
UltimateXR.Animation.Lights Namespace