Grid Area Visual Generator
Last updated
Last updated
The Grid Area Visual Generator is a component designed to visually represent specific grid areas generated in runtime within the Easy Grid Builder Pro 2 system. You can locate this component in: SoulGames > Easy Grid Builder Pro 2 > Scripts > Grid Visuals Scripts This component supports dynamic visualization of grid areas on various surfaces, including flat and non-flat terrains. It is versatile for generating rectangular or circular visual indicators and includes customizable materials and effects for enhanced visual feedback.
Grid Axis
Defines the plane of the grid (XZ or XY)
Yes
Warp Around Surface Below
Enables warping of the generated visual indicator to align with underlying surfaces
No
Custom Warp Surface Layer Mask
Specifies which layers are eligible for surface warping
No
Raycast Above Offset
The height above the surface from which raycasting is performed to determine the Warp Surface
No
Space Between Visual and Surface
The distance between to offset the grid visuals from the detected surface (This is used for offsetting the visual slightly to prevent overlapping)
No
Update On Position Change
Determines whether the visuals update dynamically when the component's position changes (If the Visual is static and won't change its position during runtime disable this)
No
Shape
Defines the shape of the generated visual area (Rectangle or Circle)
Yes
Cell Size
Specifies the size of each visual cell. (While this doesn’t have to match your Grid System’s cell size, it is recommended to keep them the same in most cases)
Yes
Width
Number of cells along the width of the visual shape
Yes
Length
Number of cells along the length of the visual shape
Yes
Radius
Radius for circular grid visuals (This is ignored for Rectangular shape)
Yes
Enable Gizmos
Toggles the display of debugging gizmos
No
Enable Simplified Gizmos
Displays a simplified gizmo representation (Better for editor performance)
No
Gizmo Color
Sets the color for the debug gizmos
No
Visual Material
Material applied to the grid visuals
Yes
Cell Image Texture
The texture used for each cell in the grid visual
Yes
Cell Show Color
Color when the generated visual is visible
Yes
Cell Hide Color
Color when the generated visual is hidden
Yes
Cell Show Color HDR
Similar to the Cell Show Color property this one uses an emissive HDR color
No
Cell Hide Color HDR
Similar to the Cell Hide Color property this one uses an emissive HDR color
No
Color Transition Speed
Speed of color transitions between show and hide
Yes
You can apply a Scrolling Noise effect to the generated grid visuals, similar to the functionality available in the Visual - Object Grid section of your Easy Grid Builder Pro XZ / XY components.
Use Scrolling Noise
Enables scrolling noise textures on the generated visuals
No
Noise Texture
The texture used for noise
No
Texture Tiling
Tiling factor for the noise texture
No
Texture Scrolling
Scrolling speed and direction for the noise texture
No
Is Attached To A Buildable Object
Set if the component is attached to a GameObject that has a Buildable Object component
No
Buildable Object
If the Attached To A Buildable Object property is enabled, a reference to the attached Buildable Object component
No
Deactivate On Ghost Mode
If Is Attached To A Buildable Object, Automatically hides visuals in ghost mode while attempting to place the Buildable Object on the grid
No
Deactivate After Build
If Is Attached To A Buildable Object, Hides visuals after the Buildable Object is placed
No
Toggle On Select
If Is Attached To A Buildable Object, Toggles visibility when the Buildable Object is selected
No
Toggle On Move
If Is Attached To A Buildable Object, Toggles visibility when the Buildable Object is moved
No
Activate On Default Mode
Activate the visibility on Grid Mode None (Default)
No
Activate On Build Mode
Activate the visibility on Grid Mode Build
No
Activate On Destroy Mode
Activate the visibility on Grid Mode Destroy
No
Activate On Select Mode
Activate the visibility on Grid Mode Select
No
Activate On Move Mode
Activate the visibility on Grid Mode Move
No
This component generates a Visualizable Grid at runtime using the provided properties. It can be used to:
Display an underlined grid visual for Buildable Objects (e.g., highlighting an object's area) by attaching this to Buildable Objects.
Highlight specific areas on the grid independently.
This component is highly versatile and fully customizable, allowing you to adapt it to meet your specific requirements.