diff --git a/Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs b/Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs index ff1c4c6f9619ebca6e90b6ebea9ccadb2480aeaa..15a1ac313adfc5d10769f401f97da4988e9ab432 100644 --- a/Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs +++ b/Runtime/Scripts/WorldAnalysisARFoundationModuleARCoreAnchor.cs @@ -64,7 +64,7 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda /// <returns>map or not (does not check is solved)</returns> public bool AddTrackable(ETSI.ARF.OpenAPI.WorldStorage.Trackable trackable) { - /// Here : we don't check if the trackable is allready added, AddImageToLibrary does it + /// Here : we don't check if the trackable is allready added if (trackable.TrackableType != ETSI.ARF.OpenAPI.WorldStorage.TrackableType.MAP) { return false; @@ -102,7 +102,6 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda Vector3 position = trackedCloudAnchor.transform.position; Quaternion rotation = trackedCloudAnchor.transform.rotation; - TrackableInfo info = new TrackableInfo(); info.name = trackedCloudAnchor.name; string localId = trackedCloudAnchor.trackableId.subId1.ToString("X16");// there must be a better way : does it work every time? @@ -182,13 +181,8 @@ public class WorldAnalysisARFoundationModuleARCoreAnchor : WorldAnalysisARFounda var result = promise.Result; if (result.CloudAnchorState == CloudAnchorState.Success) { - Debug.Log("ARCloud Anchor Resolve Sucess" +cloudId); 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 } - else - { - Debug.Log("ARCloud Anchor Resolve Failed" + result.CloudAnchorState + " " +cloudId); - } } }