VRTowerDef/Plugins/MetaXR/Source/OculusXRScene/Private/OculusXRSceneAnchorComponen...

22 lines
562 B
C++
Raw Permalink Normal View History

2024-05-29 08:53:41 +00:00
// Copyright (c) Meta Platforms, Inc. and affiliates.
#include "OculusXRSceneAnchorComponent.h"
#include "Engine/StaticMeshActor.h"
UOculusXRSceneAnchorComponent::UOculusXRSceneAnchorComponent(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
bUpdateHeadSpaceTransform = false;
}
void UOculusXRSceneAnchorComponent::TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
if (GetHandle().Value == 0)
{
return;
}
}