- Home /
How can i draw text to a Texture2D?
Is there a way to draw text on a Texture2D?
Comment
No easy way I know of. Here is a blog post with a solution.
The post is older and therefore the code may needs some updating.
Answer by Paulius-Liekis · Mar 02, 2014 at 11:10 AM
The proper way: you have to draw into RenderTexture and you can use it as a regular Texture. You need Unity Pro for RenderTextures.
You can also edit pixel values one by one in Texture2D, but that is very slow.
Your answer
![](https://koobas.hobune.stream/wayback/20220613135133im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
GUI.Label or any text with GUIStyle as Texture 1 Answer
Render a typed text to a texture: what is the best way ? 1 Answer
Update Texture type to GUI during runtime 0 Answers
Draw TextMesh Pro Text to a Texture2D at run time 0 Answers
Converting a RenderTexture to a Texture2D for use in a shader 2 Answers