I know how to animate graphic elements in menus using classical frame-by-frame animation. But I need to create a smoother 2D animation, using bones.
However cannot figure out how to implement it in the UI menu, it just keeps showing me the white rectangle of the Image component. I can see the animation outlines, but it does not render, and it is very small in the middle of the white rectangle.
I also have the prefab of the animated object with the bone and the sprite it animates. Where in the hierarchy of the menu should I place it? And what components should I add to it? I tried various combinations, but with no success.
It is both in the menu prefab view and during runtime.
Please, any advice?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
I don't believe you can display a regular Sprite Renderer / bone rig in a UI Canvas.
I was afraid that was the case. Is there any other alternative I could use, if I have a lot of frames/long animation?
You can still attach sprites to Image components and rotate them in animations - just not with Sprite Renderers.
I've also heard tell of using a RenderTexture that records an object in the scene on a RawImage in a UI, but it's a general Unity topic rather than one specific to AC.