UxrAnimatedTransform.PositionInterpolation Method
Starts a translation using an interpolation curve
Namespace: UltimateXR.Animation.Transforms
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static UxrAnimatedTransform PositionInterpolation(
GameObject gameObject,
UxrTransformTranslationSpace space,
Vector3 startPos,
Vector3 endPos,
UxrInterpolationSettings settings,
Action finishedCallback = null
)
Parameters
- gameObject
- Type: GameObject
The GameObject to apply the translation to - space
- Type: UltimateXR.Animation.Transforms.UxrTransformTranslationSpace
The space where the translation takes place - startPos
- Type: Vector3
The start position - endPos
- Type: Vector3
The end position - 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