UxrAnimatedTransform.StopTranslation Method (GameObject, Boolean)

Stops the translation animation on an object if it has an UxrAnimatedTransform component currently attached.

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

Syntax

C#

public static void StopTranslation(
	GameObject gameObject,
	bool restoreOriginal = true
)

Parameters

 

gameObject
Type: GameObject
Target GameObject
restoreOriginal (Optional)
Type: System.Boolean
Whether to reset the position to the state before the animation started.

See Also

Reference

UxrAnimatedTransform Class
StopTranslation Overload
UltimateXR.Animation.Transforms Namespace