Unity ECS 2D sprite rendering with animation, culling, and UPM-based reuse.
Unity Package Manager Git URL:
https://github.com/MaansenV/ECS2DTest.git?path=/Packages/com.ecs2d.renderer
Or in manifest.json:
{
"dependencies": {
"com.ecs2d.renderer": "https://github.com/MaansenV/ECS2DTest.git?path=/Packages/com.ecs2d.renderer"
}
}- Renders ECS sprites through
SpriteSystem - Supports grid-based sprite-sheet animation through
SpriteAnimationSystem - Supports orthographic frustum culling through
SpriteCullingSystem - Provides a DOTS-based particle system with curve-driven speed and scale via LUTs
- Ships as a reusable package in
Packages/com.ecs2d.renderer
Sprite rendering and animation:
SpriteSheetDefinitionSpriteDataAuthoringSpriteAnimationSetDefinitionSpriteAnimationAuthoringSpriteCullingSettingsAuthoringEntitiesReferenceAuthoring
Particle system:
ParticleEmitterAuthoringParticleCurveTypes(curve LUT support viaCurveBlobLUTandParticleCurveMode)ParticleActiveSimulationSystem,ParticleEmissionSystem,ParticleEmitterCleanupSystem
Editor tools ( ECS2D.Rendering.Editor):
- Custom inspectors for all authoring components
- Shared USS stylesheet for consistent inspector styling
Namespace:
using ECS2D.Rendering;For a detailed guide with short code snippets on how everything is used, check out the DOCUMENTATION.md.
Release automation for agents and maintainers lives in docs/release-workflow.md.
To release a new version of com.ecs2d.renderer:
powershell -ExecutionPolicy Bypass -File .\tools\release-package.ps1 -Version <VERSION> -PushThis validates the version, bumps the package version, creates a commit with an annotated tag, and pushes to GitHub.
- Install the package.
- Create a
SpriteSheetDefinitionfor your material and texture. - Add
SpriteDataAuthoringto a prefab or GameObject and assign that sheet. - If you want animation, create a
SpriteAnimationSetDefinitionand addSpriteAnimationAuthoring. - If you want runtime culling control, add
SpriteCullingSettingsAuthoringin the scene. - Enter Play Mode and let the ECS systems animate, cull, and render your sprites.
Assets/Scenes/SampleScene.unityAssets/Scenes/SpawnBenchmark.unityAssets/Prefabs/SwordMan/SwordMan.prefab
- Unity
6000.3.10f1or newer com.unity.entities1.4.x
Detailed package documentation lives in:
Packages/com.ecs2d.renderer/README.md