Overview
PixitGames Dice System is a modular dice rolling solution for Unity built around a simple prefab workflow. It supports both real physics dice rolls in 3D world and clean UI-style 3D dice rolls in front of the camera (no gravity). Optional UI components display results as floating numbers and aggregate them into readable rows.
Two Roll Modes
- 3D World (Physics Roller)Throw dice into a tray using Rigidbody physics. Results are read from the top face after the die settles.
- 3D UI (Animated Roller)Use the same 3D dice prefab as a UI element. Dice drifts/spins on a “stage” and settles cleanly to the result face (perfect for UI popups, RPG dialogs, loot rolls, etc.).
Detailed Documentation
Optional Result UI
- Floating numbers pop above each die and fly into result rows
- Row aggregation: Sum or Highest (advantage style)
- Optional DC evaluation: SUCCESS / FAIL
Why this package
- Same dice prefab works in both modes
- Marker-based face setup = reliable results
- Clean “one-line roll” API
- Designed to be Asset Store friendly: modular scripts, sample scenes, documentation