API Documentation
Last updated
Last updated
using UnityEngine;
using SoulGames.EasyGridBuilderPro; // Import the EasyGridBuilderPro namespace
/// <summary>
/// Example script demonstrating how to cache and use the GridManager instance.
/// </summary>
public class APIDocumentationClass : MonoBehaviour
{
// Private variable to hold a reference to the GridManager instance
private GridManager gridManager;
private void Start()
{
// Cache the singleton instance of GridManager for future use
gridManager = GridManager.Instance;
// Example: Log the active grid width to the console
Debug.Log(gridManager.GetActiveEasyGridBuilderPro().GetGridWidth());
}
}