Forum Discussion

InaCentaur's avatar
InaCentaur
Start Member
9 months ago

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

  • 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,
              },
            }),