2D Sprite Slicer Mechanic (Unity)
A downloadable asset pack
Sprite Slicing System for Unity 6
A 2D sprite slicing framework for Unity.
Perfect for fruit ninja-style games, destructible objects, or any physics-based slicing mechanic.
Features
- one-slice-at-a-time logic
- Automatic collider regeneration (polygon or fast box mode)
- Preserves sprite details — pivot, scale, sorting, and materials intact
- Physics-aware split — realistic push force and separation
- Debug Gizmos — visualize slice direction, intersections, and outlines
🧩 Requirements
- Unity 6 or newer (tested with 6 runtime)
- Unity Input System (enabled)
- Burst and Jobs packages (recommended for speed)
⚙️ Installation
Make sure to apply these sprite settings (for your sliceable game objects):
Mesh Type ---> Full Rect
Read/Write ---> Enabled
Filter Mode ---> Point (no filter)
- Download or clone this package.
- Import the package into your Unity project.
- Add a new "Sliceable" Layer.
- Find the"GameManager" game object in your hierarchy.
- Make sure the GameManager.cs is attacked to it.
- Change the Sliceable Layer of GameManager component to "Sliceable"
- Tag your sliceable game objects (pizza, watermelon and pumpkin) with
Sliceableand assign them to the "Sliceable" layer you added at step 2. - left click and drag your mouse.
- enjoy slicing!
This system uses Unity’s new Input System with the following bindings:
| Action | Input | Description |
|---|---|---|
TouchPress | Touch / Left Mouse | Begin or end a slice |
TouchPosition | Touch / Mouse position | Defines slice direction |
You can easily remap these inside the PlayerControls input actions asset.
How It Works
- Player swipes or drags across a sliceable sprite.
- A Burst Job determines pixels along the slice line.
- Two new sprites + colliders are generated automatically.
- The original object is replaced by the sliced halves (pooled for speed).
- Physics is applied with inherited velocity and separation force.
⚙️ Key Parameters
| Setting | Description |
|---|---|
| Min Slice Distance | Minimum swipe length to trigger slicing |
| Slice Separation | Distance between the two sliced parts |
| Sliced Parts Separation Force | Push force applied after slicing |
| Max Slices Per Object | Limit how many times an object can be sliced (-1 = unlimited) |
| Alpha Threshold | Transparency cutoff for collider generation |
| Collider Simplification | How smooth polygon edges are generated |
| Max Texture Size | Clamp to avoid large memory use on mobile |
| Use Fast Colliders | Enable box colliders for 3x faster slicing |
| Show Debug Gizmos | Draw slice vectors & intersection points in editor |
Optimization Tips
- Use low-poly sprites or trimmed textures for faster collider generation.
- Keep sprite sizes below
1024×1024for smooth performance. - Disable Debug Gizmos in builds for maximum FPS.
Extend or Customize
- Trigger particle effects or sound on slice events (
OnSliced()) - Integrate your own object pooling or scoring system
- Allow multi-slice chains for combo gameplay (Multi slice is buggy)
- Generate curved or angle-based slices
🧾 License
This system is free for personal and commercial use.
You can modify, integrate, and distribute it as part of your Unity project.
Donation and Credit is optional but always appreciated 💙
Tags
unity slicing system · 2D slice system · sprite slicer · fruit ninja · unity burst · unity jobs · unity mobile performance · free unity asset · unity 6 tools
| Published | 5 days ago |
| Status | Released |
| Category | Assets |
| Author | hs3962 |
| Tags | 2D, Asset Pack, Pixel Art, slice, sourcecode, Unity |
Download
Click download now to get access to the following files:


Leave a comment
Log in with itch.io to leave a comment.