- Home /
4.6 Anchor a gameObject to a canvas
Hi,
firstly, I am french, so sorry per advance for english errors.
I began Unity not lot of time ago for a project, so I don't know lot of thing about.
I have to create a menu for portable device where users could draw and do some things with his drawing. I have write the code to the drawing, and put it on a Plane. I design my windows with some canvas, to orginise items and menu. But I got a problem, I don't find how anchor the plane (or any other gameObject not UI's) to his parents. I find to make canvas => panel =>the object
but the object didn't change it size when I change the size of my screen :/
Thank you per advance for answer, don't forgot, I am a noob with unity, don't hesitate to think I don't know how do some simples things.
Have a nice day
Thank for answer me,
anchor it's probably not the good word so, look:
http://img15.hostingpics.net/pics/293186Capture1.png
http://img15.hostingpics.net/pics/371406Capture2.png
On the second screen, all the items are resizing like the windows of my screen. Except the white plane on center (it's DrawingArea in hierarchy) But I would like He do that.
You could access to my project here: https://github.com/Livda/EtudesPratiques