Buildable Free Object Type SO

These scriptable objects store all the data for buildable free objects.

For each buildable free object, you need to create one of these assets and fill in the required data.

You can create a new scriptable object, go to Asset > Create > SoulGames > Easy Grid Builder Pro > BuildableFreeObjectTypeSO.

NOTE: Buildable Grid Objects snap to the grid cells and Buildable Free Objects do not snap to grid cells.

PropertyFunctionRequired

Unique Object Name

Name for the buildable object - Must be unique.

Yes

Object Description

A description of the object - Will be used in the UI in future.

No

Object Tool Tip Description

A tool tip description of the object - Will be used in the UI in future.

No

Buildable Category SO

Require BuildableCategorySO asset - If this object is not added it will not be displayed in Easy Grid Builder Pro UI.

No

Object Icon

Require a sprite - Used to display the object in Easy Grid Builder Pro UI.

No

Object Prefab

List of object prefabs - This is the prefab that will be spawned. If more than one is provided, one prefab will choose randomly each time to spawn.

Yes

Ghost Prefab

This is used to display a temporary ghost visual before spawn the object in build mode. If this is empty first prefab of the Object Prefab list will be used instead.

No

Pleaceable Ghost Material

A custom material to be used in temporary ghost objects when they are place-able on the grid. If empty, the ghost object's default material will be used instead.

No

Not Pleaceable Ghost Material

A custom material to be used in temporary ghost objects when they are not place-able on the grid. If empty, the ghost object's default material will be used instead.

No

Set Built Object Layer

Set the build object's layer after the build is complete

No

Built Object Layer

The Layer that built object will have after the placement/build

No

Hold Key To Place

Enable the ability to place objects while holding the placement key (Paint Mode)

No

Snap To Object Snappers

Enable the ability to snap this object to object snappers

No

Enable Build Condition

Enable using build conditions for the buildable object

No

Build Condition SO

Require BuildConditionSO asset - This asset will hold all the build condition data.

No

Your defined BuildableFreeObjectTypeSO assets should be added to the Buildable Free Object Type SO List in all the Easy Grid Builder Pro grid systems in order to use them in the specific grids.

Also, you need to add the asset to the Buildable Free Object components in all the object prefab/prefabs.

If you are using build conditions in your defined BuildableFreeObjectTypeSO asset, you will also need to add the asset to the Buildable Free Object Type So List under Multi Grid Build Condition Manager component.

You can find pre-defined BuildableFreeObjectTypeSO assets located in EasyGridBuilder Pro > Scriptable Objects > Buildable Free Object Type SO.

Last updated