Navmesh Rotation/Offset

Hi guys I’m a newbie coder and I’m trying to find out how to make a NavMeshGraph Rotation and Offset X,Y and Z values a public unity float or transform value as I can figure out how to edit the EditorGUILayout through scripting.

Thanks.

Hi

You can access the first navmesh graph using
var graph = AstarPath.active.astarData.navmesh;
On that object you can change the offset and similar. Note that you need to recalculate the graphs for the updates to take effect. You can do that using:

AstarPath.active.Scan ();