Utility to use Aseprite images as Unity Texture2D in realtime.
You can view editing sprites on Unity with shading, lighting and post-processing.
- Tested on Unity 2020.3
- Aseprite v1.2.30 or later
- Copy
scripts/Launch Viewseprite.lua
into Aseprite scripts folder (File > Scripts > Open Script Folder). - Open Unity project of Viewseprite and play it.
- On Aseprite, open something and use
Launch Viewseprite
from scripts menu.
Use UPM git dependencies.
- Open Package Manager and click
+
>Add package from git URL...
- Enter
https://github.com/ruccho/Viewseprite.git?path=/Viewseprite/Packages/io.github.ruccho.viewseprite
Viewseprite works with Grabber components.
GrabberForSpriteRenderer
: Shows sprite through SpriteRenderer.GrabberForRenderer
: Shows sprite through generic renderer such as MeshRenderer.GrabberForImage
: Shows sprite through uGUI Image.
For customization, abstract class GrabberBase
is provided. Derive it and implement SetTexture(Texture2D texture)
method.
Each Grabber component has Visible Layer
property. Specify name of the layer to grab. If there is no matched layer, whole sprite is grabbed.
Layer specification is only applied at startup of each connection, so in order to change layer, restart game or Viewseprite script on Aseprite.