Quantcast
Channel: Questions in topic: "screen size"
Viewing all articles
Browse latest Browse all 225

How can I create a GameObject at the corner of screen

$
0
0
Unity is so difficult compared to delphi. In delphi you can just say: Rectangle1.Position.Y := 0; Rectangle1.Position.X := screen.Width - Rectangle1.Width; This will just change the position of the Rectangle to the top right corner of the screen. But in Unity there's so much to lean just to do this and I don't know where I start. Can someone please simplify this to me? I just want create a object at the top right corner of the screen, both in smartphones and pcs. I'm using Unity2D EDIT: This is the Inspector of the object that I want to create: http://i.imgur.com/TZ3gqWR.png And this is the code that I use to create the object: `Instantiate(objectName, new Vector3(0, 0, 0), Quaternion.identity);` EDIT to be more clear: ![alt text][1] [1]: /storage/temp/85095-test.png

Viewing all articles
Browse latest Browse all 225

Trending Articles



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