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

[Editor] Display an animation to edit in the animation window

Discussion in 'Scripting' started by LitchiSzu, Jun 7, 2018.

  1. LitchiSzu

    LitchiSzu

    Joined:
    May 14, 2016
    Posts:
    17
    Hi!

    I've made some custom Playable using the recent Playable API.
    However, unfortunately, unless an animation is assigned to an Animation component or is part of the Animator Controller assigned to an Animator on an object, I can't find any way to display my animation in the Animation Window.
    If I simply select the animation in the project tab, it displays it but since it has no binding to an object in that case, I can't add properties, I can only edit ones which are already there.

    So, what I would like is to know an entry point for me to make an editor script (or an attribute maybe?) to display an animation that is a serializable field in one of my script making use of the playable API.

    Any idea?

    Thanks,

    Clem