Skip to content

windyslove/Unity_TextShader

 
 

Repository files navigation

Unity_TextShader

TextShader draw your text as ImageEffect (with fragment shader). This effect should be used for a debug.

How to use

effect.DrawText("Your Text", posX, posY, size, color);

Set your text and the parameters in viewport(uv) space.

Limitation

  • Valid characters are AsciiCode number 32 ~ 126.
  • \(back slash) becomes line-break.

Import to Your Project

You can import this asset from UnityPackage.

Dependencies

You have to import following assets to use this asset.

About

TextShader draw your text as ImageEffect (with fragment shader).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 68.7%
  • ShaderLab 31.3%