Skip to content

Unity support

Compare
Choose a tag to compare
@EttienneS EttienneS released this 17 Jan 19:31
· 18 commits to master since this release

Added Unity Support

Split the code into 4 assemblies to make it easier to only use what you need:

LPC.Spritesheet.Interfaces.dll: All the common interfaces and enums live here, the only 'common' assembly of the lot.
LPC.Spritesheet.Generator.dll: All the generation code lives here, used to make random sprites.
LPC.Spritesheet.ResourceManager.dll: All the code to load the source spritesheets, also includes all the current sheets as embedded resources to enable it to be easily moved and loaded.
LPC.Spritesheet.Renderer.dll: All the code to actually output the sprite as either a Image for native .net consumption (needs System.Drawing) or as Texture2D objects that can be used in Unity

Note, I tested this with Unity 2019.3F5, if you are having trouble with this it may be easier to just include the Unity rendering script file in your project (UnityTexture2dRenderer.cs, RenderConstants.cs).