I’m trying to give a plane a bitmapmaterial made from a normal sprite displaying a 2d button with some text.
Since I’m trying to make this dynamic (as in the user decides what the text on the button is) , the button varies in size. I now pick the closest power of 2, but that still stretches the resulting image.
Do I somehow need to make sure the sprite I use has a size of the power of 2?
And if I do that by drawing some black/transparant square on its background, can I somehow take a not-power-of-2 selection part of the bitmapmaterial to apply to my plane so the resulting plane has the same size as the original button?