A downloadable asset pack

Download NowName your own price

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)

  1. Download or clone this package.
  2. Import the package into your Unity project.
  3. Add a new "Sliceable" Layer.
  4. Find the"GameManager" game object in your hierarchy.
  5. Make sure the GameManager.cs is attacked to it.
  6. Change the  Sliceable Layer of GameManager component to "Sliceable" 
  7. Tag your sliceable game objects (pizza, watermelon and pumpkin) with Sliceable and assign them to the "Sliceable" layer you added at step 2.
  8. left click and drag your mouse.
  9. enjoy slicing!

This system uses Unity’s new Input System with the following bindings:

ActionInputDescription
TouchPressTouch / Left MouseBegin or end a slice
TouchPositionTouch / Mouse positionDefines slice direction

You can easily remap these inside the PlayerControls input actions asset.


How It Works

  1. Player swipes or drags across a sliceable sprite.
  2. A Burst Job determines pixels along the slice line.
  3. Two new sprites + colliders are generated automatically.
  4. The original object is replaced by the sliced halves (pooled for speed).
  5. Physics is applied with inherited velocity and separation force.

⚙️ Key Parameters

SettingDescription
Min Slice DistanceMinimum swipe length to trigger slicing
Slice SeparationDistance between the two sliced parts
Sliced Parts Separation ForcePush force applied after slicing
Max Slices Per ObjectLimit how many times an object can be sliced (-1 = unlimited)
Alpha ThresholdTransparency cutoff for collider generation
Collider SimplificationHow smooth polygon edges are generated
Max Texture SizeClamp to avoid large memory use on mobile
Use Fast CollidersEnable box colliders for 3x faster slicing
Show Debug GizmosDraw slice vectors & intersection points in editor

Optimization Tips

  • Use low-poly sprites or trimmed textures for faster collider generation.
  • Keep sprite sizes below 1024×1024 for 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
StatusReleased
CategoryAssets
Authorhs3962
Tags2D, Asset Pack, Pixel Art, slice, sourcecode, Unity

Download

Download NowName your own price

Click download now to get access to the following files:

Slice.unitypackage 2.7 MB

Leave a comment

Log in with itch.io to leave a comment.