Questions tagged [guitext]

GUIText is a ui element for displaying text which is used inside unity3d before unity version 4.6.

GUIText is a ui element for displaying text with specific font, size and color inside an unity3d scene. It has been used before a new ui system has been introduced in version 4.6 of unity.

Please Note:

Unity 4.6 introduced UI, a User Interface system. You may prefer creating user interface elements with Unity UI instead of GUITexts. Read more about how to use UnityGUI in the UI Overview.

5 questions
2
votes
1 answer

Unity GUIText on Collision c#

I'm writing a 3D maze program in C# and I need to have UI Text display "You Win!" When the player reaches the end of the maze. I have a trigger set up in Unity as a cube, named FinishLine, and I have the UI text named winText I'm getting an error on…
Jason Shaft
  • 65
  • 1
  • 2
  • 8
2
votes
1 answer

Unity2D: Add text to rigidbody2D element

I'm new to Unity and I started with the Catch Game Tutorial to learn to create a 2D game. Everything is working now but for my needs, I would like to add different textboxes to each of the fallen elements (in the tutorial the bowling balls) Those…
1
vote
1 answer

Unity3d health bar GUI element

I want to create a health bar using information that I'm currently displaying in a GUItext. The behaviour I want is for the health to decrease over time (like a countdown timer), but increase by a small amount whenever the player collects an…
mar97
  • 21
  • 1
  • 4
1
vote
2 answers

GUIText in Unity 5 (Need an alternative)

I've been following a tutorial on how to make a timer on YouTube but I am now stuck because of the GUIText problem in Unity 5. This is my code: using UnityEngine; using UnityEngine.UI; using System.Collections; public class Timer : MonoBehaviour…
David B
  • 15
  • 1
  • 7
0
votes
2 answers

GUI Text alignment with moving camera in Unity

I am making a top-down shooter type of game in Unity. The player can move in the world, but the camera moves with him, so the player is always in the middle of the screen. I'm trying to display some text in the upper-left corner of the screen, and…
Vladimir Shevyakov
  • 2,511
  • 4
  • 19
  • 40