Quantcast
Channel: Questions in topic: "css"
Viewing all articles
Browse latest Browse all 78

How to align a Rect() to the bottom right of the screen

$
0
0
I'm trying to create a rect of text at the bottom right of the screen. Maybe because I'm a web developer, where stuff like this is easy I'm searching for a more sensble way. Surely there's a way to do this relative to the bottom right corner? In CSS it would be: `position:absolute; bottom:10px; right:10px;` - easy right? But in Unity I assume the way I have to do it is calculate the height of the screen, minus the box's height, same with the screenwidth minus the box's width. Is that really the best way? I know doing these calculations won't take me long, but I just wondered if there was a nicer way, like css' position:absolute? And is there a way to place the text **inside** the rect, so that it will always adapt to the width of the Rect, or do I have to do the same calculation and have it floating above?

Viewing all articles
Browse latest Browse all 78

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>