VRTowerDef/Plugins/MetaXR/Source/OculusXRAnchors/Private/OculusXRSpatialAnchorManage...

14 lines
494 B
C++
Raw Permalink Normal View History

2024-05-29 08:53:41 +00:00
// Copyright (c) Meta Platforms, Inc. and affiliates.
#include "OculusXRSpatialAnchorManager.h"
#include "OculusXRAnchorBPFunctionLibrary.h"
namespace OculusXRAnchors
{
bool FOculusXRSpatialAnchorManager::CreateSpatialAnchor(const FTransform& InTransform, uint64& OutRequestId)
{
EOculusXRAnchorResult::Type Result = CreateAnchor(InTransform, OutRequestId, FTransform::Identity);
return UOculusXRAnchorBPFunctionLibrary::IsAnchorResultSuccess(Result);
}
} // namespace OculusXRAnchors