mrhoody213 I change the anchor of the child "SklgrAgent" to stretch and now when I stretch the parent "BG" it follows but the position that I made in the child will change but I want it to be in fixed position like this:
You are indeed correct that the Edit Layout Bounds
functionality currently lacks a feature allowing you to customize the scaling-origin which is used during the fit-operation. I could reproduce that if the origin is at the bottom and you are framing the face, resizing the parent e.g. smaller horizontally scales the skeleton downwards and out of the frame. Moving the RectTransform
origin unfortunately can't be used to fix this either. While you could potentially create a parent RectTransform
hierarchy with respective anchors or AspectRatioFitters
, that's admittedly very complicated to control.
I've created an issue ticket to allow customizing the scale origin:
EsotericSoftware/spine-runtimes2482
You can subscribe to this ticket to get notifications upon updates.