Search Unity

NavMeshPathStatus.invalid on Android only.

Discussion in 'Navigation' started by NpXAutobot, Aug 27, 2016.

  1. NpXAutobot

    NpXAutobot

    Joined:
    Jul 21, 2015
    Posts:
    2
    Hey guys, Ive been working on a project for Android devices for a few months now, Just got back from a month long break from the PC. got everything updated and loaded my project. Everything is fine, except when I build the apk and test on my phone.

    I have narrowed down my issues to the NavMesh.CalculatePath ... it is returning my path just fine on pc, but on android it is invalid every time. no other changes in the project.

    Code (CSharp):
    1. NavMesh.CalculatePath (GroundCreepSpawn, Waypoints [0].transform.position, NavMesh.AllAreas, PathTest);
    2.  
    3.             if (PathTest.status == NavMeshPathStatus.PathInvalid) {
    4.                 UiMaster.instance.GlobalMsg ("Nav Path Invalid !!!", .5f, 36);
    5.                 return false;
    6.             }
    Any ideas!?