Hi my problem is this: I am trying to make a game where the game spawns 4 cubes at the beginning which are moving towards the player. I want text/numbers on/inside the cubes like there are question marks on cubes in mario and so on.. it is easy enough to make 3d text that follows the cubes but that seems like an ugly solution ? I am making the game in 3d
I can see that the shader makes it possible to have text behind objects and so forth. But i want the text to be written on the box and follow it as the box moves around. At the moment i have tried to make a 3d Text object child of the cube but when i move the cube the text is moving too fast.
What i want is this: http://imageshack.us/photo/my-images/94/examplewj.png/ But i can't seem to achieve this because the text is always a little off in relation to the cube when the cube is moving. It is hard to get the text to be in the center of the cube.
are you setting the ahcnor to center middle as well as alignment? Depending on the cube's pivot if its int he center after making the 3d text's alignment and achor correct it should be as simple as just setting the text as a child of the cube and localPosition = Vector3.zero.
I have tried doing that but when i pull my cube to the sites the 3d Text is not following perfectly. The text is always in the middle of the cube when i set the cube to its start position, but when i move it, the text will always be to the site of the cube.
Actually i can see that in the "scene view" it is always inside the cube, but in the "game view" it isn't catching up as described.