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 vxssmatty · Jun 10, 2011 at 12:37 AM · guitextcharactercustom

GUI letters number text custom

Hey all, this is a Part 2 to my post;

  • http://answers.unity3d.com/questions/128194/gui-using-custom-graphics-gui-approuches.html

This is in regards to the Letter objects on screen (unless they are one object and a script dynamically chooses co-ords to display different parts of it?) UPDATE: Turns out it is one texture atlas

 GUIText.text = "Score: "+ playerScore;

Would i need to make a custom GUI method/function that relates a co-ord or object (letter, number) to a certain character (a,b,c....1,2,3...etc)?

Thank you!

UPDATE:

Ok i've found that it is a single texture and atlas'ing is most likey used...

So how would they script a character to be displayed.. I 'm thinking there are say for a 3 digit display, there'd be 3 separate duplicated objects.. and the script would trigger which index to show via comparison from Char to index?

Comment
Add comment · Show 5
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 Dreamer · Jun 10, 2011 at 02:05 AM 0
Share

I really can't understand what u wants to say

avatar image vxssmatty · Jun 10, 2011 at 02:21 AM 0
Share

Hey there, i know it's a big hard to understand what i'm trying to say, its a big concept i'm trying to grasp.

Basically... If say we have an atlased texture which letters.

And 3 standard Quad objects next to each other with the same material.

How would I script, using the UV co-ords of the atlas, displaying what character i want from say a string?

avatar image petroz.du · Jun 10, 2011 at 04:13 AM 0
Share

You can use UIToolkit, it makes that sort of stuff pretty easy. http://forum.unity3d.com/threads/87917-Prime31-UIToolkit-$$anonymous$$ulti-Resolution-GUI-Solution-Ready-for-Use...and-it-s-free

avatar image petroz.du · Jun 10, 2011 at 04:16 AM 0
Share

In the future please put some effort into checking your spelling and grammer before posting, it will improve the chances of someone helping you.

avatar image vxssmatty · Jun 10, 2011 at 04:27 AM 0
Share

Touche, I was bit rushed wasn't I, lol. I generally am pretty anal about grammer & spelling to a degree.

Appreciate your input @petroz

Thought the last part of my question is still valid in the sense that; i'd like to know how would be the best way to assign a UV from the atlas to the Object on screen from a string and/or int ?

0 Replies

· Add your reply
  • Sort: 

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

GUI using custom graphics - GUI approuches 1 Answer

How do i take a string from a gui and show it in the gameworld c# 1 Answer

How do i make my chat window save messages and be a scrolling GUI 0 Answers

How can I move Text and Image component in unison inside of Canvas 0 Answers

GUI Text rendering problem in WebGL 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