UxrAnimatedTransform.ScalingInterpolation Method

Starts scaling using an interpolation curve

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

Syntax

C#

public static UxrAnimatedTransform ScalingInterpolation(
	GameObject gameObject,
	Vector3 startScale,
	Vector3 endScale,
	UxrInterpolationSettings settings,
	Action finishedCallback = null
)

Parameters

 

gameObject
Type: GameObject
The GameObject to apply the scaling to
startScale
Type: Vector3
The start scale
endScale
Type: Vector3
The end scale
settings
Type: UltimateXR.Animation.Interpolation.UxrInterpolationSettings
The interpolation settings with the curve parameters
finishedCallback (Optional)
Type: System.Action
Optional callback called when the animation finished. Only applies to non-looping animations.

Return Value

Type: UxrAnimatedTransform
The animation component

See Also

Reference

UxrAnimatedTransform Class
UltimateXR.Animation.Transforms Namespace