@@ -88,7 +65,7 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda
{
returnfalse;
}
AddNewARCoreCloudAnchor(trackable);
AddNewARCoreCloudAnchor(trackable);// here we don't check if the cloud anchor is correctly resolved, this could be imrpoved but would require this method to be async (change of api)
returntrue;
}
...
...
@@ -125,9 +102,9 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda
TrackableInfoinfo=newTrackableInfo();
info.name=trackedCloudAnchor.name;
stringlocalId=trackedCloudAnchor.trackableId.subId1.ToString("X16");// there must be a better way : does it work every time?
m_localIdToCloudId.Add(result.Anchor.trackableId.subId2.ToString("X16"),cloudId);// should be a better way: not sure about that but subId2 of the ARCloudAnchor seems to correspond to subId1 of local anchor that is updated by Anchor Manager
m_localIdToEtsiId.Add(result.Anchor.trackableId.subId2.ToString("X16"),etsiId);// should be a better way: not sure about that but subId2 of the ARCloudAnchor seems to correspond to subId1 of local anchor that is updated by Anchor Manager