Navigation
API > API/Plugins > API/Plugins/MeshPartition
This is the equivalent of AMegaMeshPreviewSection but used in the final game client. Sections are built during the cook process, producing assets (StaticMesh, Collisions, MetaData), and are part of the global MegaMesh.
| Name | ACompiledSection |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartition/Public/MeshPartitionCompiledSection.h |
| Include Path | #include "MeshPartitionCompiledSection.h" |
Syntax
UCLASS (MinimalAPI)
class ACompiledSection : public AActor
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → ACompiledSection
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ACompiledSection() |
MeshPartitionCompiledSection.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsPlaceholder | bool | Indicate that this compiled section was created during PIE to be a placeholder for a missing compiled section, that needs to be built on the fly. | MeshPartitionCompiledSection.h | |
| BuildInfo | MeshPartition::FCompiledSectionBuildInfo | MeshPartitionCompiledSection.h |
|
|
| ChannelTable | TArray< uint8 > | MeshPartitionCompiledSection.h | ||
| ChannelTexcoordDesc | FVector2f | MeshPartitionCompiledSection.h | ||
| ChannelTexture | TObjectPtr< UTexture > | MeshPartitionCompiledSection.h |
|
|
| CollisionComponents | TArray< TObjectPtr< UMeshPartitionCollisionComponent > > | MeshPartitionCompiledSection.h |
|
|
| FarFieldMeshComponent | TObjectPtr< UStaticMeshComponent > | MeshPartitionCompiledSection.h |
|
|
| MaterialCacheTextures | TArray< TObjectPtr< UMaterialCacheVirtualTexture > > | All allocated material cache textures | MeshPartitionCompiledSection.h |
|
| MaterialCacheTileCount | FIntPoint | MeshPartitionCompiledSection.h | ||
| MaterialInstance | TObjectPtr< UMaterialInstanceConstant > | MeshPartitionCompiledSection.h | ||
| MeshComponents | TArray< TObjectPtr< UMeshPartitionStaticMeshComponent > > | MeshPartitionCompiledSection.h |
|
|
| Parent | TSoftObjectPtr< AMeshPartition > | MeshPartitionCompiledSection.h | ||
| PlaceholderStreamingBounds | FBox | MeshPartitionCompiledSection.h | ||
| VirtualTextureFallbackMeshComponents | TArray< TObjectPtr< UStaticMeshComponent > > | Fallback component for virtual texture rendering, this is a stop-gap solution, will be removed later | MeshPartitionCompiledSection.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddCollisionComponent
(
UMeshPartitionCollisionComponent* InCollisionComponent |
MeshPartitionCompiledSection.h | ||
void AddStaticMesh
(
UStaticMesh* InStaticMesh, |
MeshPartitionCompiledSection.h | ||
const MeshPartition::FCompiledSectionBuildInfo & GetBuildInfo() |
Get/Set the Build info, describing the build and settings that produced this compiled section | MeshPartitionCompiledSection.h | |
const TArray< uint8 > & GetChannelTable() |
MeshPartitionCompiledSection.h | ||
UTexture * GetChannelTexture() |
MeshPartitionCompiledSection.h | ||
const TArray< TObjectPtr< UMeshPartitionCollisionComponent > > & GetCollisionComponents () |
MeshPartitionCompiledSection.h | ||
| MeshPartitionCompiledSection.h | |||
UStaticMesh * GetFarFieldMesh() |
MeshPartitionCompiledSection.h | ||
UMaterialInstanceConstant * GetMaterialInstance() |
MeshPartitionCompiledSection.h | ||
| MeshPartitionCompiledSection.h | |||
const TArray< TObjectPtr< UMeshPartitionStaticMeshComponent > > & GetMeshComponents () |
MeshPartitionCompiledSection.h | ||
AMeshPartition * GetParentMegaMesh() |
MeshPartitionCompiledSection.h | ||
TArray< TObjectPtr< UStaticMesh > > GetStaticMeshes() |
MeshPartitionCompiledSection.h | ||
bool IsPlaceholder() |
MeshPartitionCompiledSection.h | ||
void RecreateMaterialCacheTextures() |
MeshPartitionCompiledSection.h | ||
void SetBuildInfo
(
const MeshPartition::FCompiledSectionBuildInfo& InBuildInfo |
MeshPartitionCompiledSection.h | ||
void SetChannelData
(
TConstArrayView< uint8 > InChannelTable, |
MeshPartitionCompiledSection.h | ||
void SetChannelTexture
(
UTexture* InChannelTexture |
MeshPartitionCompiledSection.h | ||
void SetFarFieldMesh
(
UStaticMesh* InStaticMesh |
MeshPartitionCompiledSection.h | ||
void SetIsPlaceholder
(
bool bInIsPlaceholder |
MeshPartitionCompiledSection.h | ||
void SetMaterialCacheTileCount
(
const FIntPoint& TileCount |
MeshPartitionCompiledSection.h | ||
void SetMaterialInstance
(
UMaterialInstanceConstant* InMaterialInstance |
MeshPartitionCompiledSection.h | ||
void SetParent
(
const AMeshPartition* InMegaMesh |
MeshPartitionCompiledSection.h | ||
void SetPlaceholderStreamingBounds
(
const FBox& Bounds |
MeshPartitionCompiledSection.h | ||
void SetRuntimeVirtualTextures
(
const TArray< TObjectPtr< URuntimeVirtualTexture > >& InRVTs |
MeshPartitionCompiledSection.h | ||
void SetupChannelDataOnChildPrimitiveComponents() |
MeshPartitionCompiledSection.h | ||
bool ShouldBeLoadedForPlatform
(
const ITargetPlatform* TargetPlatform |
MeshPartitionCompiledSection.h | ||
void UpdateVirtualTextureSettings() |
MeshPartitionCompiledSection.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TUniquePtr< FWorldPartitionActorDesc > CreateClassActorDesc() |
MeshPartitionCompiledSection.h | ||
virtual void GetActorDescProperties
(
FPropertyPairsMap& PropertyPairsMap |
MeshPartitionCompiledSection.h | ||
virtual TArray< UActorComponent * > GetHLODRelevantComponents() |
MeshPartitionCompiledSection.h | ||
virtual void GetStreamingBounds
(
FBox& OutRuntimeBounds, |
MeshPartitionCompiledSection.h | ||
virtual bool IsRuntimeOnly() |
MeshPartitionCompiledSection.h | ||
virtual bool NeedsLoadForTargetPlatform
(
const ITargetPlatform* TargetPlatform |
MeshPartitionCompiledSection.h | ||
virtual void PostRegisterAllComponents() |
MeshPartitionCompiledSection.h | ||
virtual void PostUnregisterAllComponents() |
MeshPartitionCompiledSection.h | ||
virtual void PreRegisterAllComponents() |
AActor Implementation. | MeshPartitionCompiledSection.h | |
virtual void Serialize
(
FArchive& Ar |
UObject Implementation. | MeshPartitionCompiledSection.h |