Search Unity

UnityARWorldMap example - worldMap not being saved on iPhone/iPad

Discussion in 'AR' started by phoberman, Jul 18, 2018.

  1. phoberman

    phoberman

    Joined:
    Jan 16, 2008
    Posts:
    75
    SOLVED: Hadn't realized I needed iOS 12 beta. Working fine now

    I've been trying to get the UnityARWorldMap example to work. However, when I tap the Save button, nothing happens. In WorldMapManager.cs, Save() calls OnWorldMap:

    Code (CSharp):
    1. void OnWorldMap(ARWorldMap worldMap) {
    2.       if (worldMap != null) {
    3.            worldMap.Save(path);
    4.            Debug.LogFormat("ARWorldMap saved to {0}", path);
    5.       }
    6. }
    The debug statement never appears, meaning that worldMap = null.

    Tried running on both iPhone 6 and iPad Pro. Same results.

    Any help would be appreciated.
     
    Last edited: Jul 23, 2018
  2. Lukas_v11

    Lukas_v11

    Joined:
    Mar 17, 2016
    Posts:
    6
    Stuck on the same problem. Could somebody help us out?
     
  3. Lukas_v11

    Lukas_v11

    Joined:
    Mar 17, 2016
    Posts:
    6
    Got it. The ui-button was not connected with the script!