Stay organized with collections
Save and categorize content based on your preferences.
ResolveAnchorOnTerrainPromise
An InterruptiblePromise
launched by ARAnchorManagerExtensions.ResolveAnchorOnTerrainAsync(this ARAnchorManager,
double, double, double, UnityEngine.Quaternion)
with result type ResolveAnchorOnTerrainResult
.
See InterruptiblePromise
for more information on how to retrieve results from the Promise, and the Terrain anchors developer guide.
Summary
Inheritance
Inherits from:
InterruptiblePromise< ResolveAnchorOnTerrainResult >
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-14 UTC.
[null,null,["Last updated 2025-07-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eResolveAnchorOnTerrainPromise\u003c/code\u003e is an interruptible promise initiated by \u003ccode\u003eARAnchorManagerExtensions.ResolveAnchorOnTerrainAsync\u003c/code\u003e to resolve anchors on terrain.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the result of the terrain anchor resolution via the \u003ccode\u003eResult\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eState\u003c/code\u003e property indicates the current status of the promise (pending, success, or failure).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCancel()\u003c/code\u003e function allows you to halt the anchor resolution process if it's still ongoing.\u003c/p\u003e\n"]]],["`ResolveAnchorOnTerrainPromise` is an `InterruptiblePromise` initiated by `ARAnchorManagerExtensions.ResolveAnchorOnTerrainAsync`. It provides a `ResolveAnchorOnTerrainResult`. Key actions include retrieving the `Result` and the `PromiseState`. The `Cancel()` function allows for canceling the promise's execution if it's still pending. The state indicates if the promise is waiting for results, and the result can be accessed once the operation is complete.\n"],null,["# ResolveAnchorOnTerrainPromise Class Reference\n\nResolveAnchorOnTerrainPromise\n=============================\n\nAn [InterruptiblePromise](/ar/reference/unity-arf/other) launched by [ARAnchorManagerExtensions.ResolveAnchorOnTerrainAsync(this ARAnchorManager,\ndouble, double, double, UnityEngine.Quaternion)](/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/ARAnchorManagerExtensions#resolveanchoronterrainasync) with result type [ResolveAnchorOnTerrainResult](/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/ResolveAnchorOnTerrainResult#classGoogle_1_1XR_1_1ARCoreExtensions_1_1ResolveAnchorOnTerrainResult).\n\nSee [InterruptiblePromise](/ar/reference/unity-arf/other) for more information on how to retrieve results from the Promise, and the [Terrain anchors developer guide](https://developers.google.com/ar/develop/geospatial/unity-arf/anchors#terrain-anchors).\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `InterruptiblePromise\u003c ResolveAnchorOnTerrainResult \u003e`"]]