TexturePainterAPI

v1.0.3·Updated 2025-11-01

Color the texture in real time

About this mod Author’s original text

API

var texture = new PaintableChannelMaskedTexture(Texture2D mainTexture); //This texture should contains full color info

texture.SetMainTexture(Texture2D newMainTexture);

//Color Mask Texture should be grayscale texture!

texture.SetMaskTexture(Texture2D mask); //Mask Texture could contain mask texture as separate RGB channel

texture.SetTintColor(Color maskTint1, Color maskTint2, Color maskTint3); //maskTint1 = Tint for R Channel, maskTint2 = Tint for G Channel, maskTint3 = Tint for B Channel

targetMat.mainTexture = texture.CurrentTexture; //This returns RenderTexture

texture.CreateCopy();

Install & use Install: follow the bundled instructions

  1. Unzip the archive from playbuff and read the bundled readme / instructions first.
  2. Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
  3. For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
  4. Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.

Install locations vary a lot between mods — the bundled readme is the most reliable guide.

Dependencies

Install these first, or the mod will not work:

BepInEx-BepInExPack_GTFO

File & checksum

Filename
TexturePainterAPI-1.0.3.zip
File size
127.5 KiB