You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using MLEM's Image, if your TextureRegion has its pivot somewhere other than the top left of the texture region, this causes Image to draw with the texture's pivot at the top left of the UI rect. That makes it hard to reuse the same TextureRegion with a sprite that wants the pivot to be at an arbitrary area.
The text was updated successfully, but these errors were encountered:
Note to self: we talked on the discord about the version of TextureRegionExtensions.Draw that takes in a Rectangle, and the fact that it seems to also use the pivot as a position offset there. I'm starting to think that maybe that doesn't actually make a lot of sense, and, when specifying the destination rectangle specifically, it should ignore the pivot for positioning outright.
When using MLEM's Image, if your TextureRegion has its pivot somewhere other than the top left of the texture region, this causes Image to draw with the texture's pivot at the top left of the UI rect. That makes it hard to reuse the same TextureRegion with a sprite that wants the pivot to be at an arbitrary area.
The text was updated successfully, but these errors were encountered: