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 joseques · Jul 18, 2014 at 04:45 PM · c#listguitextdynamic

Make dynamically a list of GuiText's

I need to make a list of GuiText's. When I click a button of the menu, the camera moves to certain position, facing a TV. I need to make dynamically a list of servers in front of the TV to make the illusion that the list is ON the TV. How can I make that?

On figure 1 goes the list of servers.

On figure 2 I need to put a scroll. (I can do that?)

Image quality and saturation was downgraded so that way fits the maximum size of images of Unity Answers

Screenshot

screenshot_31.jpg (483.6 kB)
Comment
Add comment · Show 3
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 joseques · Jul 18, 2014 at 04:48 PM 0
Share

IN ADVANCE I can't use 2D GUI elements because I need a 3D positioned list

avatar image joseques · Jul 19, 2014 at 01:29 AM 0
Share

I think I will not get a response on this one. I'll keep searching.

avatar image SirCrazyNugget · Jul 19, 2014 at 02:17 AM 0
Share

Create one where it would appear at the correct properties and position, store it as a prefab, spawn n of these prefabs for maximum visible servers, store them in an array and place with an offset on y for each one. Add two button for scrolling up and down, when scrolling is clicked change scrollOffset and the text in the GUI Text to show server[n + scrollOffset], if n + scrollOffset > number of servers hide the unrequired texts.

This way you'll use a pooling method for the list rather than having to spawn them each time and handle the list a lot easier. If there are multiple texts to appear on the TV (server name, host name, ping, etc.) store the elements in a multidimensional array so allow you to reference the required servers details as n + scrollOffset.

TBH you really don't need to create them all dynamically, just place them in an array and position them in the editor.

1 Reply

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

Answer by joseques · Jul 19, 2014 at 02:06 AM

I figured out that the best thing I can use is a Text Mesh.

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

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

20 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

Related Questions

A node in a childnode? 1 Answer

How to parent a GUI text to current game object 3 Answers

Dynamic Enemy Transform List 1 Answer

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 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