Puzzle Cube System is a complete puzzle cube. supports 2x2 way up to 9x9 cube sizes. you can also switches between cubes in runtime. Camera adjust automaticaly on size change. works on PC, Android, iOS and webGL
What You Get:
Full undo and redo with complete move history. scramble with 25 moves. solve detection that fires an event when cube is completed. 2D live Cube map showing all six faces in real time. Six Face colors customizable from inspector. smooth layer rotation with adjustable speed and spacing.
Input:
Mouse drag on face rotates that layer. left click drag in empty area orbits camera. scroll wheel zooms. double click snaps cube to nearest 90 degree angle. so you can see all three sides of cube. For Mobile: single Finger drag for touch, two finger pinch to zoom. and drag in empty space for orbit camera around cube.
Code:
Data and visuals are fully seperated. Each scripts has one clear job, CubeController handles game logic, CubeData handles all cube Math. CubeInput handles mouse and touch. PieceView handles visuals. CubeEvents connects UI without tight coupling. Easy to Extend from your own scripts.
demo scene and documentation included.