UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ARTraceResult.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "ARTypes.h"
6#include "ARTraceResult.generated.h"
7
8#define UE_API AUGMENTEDREALITY_API
9
11
15USTRUCT( BlueprintType, Category="AR AugmentedReality", meta=(Experimental))
17{
19
21
23
24 UE_API float GetDistanceFromCamera() const;
25
26 UE_API void SetLocalToWorldTransform(const FTransform& LocalToWorldTransform);
27
28 UE_API FTransform GetLocalToTrackingTransform() const;
29
30 UE_API FTransform GetLocalToWorldTransform() const;
31
32 UE_API FTransform GetLocalTransform() const;
33
34 UE_API UARTrackedGeometry* GetTrackedGeometry() const;
35
36 UE_API EARLineTraceChannels GetTraceChannel() const;
37
39 {
40 inline bool operator()(const FARTraceResult& A, const FARTraceResult& B) const
41 {
42 return A.GetDistanceFromCamera() < B.GetDistanceFromCamera();
43 }
44 };
45
46private:
47
49 UPROPERTY()
50 float DistanceFromCamera;
51
53 UPROPERTY()
54 EARLineTraceChannels TraceChannel;
55
60 UPROPERTY()
61 FTransform LocalTransform;
62
66 UPROPERTY()
67 TObjectPtr<UARTrackedGeometry> TrackedGeometry;
68
71};
72
73UCLASS()
78
79#undef UE_API
#define UE_API
Definition ARTraceResult.h:8
EARLineTraceChannels
Definition ARTypes.h:70
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
#define USTRUCT(...)
Definition ObjectMacros.h:746
ESPMode
Definition SharedPointerFwd.h:12
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
Definition ARSupportInterface.h:29
Definition SharedPointer.h:692
Definition ARTraceResult.h:75
Definition ARTrackable.h:17
Definition Object.h:95
Definition RobinHoodHashTable.h:18
Definition ARTraceResult.h:39
bool operator()(const FARTraceResult &A, const FARTraceResult &B) const
Definition ARTraceResult.h:40
Definition ARTraceResult.h:17
Definition ObjectPtr.h:488