Basic API Documentation
In this guide, we will go through how to use Easy Grid Builder Pro API. And also this documentation will get updated when new functionalities are added.
01. Namespace
You need to add Easy Grid Builder Pro namespace in your scripts to use all its functionalities.
using SoulGames.EasyGridBuilderPro;02. Access Grid Systems
Get a reference to all grids in the scene.
private List<EasyGridBuilderPro> easyGridBuilderProList;
private void Start()
{
easyGridBuilderProList = MultiGridManager.Instance.easyGridBuilderProList;
}Get a reference to the currently active grid in the scene.
private EasyGridBuilderPro currentActiveSystem;
private void Update()
{
currentActiveSystem = MultiGridManager.Instance.activeGridSystem;
}Example: Get a reference to a specific grid system by its name.
03. Public Get Functions
Example: Get a reference to the currently active grid's Grid Width. (When the key "Space" is pressed)
04. Public Set Functions
Example: Set all grids GridMode. (When the key "Space" is pressed)
05. Input Functions
You can use these functions to call Easy Grid Builder Pro inputs instead of using Easy Grid Builder Pro Inputs SO assets. Or you can do both.
NOTE: Easy Grid Builder Pro built-in Input System with Inputs SO assets is a very powerful system with high flexibility. Only use these custom methods for specific reasons. To get a better understanding it is recommended to check the Multi Grid Input Manager script code.
Example: Call input function to place a buildable object. (When the key "Space" is pressed)
Last updated