Success | The operation succeeded. |
Failure | The operation failed in an unexpected way. |
FailureInvalidAnchor | At least one anchor is invalid. |
FailureDataIsInvalid | |
FailureInsufficientResources | Resource limitation prevented this operation from executing. |
FailureStorageAtCapacity | The amount of device storage available for anchor data is insufficient for the requested save operation. |
FailureInsufficientView | Device's view of the physical space is insufficient. |
FailurePermissionInsufficient | User has not granted all the required permissions for the app to use this API. |
FailureRateLimited | Operation canceled due to rate limiting. |
FailureTooDark | The environment is too dark to save the anchor. |
FailureTooBright | The environment is too bright to save the anchor. |
FailureUnsupported | Save is not supported on this version or platform. |
FailurePersistenceNotEnabled | One or more anchors do not have the OVRStorable component enabled, causing the save operation to fail. |
Success | The operation succeeded. |
Failure | The operation failed in an unexpected way. |
FailureInvalidAnchor | At least one anchor is invalid. |
FailureDataIsInvalid | |
FailureInsufficientResources | Resource limitation prevented this operation from executing. |
FailurePermissionInsufficient | User has not granted all the required permissions for the app to use this API. |
FailureRateLimited | Operation canceled due to rate limiting. |
FailureUnsupported | Erase is not supported on this version or platform. |
FailurePersistenceNotEnabled | One or more anchors do not have the OVRStorable component enabled, causing the erase operation to fail. |
Success | The operation succeeded. |
Failure | The operation failed in an unexpected way. |
FailureDataIsInvalid | |
FailureInvalidOption | One of the FetchOptions was invalid. |
FailureInsufficientResources | Resource limitation prevented this operation from executing. |
FailureInsufficientView | Device's view of the physical space is insufficient. |
FailurePermissionInsufficient | User has not granted all the required permissions for the app to use this API. |
FailureRateLimited | Operation canceled due to rate limiting. |
FailureTooDark | The environment is too dark to load anchors. |
FailureTooBright | The environment is too bright to load anchors. |
FailureUnsupported | Fetch is not supported in this version or on this platform. |
Success | The operation succeeded. |
Failure | The operation failed in an unexpected way. |
FailureOperationFailed | The operation failed for unspecified reasons. |
FailureInvalidParameter | API call was given an invalid parameter. |
FailureHandleInvalid | One or more invalid handles were provided to the API. |
FailureDataIsInvalid | |
FailureNetworkTimeout | A network timeout occurred. |
FailureNetworkRequestFailed | Network request failed. |
FailureMappingInsufficient | The device has not built a sufficient map of the environment to save the anchor(s). |
FailureLocalizationFailed | The device was not able to localize the anchor(s) being shared. |
FailureSharableComponentNotEnabled | Sharable component not enabled on the anchor(s) being shared. |
FailureCloudStorageDisabled | Sharing failed because device has not enabled the "Share Point Cloud Data" setting. |
FailurePermissionInsufficient | User has not granted all the required permissions for the app to use this API. |
FailureUnsupported | Anchor Sharing is not supported with this version or on this platform. |
None | The anchor is not a trackable. |
Keyboard | The anchor is a tracked keyboard. |
async void CreateAnchor(Pose pose) {
var anchor = await OVRAnchor.CreateSpatialAnchorAsync(pose);
if (anchor == OVRAnchor.Null) {
Debug.LogError("Anchor creation failed!");
} else {
// anchor is valid
}
}