UxrAnimatedLightIntensity.AnimateInterpolation Method

Starts an animation using an interpolation curve

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

Syntax

C#

public static UxrAnimatedLightIntensity AnimateInterpolation(
	Light light,
	float startValue,
	float endValue,
	UxrInterpolationSettings settings,
	Action finishedCallback = null
)

Parameters

 

light
Type: Light
The light component to apply the animation to
startValue
Type: System.Single
The start intensity value
endValue
Type: System.Single
The end intensity value
settings
Type: UltimateXR.Animation.Interpolation.UxrInterpolationSettings
The interpolation settings with the curve parameters
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