Navigation
API > API/Plugins > API/Plugins/MeshPartitionEditor
This is a transient actor, expressing a “compiled” part of a MegaMesh. This means a region of the MegaMesh where all processing has been performed to produce the final result. It only exists in the editor.
| Name | APreviewSection |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartitionEditor/Public/MeshPartitionPreviewSection.h |
| Include Path | #include "MeshPartitionPreviewSection.h" |
Syntax
UCLASS (MinimalAPI, Transient)
class APreviewSection : public AActor
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → APreviewSection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
APreviewSection() |
MeshPartitionPreviewSection.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BaseModifiers | TArray< TWeakObjectPtr< MeshPartition::UModifierComponent > > | MeshPartitionPreviewSection.h |
|
|
| bIsTransformerPipelinePaused | bool | MeshPartitionPreviewSection.h |
|
|
| BuildPerfStats | MeshPartition::FBuildPerfStats | MeshPartitionPreviewSection.h |
|
|
| ChannelTable | TArray< uint8 > | MeshPartitionPreviewSection.h | ||
| ChannelTexcoordDesc | FVector2f | MeshPartitionPreviewSection.h | ||
| ChannelTexture | TObjectPtr< UTexture > | MeshPartitionPreviewSection.h |
|
|
| CollisionComponents | TArray< TObjectPtr< UMeshPartitionCollisionComponent > > | MeshPartitionPreviewSection.h | ||
| FarFieldMeshComponent | TObjectPtr< UStaticMeshComponent > | #todo: it would be better for the component to be visible so it shows up in the details panel. | MeshPartitionPreviewSection.h | |
| GroupRegistryKey | FGuid | MeshPartitionPreviewSection.h | ||
| MaterialCacheTextures | TArray< TObjectPtr< UMaterialCacheVirtualTexture > > | All allocated material cache textures | MeshPartitionPreviewSection.h |
|
| MaterialCacheTileCount | FIntPoint | MeshPartitionPreviewSection.h | ||
| MaterialInstance | TObjectPtr< UMaterialInstanceDynamic > | MeshPartitionPreviewSection.h |
|
|
| MeshComponents | TArray< TObjectPtr< UStaticMeshComponent > > | MeshPartitionPreviewSection.h | ||
| Modifiers | TArray< TWeakObjectPtr< MeshPartition::UModifierComponent > > | MeshPartitionPreviewSection.h |
|
|
| Parent | TSoftObjectPtr< AMeshPartition > | MeshPartitionPreviewSection.h | ||
| PreviewMeshBounds | FBox | Cached preview mesh bounds. | MeshPartitionPreviewSection.h | |
| PreviewMeshComponent | TObjectPtr< UPreviewMeshComponent > | MeshPartitionPreviewSection.h |
|
|
| SectionChannelMesh | FSectionChannelGenerationMeshData | MeshPartitionPreviewSection.h | ||
| VirtualTextureFallbackMeshComponents | TArray< TObjectPtr< UStaticMeshComponent > > | Fallback components for virtual texture rendering, this is a stop-gap solution, will be removed later | MeshPartitionPreviewSection.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddBaseModifier
(
const TWeakObjectPtr< MeshPartition::UModifierComponent >& InBaseModifier |
MeshPartitionPreviewSection.h | ||
void AddCollisionComponent
(
UMeshPartitionCollisionComponent* InCollisionComponent |
MeshPartitionPreviewSection.h | ||
void AddMesh
(
UStaticMesh* InStaticMesh, |
MeshPartitionPreviewSection.h | ||
void AddModifier
(
const TWeakObjectPtr< MeshPartition::UModifierComponent >& InModifier |
MeshPartitionPreviewSection.h | ||
void ForAllPrimitiveComponents
(
TFunctionRef< bool(UPrimitiveComponent*)> InFunc |
MeshPartitionPreviewSection.h | ||
const TArray< TWeakObjectPtr< MeshPartition::UModifierComponent > > & GetBaseModifiers() |
MeshPartitionPreviewSection.h | ||
const MeshPartition::FBuildPerfStats & GetBuildPerfStats() |
MeshPartitionPreviewSection.h | ||
const MeshPartition::FSectionChannelGenerationMeshData & GetChannelGenerationMesh() |
MeshPartitionPreviewSection.h | ||
const TArray< uint8 > & GetChannelTable() |
MeshPartitionPreviewSection.h | ||
UTexture * GetChannelTexture() |
MeshPartitionPreviewSection.h | ||
FGuid GetGroupRegistryKey() |
MeshPartitionPreviewSection.h | ||
UMaterialInstanceDynamic * GetMaterialInstance() |
MeshPartitionPreviewSection.h | ||
UMeshPartitionEditorComponent * GetMegaMeshEditorComponent() |
MeshPartitionPreviewSection.h | ||
const TArray< TObjectPtr< UStaticMeshComponent > > & GetMeshComponents() |
MeshPartitionPreviewSection.h | ||
TArray< TObjectPtr< UStaticMesh > > GetMeshes() |
MeshPartitionPreviewSection.h | ||
const TArray< TWeakObjectPtr< MeshPartition::UModifierComponent > > & GetModifiers() |
MeshPartitionPreviewSection.h | ||
AMeshPartition * GetParent() |
MeshPartitionPreviewSection.h | ||
TSharedPtr< const MeshPartition::FMeshData > GetPreviewMesh() |
MeshPartitionPreviewSection.h | ||
FBox GetPreviewMeshBounds() |
MeshPartitionPreviewSection.h | ||
UPreviewMeshComponent * GetPreviewMeshComponent() |
MeshPartitionPreviewSection.h | ||
bool IsTransformerPipelinedPaused() |
MeshPartitionPreviewSection.h | ||
void OnMeshPartitionDefinitionChanged
(
const UMeshPartitionDefinition* InDefinition |
MeshPartitionPreviewSection.h | ||
void OnMeshPartitionDefinitionModified
(
const UMeshPartitionDefinition* InDefinition, |
MeshPartitionPreviewSection.h | ||
void RecreateMaterialCacheTextures() |
MeshPartitionPreviewSection.h | ||
void RemoveBaseModifier
(
const TWeakObjectPtr< MeshPartition::UModifierComponent >& InBaseModifier |
MeshPartitionPreviewSection.h | ||
void SetBuildPerfStats
(
MeshPartition::FBuildPerfStats&& InBuildPerfStats |
MeshPartitionPreviewSection.h | ||
void SetChannelData
(
TConstArrayView< uint8 > InChannelTable, |
MeshPartitionPreviewSection.h | ||
void SetChannelGenerationMesh
(
const MeshPartition::FSectionChannelGenerationMeshData& InSection |
MeshPartitionPreviewSection.h | ||
void SetChannelTexture
(
UTexture* InChannelTexture |
MeshPartitionPreviewSection.h | ||
void SetFarFieldMesh
(
UStaticMesh* InStaticMesh |
MeshPartitionPreviewSection.h | ||
void SetGroupRegistryKey
(
const FGuid& InKey |
MeshPartitionPreviewSection.h | ||
void SetIsTransformerPipelinePaused
(
const bool bInIsPaused |
MeshPartitionPreviewSection.h | ||
void SetMaterialCacheTileCount
(
const FIntPoint& TileCount |
MeshPartitionPreviewSection.h | ||
void SetMaterialInstance
(
UMaterialInstanceDynamic* InMaterialInstance |
MeshPartitionPreviewSection.h | ||
void SetParent
(
AMeshPartition* InMegaMesh |
MeshPartitionPreviewSection.h | ||
void SetPreviewMesh
(
TSharedRef< const MeshPartition::FMeshData > InMeshData, |
MeshPartitionPreviewSection.h | ||
void SetRuntimeVirtualTextures
(
const TArray< TObjectPtr< URuntimeVirtualTexture > >& InRVTs |
MeshPartitionPreviewSection.h |
Public Virtual
Overridden from AActor
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostRegisterAllComponents() |
AActor Implementation. | MeshPartitionPreviewSection.h | |
virtual void PostUnregisterAllComponents() |
MeshPartitionPreviewSection.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
UObject Implementation. | MeshPartitionPreviewSection.h |