This is the basic framework I use for generating sprites in Lore of Rune Era (LORE). The UnityPackage here includes the basic classes used, which can be extended to provide any kind of behavior you want. The example here generates handheld game console sprites, like this:

The key components of this framework are:

The ItemSpriteTemplate class, which defines a sprite generator as a list of ColorPalettes and SpriteGenerationLayers. ColorPalette, which just holds a list of colors. SpriteGenerationLayer, which references one of the ColorPalettes from the ItemSpriteTemplate by index, and which has a list of Sprites that it randomly picks from. For behaviors other than colorizing and applying a random Sprite, you can extend SpriteGenerationLayer and have it do whatever.

This package is provided as-is and without support, documentation, or promise of update - it is intended primarily as a learning tool or jumping-off point for a more comprehensive tool.

This tool is licensed under the MIT License.



