UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SparseVolumeTextureViewerComponent.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8#include "EngineDefines.h"
10
12
13#include "SparseVolumeTextureViewerComponent.generated.h"
14
15
17
18UENUM(BlueprintType)
20{
21 ESVTPA_AttributesA_R UMETA(DisplayName = "AttributesA Red"),
22 ESVTPA_AttributesA_G UMETA(DisplayName = "AttributesA Green"),
23 ESVTPA_AttributesA_B UMETA(DisplayName = "AttributesA Blue"),
24 ESVTPA_AttributesA_A UMETA(DisplayName = "AttributesA Alpha"),
25 ESVTPA_AttributesB_R UMETA(DisplayName = "AttributesB Red"),
26 ESVTPA_AttributesB_G UMETA(DisplayName = "AttributesB Green"),
27 ESVTPA_AttributesB_B UMETA(DisplayName = "AttributesB Blue"),
28 ESVTPA_AttributesB_A UMETA(DisplayName = "AttributesB Alpha"),
29};
30
34UCLASS(ClassGroup = Rendering, collapsecategories, hidecategories = (Object, Mobility, Activation, "Components|Activation"), editinlinenew, meta = (BlueprintSpawnableComponent), MinimalAPI)
35class USparseVolumeTextureViewerComponent : public UPrimitiveComponent
36{
38
40
43
44 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Animation, meta = (EditCondition = "bPlaying == false"))
45 float Frame;
46
48 float FrameRate = 24.0f;
49
51 uint32 bPlaying : 1;
52
54 uint32 bLooping : 1;
55
57 uint32 bReversePlayback : 1;
58
60 uint32 bBlockingStreamingRequests : 1;
61
64
66 uint32 bPivotAtCentroid : 1;
67
69 float VoxelSize = 1.0f;
70
73
74 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Asset Preview", meta = (UIMin = 0, UIMax = 11, ClampMin = 0, ClampMax = 11))
75 int32 MipLevel;
76
77 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Asset Preview", meta = (UIMin = 0.0, UIMax = 1.0, ClampMin = 0))
78 float Extinction = 0.025f;
79
81
82 //~ Begin UPrimitiveComponent Interface.
83 virtual bool SupportsStaticLighting() const override { return false; }
84 //~ End UPrimitiveComponent Interface.
85
86 //~ Begin USceneComponent Interface.
87 virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld) const override;
88 //~ End USceneComponent Interface.
89
90
91 //~ Begin UActorComponent Interface.
92 virtual void CreateRenderState_Concurrent(FRegisterComponentContext* Context) override;
93 virtual void DestroyRenderState_Concurrent() override;
94 virtual void SendRenderTransform_Concurrent() override;
95 virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
96 //~ End UActorComponent Interface.
97
98protected:
99
100public:
101
102 //~ Begin UObject Interface.
103 virtual void Serialize(FArchive& Ar) override;
104#if WITH_EDITOR
105 virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
106#endif // WITH_EDITOR
107 //~ End UObject Interface
108
109 //~ Begin UActorComponent Interface.
110#if WITH_EDITOR
111 virtual void CheckForErrors() override;
112#endif // WITH_EDITOR
113 //~ End UActorComponent Interface.
114
115private:
117
119};
120
121
125UCLASS(showcategories = (Movement, Rendering, Transformation, DataLayers, "Input|MouseInput", "Input|TouchInput"), ClassGroup = Fog, hidecategories = (Info, Object, Input), MinimalAPI)
126class ASparseVolumeTextureViewer : public AInfo
127{
129
130private:
131
132 UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = Atmosphere, meta = (AllowPrivateAccess = "true"))
134
135#if WITH_EDITOR
136 virtual bool ActorTypeSupportsDataLayer() const override { return true; }
137#endif
138
139};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ELevelTick
Definition EngineBaseTypes.h:70
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
ESparseVolumeTexturePreviewAttribute
Definition SparseVolumeTextureViewerComponent.h:20
@ UMETA
Definition SparseVolumeTextureViewerComponent.h:21
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Archive.h:1208
Definition ActorComponent.h:47
Definition SparseVolumeTextureViewerSceneProxy.h:22
Definition EnumAsByte.h:22
Category
Definition DiffResults.h:63
ENGINE_API FBox CalcBounds(const FVector &P0, const FVector &P1, const FVector &P2, const FVector &P3)
Definition BezierUtilities.cpp:26
@ ClampMin
[PropertyMetadata] Used for float and integer properties. Specifies the minimum value that may be ent...
Definition ObjectMacros.h:1324
@ UIMax
[PropertyMetadata] Used for float and integer properties. Specifies the highest that the value slider...
Definition ObjectMacros.h:1500
@ EditCondition
[PropertyMetadata] Specifies a boolean property that is used to indicate whether editing of this prop...
Definition ObjectMacros.h:1367
@ ClampMax
[PropertyMetadata] Used for float and integer properties. Specifies the maximum value that may be ent...
Definition ObjectMacros.h:1327
@ UIMin
[PropertyMetadata] Used for float and integer properties. Specifies the lowest that the value slider ...
Definition ObjectMacros.h:1497
@ BlueprintReadOnly
This property can be read by blueprints, but not modified.
Definition ObjectMacros.h:1134
@ BlueprintReadWrite
This property can be read or written from a blueprint.
Definition ObjectMacros.h:1140
@ EditAnywhere
Indicates that this property can be edited by property windows in the editor.
Definition ObjectMacros.h:1116
Definition EngineBaseTypes.h:571
Definition UnrealType.h:6865
Definition ObjectPtr.h:488
Definition BoxSphereBounds.h:25