I am trying to use the TextMesh component in Unity to and floating text to my game, however the text renders over the top of everything. I have found a couple of posts on the interweb directing to shaders on the unify community wiki but that domain is currently not working (says something about it expiring). Does anyone have a solution they could share please?
What have you attached the text mesh component to?
… a text mesh …
I just went to GameObject->Create->3D Text, it has only the default text mesh, mesh renderer and transform components
Create a new shader called: 3DText and paste the following code:)
Shader “GUI/3D Text Shader” {
Properties {
_MainTex (“Font Texture”, 2D) = “white” {}
_Color (“Text Color”, Color) = (1,1,1,1)
}
SubShader {
Tags { “Queue”=“Transparent” “IgnoreProjector”=“True” “RenderType”=“Transparent” }
Lighting Off Cull Off ZWrite Off Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
Pass {
Color [_Color]
SetTexture [_MainTex] {
combine primary, texture * primary
}
}
}
}
Or wait for world space UI components in 4.6
Thanks a lot