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 /
  • Help Room /
avatar image
0
Question by sambid123sameer · Jul 31, 2016 at 06:15 PM · server

Unity 5 UI Server List

Hello i wanted some help regarding making a server list for my game

Currently i use Gui.Layout for making the UI buttons,labels and stuff which works fine for the server list

alt text

But how to do it with the canvas? i want to make it sci-fi How to do it without using Gui.Layout methods?

I mean the UI should automatically add new buttons when a server is found So we should have a connect button for every server found Also when multiple servers are found it should add new lines for the server name and new button for every new server found Like a server list How can i do it?

For example something like this alt text

2-critical-ops.jpg (10.5 kB)
screen-shot-2016-07-31-at-113337-pm.png (13.4 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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Firedan1176 · Aug 01, 2016 at 01:21 AM

The way I found that works well is to create a single button using the prefabs Unity creates when you go to GameObject > UI > Button/Image/etc. Make a single "panel" (with the text, buttons, etc) and make it a prefab. Make a panel , add a vertical layout group to it, and add a script that simply makes those prefabs children of it when they are matched. The vertical layout group should space them how you want. However, it may make them anchored towards the center. You may need to do some more research if that's the case. Anyways, once you instantiate them, simply find the child GameObjects for each text component and change the text to the desired output. You could also make a script that will store those GameObjects on your button. Then you can simply grab that script, and instantly have access to those fields for the text components. Since "Mode", "Map", etc. are all used, you can simply just make those the names instead of worrying about making an array or anything.

Let me know how this works out for you. Feel free to leave a comment if you need more explanation/assistance.

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 sambid123sameer · Aug 01, 2016 at 01:02 PM 0
Share

Thank you very much for your answer I understood the concept but i dont know how to implement it properly Do you have any tutorial videos? Or any tutorial post? that could help more

Anyways great help , gave me a new idea Thanks!

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

66 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

Related Questions

Can Photon Unity Network be used for MMO prototype? 0 Answers

Need Help with groundwork of a Multiplayer-Endless Runner Game 0 Answers

Unity Unet own Matchmaking 2 Answers

Mobile authorization on Java server without input data 0 Answers

Send variables from client to server 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