Drawing text in edit mode.

Hi,

It is possible to draw text in non-game mode?

Can you explain in more detail what you want to do ?

I want to create game object with my script that draw my text and will be great if this text was show before I start the game (in edit mode). Just like work GUIText or TextMesh.

Still not sure what you actually want to do, here’s my guess

  • You are looking into create a TextField programmatically in Editor, maybe you can have a look at Editor Scripts ?
  • You are trying to implement your own Text solution (something like the marvelous TextMeshPro) you may want to have a look at creating mesh programmatically (included create each vertex, adding uv, building font atlas, SDF and write a bunch of shaders …). Though, if you haven’t started working on this yet, I’d recommend not, it’s might be much more complex than you think :frowning: and takes a huge lot of time to reinvent the wheel … There are also a lot many more Text solution out there, just go to the AssetStore and do some search …

If it’s still not what you want to do, you may want to explain more about it :slight_smile: What do you want to achieve ?

Do whatever you’re doing that’s working in play mode, and make the script it’s on ExecuteInEditMode.