UxrAnimatedTransform.Rotate Method

Starts a rotation at a constant speed

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

Syntax

C#

public static UxrAnimatedTransform Rotate(
	GameObject gameObject,
	UxrTransformRotationSpace space,
	Vector3 speed,
	bool useUnscaledTime = false
)

Parameters

 

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

Return Value

Type: UxrAnimatedTransform
The animation component

See Also

Reference

UxrAnimatedTransform Class
UltimateXR.Animation.Transforms Namespace