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

Official 2D Animation 8.0 released for Unity 2022.1

Discussion in '2D' started by rustum, Aug 26, 2022.

  1. Xnite

    Xnite

    Joined:
    Oct 3, 2015
    Posts:
    5
    I'm coming from Anima2D, and am a bit confused. With Anima2D I was able to create bones with code, and then animate them in the normal way with animation clips, etc... I had no need for anything else, especialy any sprite display or sprite manipulation.

    With the new 2D Animation package, bones seem inseparable from sprites. Is this true? Or is there a way I can just use bones by themselves (and also generate them with code).
     
    PBKitty and EvOne like this.
  2. PBKitty

    PBKitty

    Joined:
    Dec 23, 2021
    Posts:
    45
    Bones without bound geometry are just a hierarchy of transforms, just like 3d bones. You can use empty game objects in pretty much all ways aside from the bone gizmos(though you can use the bone renderer from the animation rigging package to at least visualize them.)

    It is definitely annoying how they bound so many things together- I would really like if they let you use the same tools except producing mesh renderers, personally, and it would definitely be nice to be able to just arbitrarily apply the bone gizmos to gameobjects.
     
    X2DGmDev and EvOne like this.
  3. tonytopper

    tonytopper

    Joined:
    Jun 25, 2018
    Posts:
    229
    Is there a thread for 2D Animation 9.x.x? I am having some trouble with SpriteSkin components not properly binding to BoneTransforms in 9.x.x.

    I see mentions around this in the changelog for 10.x.x. I also see that 10.x.x finally has a public SetBoneTransforms. Will this ever get back-ported? Will I always need to upgrade to 2023.x.x to get 2D Animation 10.x.x?
     
    X2DGmDev likes this.
  4. MarekUnity

    MarekUnity

    Unity Technologies

    Joined:
    Jan 6, 2017
    Posts:
    214
    @tonytopper as a rule, we usually don't add public APIs in the middle of the package lifecycle e.g. 9.x.x ones its released. However, I took a note of this request and will try to help you via a helper script.
     
  5. MarekUnity

    MarekUnity

    Unity Technologies

    Joined:
    Jan 6, 2017
    Posts:
    214
    You can add this script to your project as a workaround. It will enable you to call SetBoneTransforms on your SpriteSkins with Animation package version < 10.x. Please note that this script is provided as is and didn't go through our QA process.
     
    DragonCoder likes this.