WVR_ClearCachedSpatialAnchors

WVR_EXPORT WVR_Result WVR_ClearCachedSpatialAnchors()

Function is used to clear all cached anchors.

Developers use this API to clear all cached anchors on runtime.

Version
API Level 14
Return Value
  • WVR_Success: Clear all cached anchors successfully.
  • others: WVR_Result mean failure.

How to use

Sample function:

#include <wvr/wvr_scene.h>
#include <wvr/wvr_anchor.h>

if (WVR_ClearCachedSpatialAnchors() == WVR_Success) {
    // clear all cached anchor on runtime successfully
}