Unity Text Shader by XJINE - 41

Shaders & Effects

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

Unity 2018.3.12f1Apache License 2.0Updated 31 days agoCreated on April 19th, 2019
Go to source

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.

Show all projects by XJINE