Easy Grid Builder Pro 2 Documentation
Easy Grid Builder Pro 2 Documentation
  • Getting Started
    • Introduction
    • Quick Start Guide
    • API Documentation
      • API - All Accessible Events
      • API - Grid Manager Classes
      • API - Easy Grid Builder Pro Class
      • API - Grid Buildable Classes
    • Render Pipeline Compatibility
    • Third Party Assets Compatibility
    • Patch Notes
  • Walk Through Tutorial
    • Make a 2D City Builder
      • Setting Up The Scene
      • Setting Up the Grid Values
      • Setting Up Visual - Object Grid
      • Creating Buildable Objects
      • Creating Buildable Object SO Assets
      • Adding Grid Area Disablers And Enablers
    • Make a 3D City Builder
      • Setting Up The Scene
      • Exploring Grid Properties
      • Adding Grid Visuals - Object Grid
      • Creating Buildable Objects
      • Creating Buildable Object SO Assets
      • Explore UI and Quick Play Testing
      • Exploring Grid Managers
      • Exploring Grid Modules
      • Polishing Buildable Objects with Effects
      • Adding Grid Visuals - Procedural Grid
      • Setting Up Custom Surface Projection
      • Adding Terrain
    • Make a 3D Modular House Builder
    • Review Demo Scenes
  • Explore Major Features
    • Setting Up Buildable Objects
    • Setting Up Buildable Objects SO Assets
    • Grid UI Features
    • Grid Visual - Object Grid Features
    • Grid Visual - Procedural Grid Features
    • Explore Build Conditions
    • Explore Grid Heat Map Features
  • Scriptable Objects
    • Buildable Grid Object SO
      • Buildable Grid Object Category SO
    • Buildable Edge Object SO
      • Buildable Edge Object Category SO
    • Buildable Corner Object SO
      • Buildable Corner Object Category SO
    • Buildable Free Object SO
      • Buildable Free Object Category SO
    • Buildable Object UI Category SO
    • Grid Modifier SO
  • Primary Components
    • Easy Grid Builder Pro XZ / XY
      • Easy Grid Builder Pro
      • Editor Grid Visual Handler XZ / XY
      • Grid Data Handler
    • Buildable Object Configurator
    • Buildable Grid Object
    • Buildable Edge Object
    • Buildable Corner Object
    • Buildable Free Object
    • Grid Manager
      • Grid Built Objects Manager
      • Grid Input Manager
      • Grid Save And Load Manager
      • Grid Heat Map Manager
      • Grid Area Modifier Manager
      • Grid Area Disabler Manager
      • Grid Area Enabler Manager
      • Grid UI Manager
    • Buildable Grid Object Ghost
    • Buildable Edge Object Ghost
    • Buildable Corner Object Ghost
    • Buildable Free Object Ghost
    • Buildable Object Destroyer
    • Buildable Object Selector
    • Buildable Object Mover
  • Secondary Components
    • Grid Heat Map
    • Grid Area
    • Grid Area Disabler
      • Basic Grid Area Disabler
    • Grid Area Enabler
      • Basic Grid Area Enabler
    • Grid Area Modifier
    • Buildable Free Object Snapper
    • Grid Area Visual Generator
    • Grid Cell Indicator Visual Generator
    • Buildable Object Effects
    • Grid Custom Surface Projector
    • UI Third Person Cursor Handler
  • Utility Components
    • Terrain Data Manager
    • Global Time Tick Manager
    • WASD Camera Controller
    • Scaling Effect
    • Easy Screen Shot Maker
Powered by GitBook
On this page
  • Camera Settings
  • Rotation Settings
  • Zoom Settings
  • Height Adjustment
  • Input Keys
  • Example Use case
  1. Utility Components

WASD Camera Controller

PreviousGlobal Time Tick ManagerNextScaling Effect

Last updated 5 months ago

The WASD Camera Controller component allows for smooth and responsive camera control using keyboard inputs. It supports movement, rotation, and zoom functionality, as well as optional height adjustment using raycasting to follow terrain or other surfaces dynamically.

You can find this component in SoulGames > Utilities > Scripts. It is attached to the WASD Camera Controller Prefab, located in: SoulGames > Easy Grid Builder Pro 2 > Prefabs > Sample Camera Controller.

Camera Settings

Property
Function
Required

Camera Transform

The camera's transform component

Yes

Normal Speed

Camera movement speed during normal operation

No

Fast Speed

Camera movement speed when the speed-up key is held

No

Movement Lerp Time

The smoothing time for camera movement transitions

No

Rotation Settings

Property
Function
Required

Rotation Amount

The angle by which the camera rotates per input

No

Rotation Lerp Time

The smoothing time for rotation transitions

No

Zoom Settings

Property
Function
Required

Zoom Amount

The amount of zoom applied per input

No

Min Zoom

The closest zoom level allowed

No

Max Zoom

The farthest zoom level allowed

No

Zoom Lerp Time

The smoothing time for zoom transitions

No

Height Adjustment

Property
Function
Required

Set Height by Raycast

Enables automatic camera height adjustment using raycasting to detect ground or terrain

No

Raycast Layer Mask

Specifies the layers to include in raycasting for height adjustment

No

Input Keys

Property
Function
Required

Up Key

Key to move the camera forward

No

Down Key

Key to move the camera backward

No

Left Key

Key to move the camera left

No

Right Key

Key to move the camera right

No

Speed Up Key

Key to increase the camera movement speed temporarily

No

Rotate Left Key

Key to rotate the camera left

No

Rotate Right Key

Key to rotate the camera right

No

Zoom In Key

Key to zoom in the camera

No

Zoom Out Key

Key to zoom out the camera

No


Example Use case

The WASD Camera Controller supports both 2D and 3D games, providing a dynamic and flexible camera controller powered by Cinemachine. To use the controller: Drag and drop the WASD Camera Controller Prefab into your scene and hit play.

Modify the WASDCameraCMV GameObject's Transform values inside the WASD Camera Controller Prefab to set the default starting position and rotation for the camera.

If you encounter unwanted zoom behavior, set all values under the Zoom Settings to 0 to resolve the issue.