UxrAnimatedTransform.Scale Method
Starts scaling at a constant speed
Namespace: UltimateXR.Animation.Transforms
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static UxrAnimatedTransform Scale(
GameObject gameObject,
Vector3 speed,
bool useUnscaledTime = false
)
Parameters
- gameObject
- Type: GameObject
The GameObject to apply the scaling to - speed
- Type: Vector3
The scaling speed (units per second in X/Y/Z axes) - 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