Attatch GuiText to Gameobject, right way?

Hi,

Iam buildning a classic brickgame. When a brick is hit by a collider i want to show the score hit as text right beside the brick. The brick is falling down, the text should then go with the brick.

I have a GuiText Component on each brick.

Any idea, can point me in the right direction?

Thanks
Jeppe

Don’t use GUITexture. It’s pretty much deprecated.

Use the new UI tools instead. You’ll want a world space canvas as a child of the brick. Then make a Text as a child of the canvas.

Hmm dont really get it, know any link with some exemple or something. Iam kinda new to this :slight_smile:

Thanks
Jepp