A downloadable Unity Asset

Buy Now$10.00 USD or more

DPSpritePalette is a set of scripts that allows palette swapping of a sprite in run-time!

Asset Store page

Features:

  • Very simple to setup!
  • For Unity's SpriteRenderer and UI.Image!
  • Works with Spritesheets or individual sprites!
  • No need to create a new material for each sprite.
  • It two or more sprites has the same palette texture, the sprites will be dynamically batched!
  • Palette builder! Just bring your palettes files (.act) from photoshop or (.png) from Pyxel Edit!
  • Bilinear filtering!
  • Palette Combiner: combine two Palette Textures in one at run-time.

Usage:

  1. Import the package in Unity.
  2. Add the componenet DPSpritePalette to a Game Object with the SpriteRenderer component.
  3. Assign the field "paletteTexture" with the palette texture. (See the readme.txt for the format)
  4. You can chage the current palette index or the palette texture in run-time with the methods:
    1. SetPalette(Texture2D newNexture)
    2. SetPaletteIndex(int paletteIndex)
      See the file "Example/TestPalette.cs"

More information

Published 2 years ago
StatusReleased
CategoryAssets
AuthorDavi Santos
LicenseMIT License

Purchase

Buy Now$10.00 USD or more

In order to download this Unity Asset you must purchase it at or above the minimum price of $10.00 USD. You will get access to the following files:

DPSpritePalette_143.unitypackage 149 kB

Leave a comment

Log in with your itch.io account to leave a comment.