- Home /
Unable to click digital clock
I have created a digital clock that works just fine. It is simply a TextMesh floating over a box. The TextMesh has a Font Material on it that is a GUI/Text Shader.
I need to be able to select the clock and cant seem to get a collider to work. I suspect because of the GUI/Text Shader. I tried putting an invisible cube with a collider in front of it and it works but not consistently.
Any suggestions? Perhaps another way to display the time rather than using the GUI/Text Shader?
Answer by robertbu · May 20, 2014 at 05:32 PM
With a text mesh, the usual solution is to put a box collider on the mesh. If the clicking is not working reliably, Add Debug.Log() statements to see what (if anything) the ray is hitting.
Thanks so much. I swear I tried that. But ... sometimes we get a little frantic and distracted.
Your answer
Follow this Question
Related Questions
Access mesh for TextMesh or GuiText 2 Answers
I am having issues with my textmesh shader 0 Answers
How to force the compilation of a shader in Unity? 5 Answers
Is there's any benefit when using mobile shader vs normal shader? - TextMeshPro 1 Answer
Can depth of field be disabled for 3D Text (TextMesh)? 1 Answer