0

I am new to unity and trying to build a simple game. When I work on unity Editor it seems to work fine.

Say in unity I am checking with dimension 1334x750: enter image description here

And in phone it looks different - iphone7 - 750*1334

enter image description here

As you see, the text on top basket, the pink ball placement and other balls alignment all are different

2
  • Did you check that resolution on unity? Commented Nov 27, 2020 at 8:09
  • Hey BugFinder, I have checked device and editor both are same Commented Nov 27, 2020 at 17:36

1 Answer 1

1

I am assuming everything here is under the Canvas GameObject. In the Canvas Scaler Component of the Canvas select Scale with screen size.

If everything is not under Canvas the issue might be that the barrels are in world space whereas the letters are in Screen Space and hence they vary at different points.

You can use WorldtoScreenPoint() to set the position of the points

Sign up to request clarification or add additional context in comments.

1 Comment

Hey Wahib, yea all the game object are under canvas scaler and you can see the screenshot I set it too scale with screen size

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.