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 /
This question was closed Aug 13, 2016 at 06:56 PM by sebastianfeistl for the following reason:

Die Frage ist beantwortet, die korrekte Antwort wurde akzeptiert.

avatar image
0
Question by sebastianfeistl · Aug 12, 2016 at 03:19 PM · guirecttransformscrollbaranchorpresets

How to use multiple anchor presets?

I am currently creating a mobile friendly GUI and I have problems with my scrollbar. So I am trying to make the scrollbar responsive, so it scales with the size of the screen and I also would like to make it stick to the right side of the screen. Actually pretty much like every scrollbar.

For scaling I used the vertical stretching anchor preset - works fine, but if I scale the screen horizontally the scrollbar does not stick to the right side of the screen.

If I use the anchor preset for setting the position on the right, the scrollbar sticks to the right side as I want it to do, but if I scale the screen vertically the scrollbar does not stretch anymore.

I have already tried to make a panel with one anchor preset, the scrollbar with another and making the panel to a parent of the scrollbar, but this didn't work for me either. Is there a way to use two anchor presets at the same time for one single RectTransform? What am I doing wrong?

I think there is a pretty obvious and simple solution, so thanks in advance for helping.

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

2 Replies

  • Sort: 
avatar image
0

Answer by DiegoSLTS · Aug 12, 2016 at 05:20 PM

I got a little lost with your description, can you draw some images to explain your issue better?

As for the last question, you can't use 2 anchor presets, but they're just presets for the actual anchor and pivot values below, so you can set a custom anchor if one of those doesn't work. Also note that there's a preset for horizontal right and vertical strech, which sounds like what you want to do, but without more details on your current setup I can't give you a proper answer.

Comment
Add comment · 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
0

Answer by sebastianfeistl · Aug 13, 2016 at 07:21 PM

Well, I'm sorry for the confusing description, but I already solved the problem. I actually used the wrong template options ..

I hope this helps to understand:

alt text

So, as you can see the scrollbar used to disappear if the screen was very wide, but I probably have overlooked the option to also set the position of the element when pressing the ALT-Key.

Nevertheless, thank you very much for your reply!


untitled-1.png (65.7 kB)
Comment
Add comment · 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

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

[SOLUTION] set UI RectTransform Anchor Presets from code c# 1 Answer

RectTransform Anchor gizmos missing 5 Answers

Strange UI scrollbar handle recttransform behaviour,Cant resize clickable area on UI handle 1 Answer

Show content with scrollbar? 2 Answers

Rect to RectTransform on overlay Canvas? 1 Answer


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