- Home /
GameObject get displaced
Hi Community
I am getting problem with co-ordinates of unity,I am facing a problem,I set a sprite as a background and place some game object and sprite in the screen.it's all good when i am running it in unity simulator,But when i am building the application and running its exe with resolution 1366*768. sprite are getting shifted to the left of the screen(in -x according to 2d).
Could anybody give any clue,Any help will be appreciable.
Thanks in advance!
Thanks Eric
Answer by FreeTimeDev · Jan 31, 2014 at 04:06 PM
You should set the position to be a percent of the screen size so that regardless of what resolution you have you will have your object at the same screen point.
I'm not sure if you're using GUITexture, or a 3d object so I can't give more help than that.