Cesium for Unreal 2.12.0
Loading...
Searching...
No Matches
CesiumMetadataPickingBlueprintLibrary.h
Go to the documentation of this file.
1// Copyright 2020-2024 CesiumGS, Inc. and Contributors
2
3#pragma once
4
6#include "Containers/UnrealString.h"
7#include "Kismet/BlueprintFunctionLibrary.h"
8#include "UObject/ObjectMacros.h"
9#include "CesiumMetadataPickingBlueprintLibrary.generated.h"
10
11struct FHitResult;
12
13UCLASS()
15 : public UBlueprintFunctionLibrary {
16 GENERATED_BODY()
17
18public:
34 UFUNCTION(
35 BlueprintCallable,
36 BlueprintPure,
37 Category = "Cesium|Metadata|Picking")
38 static bool FindUVFromHit(
39 const FHitResult& Hit,
40 int64 GltfTexCoordSetIndex,
41 FVector2D& UV);
42
68 UFUNCTION(
69 BlueprintCallable,
70 BlueprintPure,
71 Category = "Cesium|Metadata|Picking")
72 static TMap<FString, FCesiumMetadataValue> GetPropertyTableValuesFromHit(
73 const FHitResult& Hit,
74 int64 FeatureIDSetIndex = 0);
75
99 UFUNCTION(
100 BlueprintCallable,
101 BlueprintPure,
102 Category = "Cesium|Metadata|Picking")
103 static TMap<FString, FCesiumMetadataValue> GetPropertyTextureValuesFromHit(
104 const FHitResult& Hit,
105 int64 PrimitivePropertyTextureIndex = 0);
106
107 PRAGMA_DISABLE_DEPRECATION_WARNINGS
132 UFUNCTION(
133 BlueprintCallable,
134 BlueprintPure,
135 Meta =
136 (DeprecatedFunction,
137 DeprecationMessage = "Use GetPropertyTableValuesFromHit instead."))
138 static TMap<FString, FCesiumMetadataValue> GetMetadataValuesForFace(
139 const UPrimitiveComponent* Component,
140 int64 FaceIndex,
141 int64 FeatureIDSetIndex = 0);
142
169 UFUNCTION(
170 BlueprintCallable,
171 BlueprintPure,
172 Meta =
173 (DeprecatedFunction,
174 DeprecationMessage =
175 "Use GetValuesAsStrings to convert the output of GetPropertyTableValuesFromHit instead."))
176 static TMap<FString, FString> GetMetadataValuesForFaceAsStrings(
177 const UPrimitiveComponent* Component,
178 int64 FaceIndex,
179 int64 FeatureIDSetIndex = 0);
180 PRAGMA_ENABLE_DEPRECATION_WARNINGS
181};
A Blueprint-accessible wrapper for a glTF metadata value.