Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

NavMesh.SamplePosition on iOS results in app freezing

Discussion in 'Editor & General Support' started by iwaldrop, Jun 4, 2014.

  1. iwaldrop

    iwaldrop

    Joined:
    Sep 3, 2012
    Posts:
    9
    Use of Unity API NavMesh.SamplePosition on iOS results in the application hanging, but not crashing. While the API works as expected in the editor, on-device everything stops responding (it appears functionally similar to the timescale being set to 0).

    Environment: iOS 7.1 and 6.0.1

    NOTES:
    - Bug Report submitted via in-editor bug reporting tool.
     
  2. Lesha-VH

    Lesha-VH

    Joined:
    Jul 3, 2012
    Posts:
    96
    Unity 4.6.1 + iOS 6/7/8 - SamplePosition hung on iOS device

    100% everytime

    pls, fix
     
  3. nekokiller2012

    nekokiller2012

    Joined:
    Oct 22, 2012
    Posts:
    8
    Unity 5.2.2p3 + iOS 6/7/8 - SamplePosition always Crash on iOS device ! 100% every time !


    got error message from XCode :

    InvalidateNavMeshHit at NavMeshManager.cpp : 601


    There is no problem running on Unity Editor or Android device , but iOS crash ( use IL2CPP )


    our code is :

    NavMesh.SamplePosition( vTargetPos, out navMeshHit, 1f, NavMesh.Allareas);

    If we use NavMesh.GetAreaFromName("Walkable") instead of the NavMesh.AllAreas ,

    it will crash on NavMesh.GetAreaFromName()