When I run mi game I have the next tree:
I need to get the Colums (in the image is only one, but I have actually four), and the I need to access the Hex Cells to verify one variable of them. I try the next script
private void Awake()
{
GameObject gridObject = GameObject.Find("Hex Grid");
HexGrid gridReference = gridObject.GetComponent<HexGrid>();
//Debug.Log(gridReference.GetComponentInChildren);
}
I can get the Hex Grid class, but when I fail trying to get the Colums.
- Is possible to access them via script in-game?