Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Is there a way to edit the animation clip with editor script?

Discussion in 'Animation' started by Upp000, Apr 27, 2023.

  1. Upp000

    Upp000

    Joined:
    Mar 4, 2021
    Posts:
    96
    I want to change all the y value of position data, and z value of all the rotation data for all the key frame to negative value if it is positive value, and positive if it is negative, can I do that?
     
  2. Yuchen_Chang

    Yuchen_Chang

    Joined:
    Apr 24, 2020
    Posts:
    111
    Here: AnimationUtility.
    Important methods:
    GetCurveBinding()
    ,
    GetEditorCurve()
    , and
    SetEditorCurve()
    .
     
    Upp000 likes this.