Buildable Free Object Snapper
Last updated
Last updated
The Buildable Free Object Snapper is a utility component in Easy Grid Builder Pro 2 that facilitates snapping Buildable Free Objects to specific locations within a designated area. It uses a trigger area to define the snapping region and offers customization for all Buildable Free Objects or any Buildable Free Object Categories.
Enable Gizmos
Toggles the visibility of debugging gizmos in the Scene view
No
Gizmo Color
Sets the color for the gizmo visualization
No
Snap All Free Objects
Enables snapping for all free buildable objects
No
Snap Free Object Categories List
Specifies a list of Buildable Free Object Categories SO for snapping objects. Only Buildable Free Objects that are in these categories will snap if the Snap All Free Objects property is disabled
No
This component draws a gizmo in the Scene view to visually display the covering area. To use it:
Add this component to an empty GameObject.
Adjust the Snapping Trigger Size and position by modifying the Transform values.
The gizmo will represent the area covered by the component, helping you align it as needed.
If the blue gizmos aren’t visible, ensure that "Show Gizmos" is enabled in your Scene view.
As you know, Buildable Free Objects do not snap to any grid cell and can be placed freely on the grid, even on top of other objects. However, for specific scenarios, you can use the Buildable Free Object Snapper component.
For example, you can attach the Buildable Free Object Snapper component to a Wall Object and configure it to snap only a specific Buildable Free Object Category. Once the wall is built, any Buildable Free Object of the specified category placed near the wall's trigger area will automatically snap to the predefined Buildable Free Object Snapper location.
This feature enables creative-level designs, such as:
Books snapping to designated spots on a bookshelf.
Windows snapping to specified positions on a wall etc...
It’s a versatile tool for creating polished and dynamic environments!