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
  • Setting Up Core Grid Properties
  • Setting Up Grid Buildables
  • Setting Up Vertical Grid
  • Setting Up Grid Collisions
  • Setting Up Grid Visuals
  1. Walk Through Tutorial
  2. Make a 2D City Builder

Setting Up the Grid Values

PreviousSetting Up The SceneNextSetting Up Visual - Object Grid

Last updated 5 months ago

Setting Up Core Grid Properties

Now, let’s take a closer look at the Core Grid Properties section of the Easy Grid Builder Pro XY component. There are three key properties to focus on: Grid Width, Grid Length, and Cell Size.

  • Set the Cell Size to 1 (1 Unit = 1 Unity unit), Grid Width to 35, and Grid Length to 20. This configuration will fill up your Game view with the grid.

  • The Update Grid Position property allows you to adjust the grid's position during runtime. If you want the grid to move (update its transform position) dynamically at runtime, make sure to enable this property.

  • The Grid Origin property defines the grid's origin point, which can be set to Centered or Default. For this tutorial, we’ll keep it set to Centered.

  • The Update Grid Width And Length property enables runtime changes to the grid’s width and length. If disabled, modifying the Grid Width and Grid Length values during runtime will not affect the grid system. For this tutorial, we’ll leave this property disabled.


Setting Up Grid Buildables

This is where you add all the Buildable Objects to your grid. These objects can be placed on your grid during runtime. We’ll explore this feature in more detail later in this tutorial.


Setting Up Vertical Grid

Vertical Grids allow you to generate additional grids above the base grid. While this feature is less useful in a 2D game since vertical levels aren’t typically needed, it can still be leveraged with clever design techniques to create unique grids.

For this tutorial, we’ll skip the Vertical Grid Properties and explore them in a future tutorial.


Setting Up Grid Collisions

The Grid Collisions section is responsible for generating the base collider for the grid, which defines its physical area.

  • The Grid Collider Size Multiplier property adjusts the collider's scale relative to the grid size. By default, this value is set to 2, and we will leave it as is.

  • The Lock Collider At Bottom Grid property is designed for use with vertical grids. When enabled, it locks the collider to the base grid level, preventing it from moving with the active vertical grid level during switching.

For this tutorial, we’ll keep these settings at their default values.


Setting Up Grid Visuals

As you can see, there are four more sections available: Visual - Object Grid, Visual - Canvas Grid, Visual - Runtime Text Grid, and Visual - Runtime Procedural Grid. These provide unique ways to generate grid visual representations for Easy Grid Builder Pro 2. You can mix and match multiple methods or choose to use just one, depending on your grid system's needs.

Visual - Canvas Grid was the primary grid visualization method in Easy Grid Builder Pro 1. However, with the introduction of the Visual - Object Grid method, the Canvas Grid approach is now considered obsolete. For this tutorial, we will focus on the Visual - Object Grid properties and customize them to suit our 2D game. This method is enabled by default, and the grid visual you currently see in the scene is generated using this method.

The Visual - Runtime Text Grid and Visual - Runtime Procedural Grid methods, on the other hand, are designed for runtime only and do not have any visual representation in the Editor.