Unity 5: 2D Emulate Palette Swapping for Sprites

Palette swapping, a technique borrowed from old school game engines, is a great system for dynamically changing the colors of sprites at runtime. While it's not built into Unity, with a little ingenuity and the advanced techniques shown in this course, you can emulate palette swapping in any 2D sprite-based game. Jesse Freeman will show you how to build custom menus and inspectors to analyze and change sprite's colors, save custom color palettes with scriptable objects, change colors on sprite textures at runtime, and even apply color changes to animated sprites. Last, he'll show how to optimize this workflow and reuse it in other Unity projects.

Topics include:

  • Importing artwork
  • Working with sprites and animations
  • Creating scriptable objects
  • Sampling colors from sprite textures
  • Extending Unity and building a custom inspector
  • Creating custom textures
  • Optimizing the palettes
  • Cleaning up sprites in Photoshop

Course Timeline:

Unity 5: 2D Emulate Palette Swapping for Sprites Welcome

...

Unity 5: 2D Emulate Palette Swapping for Sprites Using The Exercise File

...

Importing Artwork

...

Building custom menus

...

Getting paths to assets

...

Saving scriptable objects

...

Building a color palette

...

Sampling colors from a texture

...

Custom inspector UI

...

Displaying custom color palette data

...

Saving scriptable object data

...

Cloning a texture

...

Replacing animation textures

...

Drawing on a texture

...

Swapping colors on a texture

...

Compiler conditions

...

Optimizing draw calls

...

Cleaning up artwork colors

...

Unity 5: 2D Emulate Palette Swapping for Sprites Next step

...

Course Reviews:

Average Rating 0
0 Ratings
Details
5 Stars 0
4 Stars 0
3 Stars 0
2 Stars 0
1 Stars 0

No reviews yet.