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!
  • Supports Unity's default SpriteRenderer!
  • 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!
  • (v1.1) Now it has a palette builder! Just bring your palettes files (.act) from photoshop!

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

Published1 year ago
StatusReleased
CategoryAssets
AuthorDavi Santos
LicenseMIT License
Asset licenseAll rights reserved

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-1.1.unitypackage 51 kB
DPSpritePalette-1.1.1.unitypackage 52 kB
DPSpritePalette1.2-Unity501.unitypackage 54 kB

Leave a comment

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