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
1
Question by benbjo · Aug 06, 2011 at 02:04 PM · gameobjecttext

How to display text on a gamebject?

Hi, I am quite new to unity.

In my game I have to display some text on a gameobject. Currently I am just trying to get it to work, but I can't. Let's say I want to display a single letter on a series of cubes/squares. How can I do this? I have tried creating a prefab "square" and added a default cube to it. Then I tried to add a component GUIText, which did nothing as well as a text mesh which also did nothing.

How can I display text on my gameobjects?

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
3

Answer by twonty · Aug 06, 2011 at 04:09 PM

You could make a new object in a 3D image creator and place text on that and place it on the object. I am probably wrong for I am a noob with Unity.

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 JUnityer · Aug 06, 2011 at 06:18 PM 0
Share

Yes, that's also one way to do it!

avatar image
2

Answer by KrisCadle · Aug 23, 2011 at 10:58 PM

Hey, check out this cool and easy to use GUI Object Label Script... I've used it and it's actually pretty useful...

http://www.unifycommunity.com/wiki/index.php?title=ObjectLabel

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 bruhhgarcia · Jul 28, 2014 at 02:28 PM 0
Share

The link is broken =/

avatar image Josh Naylor ♦♦ · Jul 28, 2014 at 02:39 PM 1
Share

http://wiki.unity3d.com/index.php?title=ObjectLabel

avatar image ChristianLaLarsson Josh Naylor ♦♦ · Aug 30, 2019 at 06:36 PM 0
Share

Thank you very much for the link! :D In order to keep it up to date, I changed the "[RequireComponent (typeof (GUIText))]" to "[RequireComponent (typeof (Text))]" and added "using UnityEngine.UI", else it was just to add a UI "Text" object and add the script to it ins$$anonymous$$d of a "GUIText" object and add the script on it.

avatar image
0

Answer by JUnityer · Aug 06, 2011 at 06:17 PM

This depends on what purpose you want it for. You could just simply make a normal cube, and a 3D text. Move the text so that it is positioned in front of the cube the way you want it. Then make the text a child object of the cube by dragging it inside the cube (in the hierarchy panel).

Another way would be just to create a texture for the cube which has text in it :)

So, if this won't help please specify what are you going to use it for! (2D? 3D? Is it stationary or is it supposed to move?)

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

6 People are following this question.

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

Related Questions

How do I change the font of a 3D Text gameobject? 1 Answer

Display Name Above Object 2 Answers

Ways to break up a text label into separate game objects? 1 Answer

Insert 3d text to the front face of a cube GameObject 0 Answers

Why is text ui cant be static ? 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