Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

How can I start a new animation at a specific frame of another animation while using DragonBones?

Discussion in 'Animation' started by Man0li, Apr 13, 2021.

  1. Man0li

    Man0li

    Joined:
    Jan 13, 2020
    Posts:
    6
    So I have been working with animations from DragonBones in Unity by following this guide https://rakeshmalikblog.wordpress.com/2017/07/08/using-dragonbones-in-unity/ and in the guide he says: "The GotoAndStopByProgress function can be used to control an animation frame by frame.". I need to be able to play an animation at specific frames so they match up with the characters movement but I don't understand how to use this method or if there is another method that does this.

    I was looking through this https://github.com/DragonBones/Drag...ts/DragonBones/Scripts/animation/Animation.cs to see if I could understand the code and what it is looking for but I still don't understand. For this specific method it is asking for a "progress" argument/parameter that is a float but I don't know how to use that to get to a specific frame. If I wanted to start a new animation at frame 15 what would I put in?