Fully working Puzzle Cube for unity. 2x2 to 9x9 smooth rotations, undo / redo, scramble, solve detection. save weeks of work, just drop in and play.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 webGLWhat 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.Input System : Unity New Input SystemPlatorm: PC, Android, iOS, WebGLScriptsTotal Scripts: 9 C# scriptsCubeController.cs — main controller, handles spawning, rotation, undo redo, scramble and solve detectionCubeData.cs — pure logic class, stores all cubie positions and sticker state, no MonoBehaviourCubeMove.cs — struct representing a single layer rotation with axis, layer and turn countCubie.cs — represents one small piece, holds sticker dictionary and handles rotation mathPieceView.cs — MonoBehaviour on each piece prefab, reads cubie data and updates colors using MaterialPropertyBlockCubeInput.cs — handles all mouse, touch, keyboard input and camera orbit zoomCubeEvents.cs — static event bus connecting UI to cube logic without direct referencesCubeMap.cs — generates 2D flat net UI of cube, updates colors after every moveUiManager.cs — connects buttons to CubeEvents, builds size selector panel at runtimeCube System :Supported Sizes: 2x2 to 9x9Max Pieces: 730 (9x9)Move Normalization: turns normalized to range of minus 2 to 2Undo Stack: unlimited history using StackRedo Stack: clears on new moveScramble: 25 moves, avoids repeating same axis consecutivelySolve Check: runs after every move, checks all six faces


