UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WorldPartitionRuntimeSpatialHashGridPreviewer.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
5#include "WorldPartitionRuntimeSpatialHashGridPreviewer.generated.h"
6
8class UMaterial;
11
12USTRUCT()
14{
16
18
19#if WITH_EDITOR
20 ENGINE_API void Draw(UWorld* World, const TArray<FSpatialHashRuntimeGrid>& Grids, bool bEnabled, int32 PreviewGridLevel, bool bUseAlignedGridLevels = true);
21#endif
22
23#if WITH_EDITORONLY_DATA
24 UPROPERTY()
26
27 UPROPERTY()
29
30 UPROPERTY()
32
33 bool bIsInitialized;
34
36 {
38 : bEnabled(false)
39 , CellSize(0)
40 , LoadingRange(0.f)
41 , GridColor(0.f, 0.f, 0.f, 0.f)
42 , GridOffset(FVector::ZeroVector)
43 {}
44
45 bool bEnabled;
46 int32 CellSize;
47 float LoadingRange;
49 FVector GridOffset;
50 };
51
52 enum { MAX_PREVIEW_GRIDS = 4 };
54#endif
55};
int Volume
Definition AndroidPlatformMisc.cpp:380
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
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition PostProcessVolume.h:23
Definition Array.h:670
Definition MaterialInstanceDynamic.h:15
Definition Material.h:432
Definition World.h:918
Definition Color.h:48
Definition WorldPartitionRuntimeSpatialHash.h:233
Definition WorldPartitionRuntimeSpatialHashGridPreviewer.h:14
Definition ObjectPtr.h:488
static CORE_API const TVector< double > ZeroVector
Definition Vector.h:79