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 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 What do you want to achieve ?