Loading Neighboring Terrains

Ok so was going over the terrain API a bit to figure out how best to do my idea and run into an issue. I want to load the terrains neighbors of the one I am currently on. How do I find these neighboring terrains? I saw the rightNeigbor and leftNeigbor but am not seeing a way to figure out the “Z” neighbors. Nor can i figure out how to find the terrain my player is one. I only want to run this “FindTerrain” upon entering the next terrain which I do through a box collider on enter and exit.

Sorry if this is super simple, just never touched terrains before and am finding it a bit intimidating.

Use their coords. if greater than the current terrain on the Z axis it is “north”. If less then "south. If greater on the X axis it is “east”. If less than it is “west”. Same deal for “northeast” which is positive on the X and Z axis etc…Boundng areas can be created by using the terrain size variable and extendng 50% to either side of it’s center axis.

1 Like

oh crap…duh. Lol thank you.

1 Like