Sticking Panel sprites to object1 and Changing the Size of object1 lets the panel sprite scale wrong since you need to put the center and origin point (of the panel sprite) on top of each other to make it scale correct.
But on panel sprites there is no way to change the points, I know its almost not possible but an option to put the origin and center point on top of each other (up leftt) could be possible.
For context, how exactly would you imagine a custom point working on a panel sprite?
Iām not sure I could see how itād be possible. The dimensions are not fixed on panel sprites, and therefore the center canāt be a fixed point/defined point. Likewise the origin would change as its adjusted (being one of the only objects that can extend to the left without being moved)
I didnāt quite understand. So even an option to set the center to the top left (where the origin point is) wouldnāt be possible? An option to automaticly set the points always on the top left bounding box.
I use 9patch sprites and fonts for buttons and frames, these are often sticked to insivible sprites used as anchors to move and resize multiple objects at once for making different animations.
Itās been ages since I used Unity, but I thought on 9-splice you could only modify their pivot points for the 3D camera or how theyāre sorted? Iām not seeing details on your link about custom origins or rotational info for 9-splice but if you have links to the specifics thatād be amazing as Iād love that feature as well.
I know PixiJS has the concept of Anchors (percentage relative/non-fixed pivots) but only for base sprites (not tiled/panel sprites). Is Unityās solution for panel/9-slice sprites similar to that?
For text, I actually wonder if they could apply the methods for Anchors to at least Bitmap Text, since thatās rendered as a sprite as far as I know, where as Text/BBText are using the Browser/OSās text renderer.
We all seem to agree that it would be a good feature for Gdevelop, so the extent of Unityās support is irrelevant no?
Pivots can exist for any object which has boundaries, regardless of the rendering technology. 9-patch resolves to a rectangle in the end, just like a regular sprite.
I definitely agree. The PixiJS concept of Anchors (Relational percentage) could work for things without fixed dimensions like Tiled Sprites/Panel Sprites/Bitmap text, I was just wanting to see context from another engine to potentially make it easier for the devs to implement the logic.
Since PixiJS anchors donāt support other object types outside of base sprites, itād be custom functions. Not end of the world in complexity or anything, but something maintained by the renderer devs (rather than custom functions by the GDevelop team or contributors) is always preferred.
To come back to the initial need, it seems that what you want is a fix to the Sticker extension. I did a quick fix that probably doesnāt solve any issue this extension may have but should fix what you described.
Please try with Sticker 0.5.1 and let us now if you still have issues.