Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 martipello · Sep 24, 2017 at 12:55 PM · uimobilescrollview

ui scaling on mobile

having an issue with a scrolling layout not stretching to fill horizontally on mobile screens, it fits perfectly in the game and scene, i believe its because an anchor is pointing to the top left, but that same anchor is needed so new items added are put to the top but im not really familiar with everything going on here as i followed a tutorial and i dont think they explained everything, ive added 4 screenshots to one image so you can see the anchors and components of each object in one image alt textcan anyone lend me a hand

pic.png (484.8 kB)
Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Bilelmnasser · Sep 26, 2017 at 01:47 PM

you problem is here : alt text


102494-pic.png (514.5 kB)
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 martipello · Sep 27, 2017 at 03:29 PM 0
Share

yeah i noticed theres actually 2 of them so ive fixed this but im still getting the same issue have a look at the screenshots ive added on @Thaun_ answer, thanks for your reply

avatar image
0

Answer by hexagonius · Sep 24, 2017 at 05:36 PM

You should follow unity's official tutorials about their UI

https://unity3d.com/learn/tutorials/topics/user-interface-ui?_ga=2.59186669.1778801103.1505328244-1140372558.1485877216

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 martipello · Sep 25, 2017 at 12:09 PM 0
Share

great answer thanks

avatar image
0

Answer by Thaun_ · Sep 24, 2017 at 05:46 PM

The problem is in your Canvas. Change the UI Scale Mode into "Scale With Screen Size" and move the Match after your looks. I also reccomend to add Anchors.

Helping Image

Comment
Add comment · Show 3 · 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 martipello · Sep 25, 2017 at 12:44 PM 0
Share

ok turns out i was using 2 canvas scaler so i removed the one that doesnt use scale with screen size but i am using anchors and after removing the other canvas scaler im still no closer to solving this, anything else?

avatar image Thaun_ · Sep 25, 2017 at 01:07 PM 0
Share

Can you take a screenshot of how it looks normally?

avatar image martipello Thaun_ · Sep 25, 2017 at 01:24 PM 0
Share

yeah sure attached is an image of how it looks in the inspector and if i change the size of the window the layout stretches to fit exactly as id like it too, the other image is how it looks on mobile where it doesnt reach the edges alt text

godtubescaling.png (71.7 kB)
screenshot-2017-09-25-14-19-22.png (69.3 kB)

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

142 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Not hide mobile keyboard on scrollRect dragging 0 Answers

Aspect ratio affects ScrollRect? 0 Answers

Spot the difference game having a strange behavior in Mobile 0 Answers

Help needed with scrollrect in specific UI design 1 Answer

Unity mobile development tools 0 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