RogueWars Harald Yes I figured out how to do it properly with the SkeletonGraphic GameObject, however I was asking about the SkeletonAnimation GameObject that I shall be using in other scenes.
Oh, I assumed you were talking about SkeletonGraphic
according to your screenshots. You kept this secret from us until the end π.
RogueWars I tried Transform and Rect Transform, but neither seem to give me the option to preserve aspect when resizing the SkeletonAnimation GameObject
When using a Transform, a SkeletonAnimation GameObject behaves just as any normal mesh (a cube for example). If you scale the transform uniformly as Misaki has shown above, the skeleton will scale uniformly as well. If any of your parent Transform nodes has non-uniform scale (e.g. 2, 1, 1
), all nodes below it will be scaled non-uniformly as well.
Could you perhaps show what your problematic setup looks like, and what you would like to achieve?
Since you mentioned RectTransform
: In general it is not advisable to use RectTransform
as parents of non-UI elements like SkeletonAnimation
. When using RectTransform
(UI elements), SkeletonGraphic
is the suitable component. Likely you know that already, just mentioning to make sure.