Demo Scene & Controls

In this section we will explore the included Demo Scene, the input controls of the scene and the included UI components like the shop, remove options and action tooltips to give you an easy start into

Predesigned Level

This Asset includes SaveFile with a predesigned demo level. It will be loaded by default when you start the Grid Demo scene.

It should look something like this:

Start with empty level

If you want to start completely from scratch, simply locate the GameConfig in the scene and choose a new save file name.

If you don’t want saving at all, simply uncheck the “Enable Save System” property.

Input Control

The demo scene supports following mouse and keyboard controls

Behavior
Description

General

Drag Camera

Hold the mouse scroll wheel and move the mouse allows you to move your camera

Rotate Camera

Holding the right mouse button and then moving the mouse will allow you to rotate the camera

Zoom

Simply scroll with your mouse wheel and the camera will zoom in or out based on your mouse position

Camera auto movement

This setting can be adapted in the global game configuration:

Moves the camera in mouse direction when the mouse reaches near the screen corners. Per default only activated in placement/removal state

Placement / Removal State

Rotate Objects

Press R to rotate the previewed object before placing it on the grid

Place Objects

Placement state: Left mouse button to place the object on the selected grid cell

Remove Objects

Removal State: Left mouse button to remove the selected object

Placed Object

Trigger Action Tooltip

Press and hold the left mouse button on an object to trigger the Action tooltip. This allows you to move or remove the selected object

User Interface

Item Shop

On the bottom of the screen you can see a simple shop that allows you to place different kinds of objects. You have different tabs based on object groups:

Buildings, Decorations, Nature & Terrains.

Clicking on an object icon will trigger the placement state and will allow you to choose where to place the selected object. You hold and move the left mouse button to scroll through the entire list of objects.

Clicking on the Dollar sign will show or hide the shop panel.

GridType based removal

This removal option uses the underlying GridType and GridData classes which will be explained later in the documentation. For now it's enough to know that objects of the same GridType are stored in the same GridData. This allows you to store e.g. terrains and buildings on the same grid cell.

Clicking on the bin icon will open some removal options for you. You can choose to remove only from specific GridTypes (like only the terrain data, only the blocking data like buildings and decorations, or directly choose to remove objects from all grid data).

Choosing a specific option will hide all objects that are not of this type and you can focus only on the necessary items. Choosing the all grid types option will allow you to instantly remove all data on a selected position. This means you can directly remove the terrain and a building that is on the same position just with one click.

Action Tooltip

Clicking the left mouse button on an object and holding for a short time will trigger an action tooltip for the selected object. You can decide to remove the object or to move it to another direction.

Last updated