Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Vendrium · Sep 07, 2014 at 06:32 PM · resolutionmoveelements

How do I stop assets from moving position after compile?

Hi,

I have simple scene with a single image in it - I set its Width and Height according to the image size and I set X and Y to 0 in an attempt to center the image.

My problem is twofold:

  • When I compile and run the scene, the image seems to have moved from where it was in the editor game preview.

  • I can't seem to center my image based on X resolution.

Could someone please point me into the right direction?

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lunaeight08 · Dec 09, 2020 at 08:31 AM 0
Share

I have the same problem. Have you found a solution?

avatar image xxmariofer lunaeight08 · Dec 09, 2020 at 09:59 AM 1
Share

You need to build a responsive app, apps are not responsive by default

avatar image lunaeight08 xxmariofer · Dec 09, 2020 at 10:13 AM 0
Share

Could you please direct me to the right way to solve this. I just drag and drop all my objects to the scene. It's fine on my Game Scene, but upon building one of my object was misaligned.

If you said responsive, the browser screen size would vary but I'm not even moving the size of my browser.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by unity_21erushbrook · Dec 09, 2020 at 11:19 AM

Sounds like its because of a resolution change.

The proper way to do this is to anchor the image to the center of the canvas (which should be set to screen space), and set the stretch mode to the corners of the screen. That way, the image will be the same size no matter the resolution of the monitor.

Hope this helps, Ethan.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image unity_21erushbrook · Dec 09, 2020 at 11:19 AM 0
Share

If you need help doing this, look for a YouTube tutorial on Unity canvas scaling. That will surely help point you in the right direction and solve your issue.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

transform.Translate doesnt travel the same distance for multi-reso 2 Answers

Best way to move elements around screen [uGUI] 0 Answers

Change resolution in runtime 0 Answers

iOS and Android Resolution limitation 0 Answers

1 Big texture, 2 materials? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges