UxrAnimatedTransform.Translate Method

Starts a translation at a constant speed

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

Syntax

C#

public static UxrAnimatedTransform Translate(
	GameObject gameObject,
	UxrTransformTranslationSpace space,
	Vector3 speed,
	bool useUnscaledTime = false
)

Parameters

 

gameObject
Type: GameObject
The GameObject to apply the translation to
space
Type: UltimateXR.Animation.Transforms.UxrTransformTranslationSpace
The space where the translation takes place
speed
Type: Vector3
The translation speed (units per second in X/Y/Z axes)
useUnscaledTime (Optional)
Type: System.Boolean
If it is true then unscaledTime will be used to count seconds. By default it is false meaning time will be used instead. time is affected by timeScale which in many cases is used for application pauses or bullet-time effects, while unscaledTime is not.

Return Value

Type: UxrAnimatedTransform
The animation component

See Also

Reference

UxrAnimatedTransform Class
UltimateXR.Animation.Transforms Namespace