Buildable Grid Object
Last updated
Last updated
This component handles all the Buildable Grid Object's functionalities. This component must be added to the Buildable Grid Object's parent.
Property | Function | Required |
---|---|---|
Buildable Grid Object Type SO | BuildableGridObjectTypeSO asset that this Buildable Grid Object owns. | Yes |
Rotate Object For XY | Rotate this object automatically in Grid Axis XY | No |
Rotate Object For XZ | Rotate this object automatically in Grid Axis XZ | No |
Calculate Pivot | Automatically calculate the object's Pivot and Scale | No |
Rotate Scale & Pivot For XY | Rotate the custom Scale and Pivot, to the XY axis | No |
Object Scale | The scale of the object | Yes |
Object Center | The offset of the object's Scale | Yes |
Object Custom Pivot | The custom Pivot position of the object | Yes |
It's Recommended to read about the BuildableGridObjectTypeSO asset to get a better understanding on how Buildable Grid Objects Type SO can be implemented.
To use this component simply add this to the buildable grid object prefab parent. Then add the BuildableGridObjectTypeSO asset, that this object owns.
NOTE: Read this quick guide to see Automatically Setting Up the Pivot and Scale.
As shown in the image above Buildable Grid Object component was added to the parent of the buildable grid object prefab and also, the BuildableGridObjectTypeSO asset was added to the field.
You can find example implementations of this component in all the pre-made buildable grid object prefabs located in EasyGridBuilder Pro > Prefabs > Buildable Grid Object Samples.