Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Applying transformation after animation track.

Discussion in 'Timeline' started by jin-archipin, May 6, 2020.

  1. jin-archipin

    jin-archipin

    Joined:
    Dec 17, 2019
    Posts:
    35
    I have an animation track and I want to override some positions and rotations with custom track.
    I can do this with calling callback method from LateUpdate, but it doesn't work in Edit Mode. (because lateUpdate is not called in Edit Mode.)
    Is there any good workaround for this situation? I'm tired of playing every time I test it, cuz everything else is working exactly same as Play Mode.

    Thank you in advance.
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Can you use an [ExecuteInEditMode] attribute on your Monobehaviour with the LateUpdate()?
     
  3. jin-archipin

    jin-archipin

    Joined:
    Dec 17, 2019
    Posts:
    35
    It's great idea. Thank you so much.