
Procedural Puzzle 2D/3D Generation with Custom Matrix Sizes(Unity Asset)
A downloadable Asset for unity for Windows
Procedural Puzzle 2D/3D Customizable Grid Logic System
Create customizable 2D (UI) and 3D (world-space) grid-based puzzles using a simple toggle mechanic. Perfect for hacking mini-games, brain teasers, or sci-fi puzzle systems. Fully compatible with Unity 6.
✦ Features
-
Supports both 2D (Canvas UI) and 3D (world-space) puzzles
-
Fully customizable grid sizes via ScriptableObject
-
Logical toggle behavior: affects the clicked cell + 4 neighbors (cross pattern)
-
Modular code with separated logic for 2D and 3D cells
-
Built-in move counter with completion detection
-
Clean and extensible OOP architecture
-
Demo scenes: 3×3, 5×5, 6×4 puzzle examples in 2D and 3D
-
3D player controller for scene interaction
✦ Package Includes
-
2D and 3D puzzle prefabs
-
1 stylized 3D puzzle model with 4 materials
-
Complete demo scene
-
Modular, well-structured C# source code
-
Font: Autowide Regular (SIL Open Font License)
-
Full documentation (HOW TO USE.PDF)
✦ Suitable For
Mini-games · Sci-fi mechanics · Educational logic systems · Hacking sequences · Puzzle-based gameplay
Tested with Unity 6 (URP & Built-in RP)
✦ Technical Details
Core Features:
-
Procedural puzzle generation based on customizable ScriptableObject configs (MatrixBoardConfig)
-
Supports both 2D (UI-based) and 3D (world-space) puzzle types
-
Toggle system: each click affects the selected cell and its neighbors (cross pattern)
-
Clean value cycle logic:
0 → 1 → 0
-
Grid-based generation handled via Grid2D and Grid3D scripts
-
Demo puzzles: 3×3, 5×5, 6×4 in both 2D and 3D formats
-
Fully modular and reusable MatrixBoard controller with
IInteractableObject
interface -
Visual feedback: TextMeshPro gradients in 2D, material switching in 3D
-
Cell logic separated into CellElement, CellElement2D, CellElement3D for scalability
-
Move counter system with automatic reset and completion detection
-
Player controller included for testing interaction in 3D
Included Assets:
-
1 stylized 3D puzzle model with 4 materials (2 used for dynamic switching)
-
Prefabs for both 2D and 3D puzzle cells with full setup
-
Complete demo scene with interactive UI and world-space interaction
-
Structured and commented C# OOP source code
Licenses:
This asset uses the Autowide Regular font from Google Fonts (SIL Open Font License) and AI-generated images from Leonardo.Ai. See Third-Party Notices.txt for details.
Updated | 15 days ago |
Published | 25 days ago |
Status | Released |
Category | Assets |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | From your dream |
Genre | Puzzle |
Made with | Unity |
Tags | 2D, 3D, Asset Pack, Procedural Generation, Unity |
Average session | A few minutes |
Languages | English |
Inputs | Keyboard, Mouse |
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.