Reply To: How to use NavMesh.CalculatePath()?

Forums 💬 FlowCanvas ⚙️ Support How to use NavMesh.CalculatePath()? Reply To: How to use NavMesh.CalculatePath()?

#12171
ruffleneck
Participant

    Okay, problem solved. I think there’s a minor gripe with FlowCanvas with the NavMeshPath (NOT NavMeshAgent’s NavMeshPath, but NavMesh’s path) and it’s that it loses the initialization of the variable when you enter playmode.

    Here you can see the test flowscript outside playmode; Look at top right, the path variable is initialized

    [attachment file=”Screenshot 2021-12-30 16.04.26.png”]

    Here’s when you press play, and it fails to create the path; Look at top right, the path variable becomes uninitialized variable

    [attachment file=”Screenshot 2021-12-30 16.04.42.png”]

    And how to get it work; You have to initialize it manually on enable; Look at top right, the myList (Vector3) is populated and the switch condition succeed

    [attachment file=”Screenshot 2021-12-30 16.07.45.png”]