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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Spriter Pro and Unity animations

Discussion in '2D' started by koniu699, Aug 24, 2015.

  1. koniu699

    koniu699

    Joined:
    Aug 3, 2015
    Posts:
    4
    Hey, I've got a problem and I can't come up with solution. I've got a skeletal animation made in Spriter Pro. I import it into my Unity project using spriter2unity plugin. It works like a charm. Now i want to modify the animation with some code. Id like to move/rotate some parts or my model (particularly head and neck of a dragon) to follow a mouse. Yet it looks like it is not possible to move parts of Spriter game object, because they always move back to they original position/rotation imported from spriter.

    Does any one know how it can be accomplished? Thanks in advance.
     
  2. kuchaku

    kuchaku

    Joined:
    Oct 14, 2014
    Posts:
    37
    You can try using Late Update to position the limbs. That's what I do for regular mecanim paper doll style animations.

    However, I used spriter awhile back, and found the animations were 'overriding' changes I'd try to make. I might have not fully understood it or it might be different now.

    For the time being, I just used bone based animation inside Unity, but have considered trying Spriter Again for work flow reasons.

    Hope late update will at least work out for limb positioning. I know it does for Unity created animations.
     
    theANMATOR2b likes this.