Getting Started¶
Requirements¶
- Unity 6
- uGUI for the supplied runtime construction menu
- Legacy Input Manager only if you want to use the demo keyboard and mouse adapters unchanged
The runtime assemblies do not require an external pathfinding, inventory, or dependency-injection package.
Create the recommended demo¶
- Import the package and wait for script compilation to finish.
- Choose Tools > Pixit Games > Space Station Survival > Create Clean Visual Placement Demo.
- Confirm saving the current scene if Unity asks.
- Open
Demo/Scenes/VisualPlacementDemo.unityif it is not already open. - Enter Play Mode.
The command prepares the construction catalog, prefab wrappers, categorized UI, station simulation, atmosphere network, resource grid, camera controls, save slots, room inspector, and worker manager.
Generated scene
The clean demo command recreates VisualPlacementDemo.unity. Save custom scene work elsewhere before running it again.
First playable station¶
Build this sequence:
- Place a group of floor cells.
- Seal the perimeter with walls, a door, or an airlock.
- Add a Bed and Locker to classify the room as Crew Quarters.
- Build a second enclosed room.
- Add an Oxygen Generator to classify it as Life Support.
- Add a Solar Generator outside the rooms.
- Attach a Ventilator to the shared wall between the two rooms.
- Turn Build Mode off, select the Life Support room, and choose Assign Worker.
The crew member walks to the generator, enables its staffed production, consumes oxygen, becomes tired, returns to bed, and resumes work after resting.
Demo controls¶
| Action | Default input |
|---|---|
| Place selected piece | Left mouse button |
| Remove piece | Right mouse button |
| Rotate placement | R |
| Story up/down | Page Up / Page Down |
| Select catalog slots | 1–9 |
| Pan camera | WASD |
| Rotate camera | Q / E |
| Orbit camera | Middle-mouse drag |
| Zoom | Mouse wheel |
| Frame station | F |
UI buttons expose the same important construction functions and prevent clicks from placing pieces behind the menu.
Other included demos¶
The package also contains earlier focused demonstrations:
- Create Phase 1 Demo — basic room, resources, crew, device, and debug UI.
- Create 1x1 Grid Room Demo — one logical room assembled from independent cells.
- Create Placement Demo — core placement and validation without the complete visual UI workflow.
For normal evaluation and integration, begin with the clean visual placement demo.
Recommended integration path¶
- Duplicate the visual demo scene.
- Dress the supplied wrapper prefabs with your own models.
- Replace or extend the construction catalog.
- Create project-specific tags and room types.
- Replace the optional legacy input adapters with your Input System, gamepad, or multiplayer command layer.
- Style or replace the supplied uGUI without modifying simulation code.