Skip to content

Getting Started

Requirements

This package is intended for Unity 6 style projects using the built-in Unity UI and TextMesh Pro workflow. The demo project also uses URP settings.

Before testing, make sure TextMesh Pro essentials are imported if Unity prompts for them.

Open the Demo

  1. Open Assets/PixitGames/BlockWorld/DemoGameScene.unity.
  2. Enter Play Mode.
  3. Use the save menu to start a new game or load an existing save.
  4. Use the hotbar and inventory to select tools, blocks, and items.

Default Controls

Input Action
WASD Move
Mouse Look around
Left Mouse Attack or break blocks
Right Mouse Place blocks or open crafting stations
Number keys Select hotbar slots
I Toggle inventory
M Toggle demo save menu

Minimal Scene Setup

For a custom scene, add or configure these objects:

Component Required Role
WorldGenerator Generates chunks, terrain, trees, ores, and entities
WorldSettings Provides world, biome, and block registry data
FirstPersonController Player movement and camera look
BlockInteractor Breaking, placing, attacking, crafting station interaction
Inventory Stores hotbar and inventory slots
InventoryUI Displays inventory and handles UI slot interactions
CraftingSystem Handles recipe matching and crafting station state
SaveManager Saves world changes, inventory, seed, and player transform
DemoSaveMenu Demo UI for new/load/save/delete

After setup:

  1. Press New Game.
  2. Break a block.
  3. Pick up the drop.
  4. Place a block next to another block.
  5. Open inventory.
  6. Save, reload, and confirm changed blocks and inventory persist.