docs.unity3d.com
    Show / Hide Table of Contents

    Change the orientation and alignment of the animated GameObject

    Select the orientation and alignment that a GameObject uses when it animates along a spline.

    To change the orientation and alignment of the animated GameObject, do the following in the GameObject's Spline Animate component:

    1. In the Up Axis dropdown, select which axis the animated GameObject uses as its up direction. The y-axis is the default up direction.
    2. In the Forward Axis dropdown, select which axis the animated GameObject uses as its forward direction. The z-axis is the default forward direction.
    3. In the Align To dropdown, select a space to orient the animated GameObject to:
      • Select None to set no alignment for the animated GameObject. The GameObject's rotation is unaffected.
      • Select Spline Element to align animated GameObjects to an interpolated orientation calculated from the rotation of the knots closest to its position.
      • Select Spline Object to align animated GameObjects to the orientation of the target spline.
      • Select World Space to align animated items to world space orientation.

    Additional resources

    • Animate a GameObject along a spline
    • Control the animated GameObject's movement
    • Spline Animate component reference
    • Use components
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023