Skip to main content
InaCentaur
Inspiring
May 8, 2025
Question

HUD UI - 1:1 ratio map?

I'm trying to resize the HUD texture but it seems that it only wants to stay to the very top long rectangular strip (5:1)?

Is it possible to resize to display a 1:1 map? 

1 reply

ExoGuid
Honored Contributor
May 13, 2025

Did you get this figured?  You can try adding resizeMode to your image's style.  "center" or "contain"

        Image({
          source: ImageSource.fromTextureAsset(new Asset(BigInt(0123456789))),
          style: {
            width: "27%",
            height: "27%",
            resizeMode: "contain",
            position: "absolute",
            top: 455,
            left: 380,
          },
        }),