Navigation
API > API/Plugins > API/Plugins/MeshPartition
Asset holding shared properties and settings for all components in a MegaMesh.
MegaMeshClassVersion is used to track changes in the behavior of this class with respect to building sections. It is used, along with GatherDependencies, when determining whether existing sections are up to date, or need to be rebuilt.
It should be bumped whenever code behavior changes in a way that affects how existing sections would be built. NOTE: Changing the MegaMeshClassVersion here invalidates ALL compiled sections (they all use this class).
| Name | UMeshPartitionDefinition |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartition/Public/MeshPartitionDefinition.h |
| Include Path | #include "MeshPartitionDefinition.h" |
Syntax
UCLASS (MinimalAPI, Meta=(MegaMeshClassVersion="1"))
class UMeshPartitionDefinition :
public UDataAsset,
public IMaterialEnumerationProvider
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UDataAsset → UMeshPartitionDefinition
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMeshPartitionDefinition() |
MeshPartitionDefinition.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UMeshPartitionDefinition() |
MeshPartitionDefinition.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnDefinitionModified | TMulticastDelegate_TwoParams< void, const FName &, const FName & > | MeshPartitionDefinition.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ChannelMap | MeshPartition::FChannelMap | MeshPartitionDefinition.h |
|
|
| ChannelTexelSize | float | Channel Texel Size controls the resolution of rasterization of the textures capturing the channel signal. | MeshPartitionDefinition.h |
|
| ChannelUVLayoutMethod | EChannelCollectionUVLayoutMethod | Algorithm used to unwrap section UVs when rasterizing channel textures. | MeshPartitionDefinition.h |
|
| CompiledSectionBuildVariants | TArray< MeshPartition::FCompiledSectionBuildVariant > | MeshPartitionDefinition.h |
|
|
| DefaultPhysicalMaterial | TObjectPtr< UPhysicalMaterial > | MeshPartitionDefinition.h |
|
|
| Material | TObjectPtr< UMaterialInterface > | MeshPartitionDefinition.h |
|
|
| MaterialCacheTexelSize | float | MeshPartitionDefinition.h |
|
|
| meta | Target sample count per square meter of section surface area. | MeshPartitionDefinition.h |
|
|
| ModifierTypePriorities | TArray< FName > | MeshPartitionDefinition.h |
|
|
| OnDefinitionModified | FOnDefinitionModified | MeshPartitionDefinition.h | ||
| PerPlatformRuntimeSettings | MeshPartition::FPerPlatformRuntimeSettings | MeshPartitionDefinition.h |
|
|
| PhysicalMaterialChannels | TArray< FPhysicalMaterialChannel > | MeshPartitionDefinition.h |
|
|
| PreviewSectionBuildVariant | MeshPartition::FCommonBuildVariant | MeshPartitionDefinition.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GatherDependencies
(
MeshPartition::IDependencyInterface& InDependencies, |
Return a hash of all the settings that affect the compiled section results - FILTERED to only those used by the BuildVariant | MeshPartitionDefinition.h | |
| MeshPartitionDefinition.h | |||
| MeshPartitionDefinition.h | |||
const MeshPartition::FChannelMap & GetChannelMap () |
MeshPartitionDefinition.h | ||
| MeshPartitionDefinition.h |
|
||
FVector GetChannelPlaneProjectionFixedNormal() |
MeshPartitionDefinition.h | ||
EPlaneProjectionNormalSource GetChannelPlaneProjectionNormalSource() |
MeshPartitionDefinition.h | ||
float GetChannelTexelSize() |
MeshPartitionDefinition.h | ||
EChannelCollectionUVLayoutMethod GetChannelUVLayoutMethod() |
MeshPartitionDefinition.h | ||
float GetChannelVEUVSamplesPerSquareMeter() |
MeshPartitionDefinition.h | ||
FIntVector GetChannelVEUVVoxelCount() |
MeshPartitionDefinition.h | ||
const MeshPartition::FCompiledSectionBuildVariant & GetCompiledSectionBuildVariantByName
(
const FName& BuildVariantName |
MeshPartitionDefinition.h | ||
| Get the set of build variants to use in PIE for the specified preview platform. If no preview platform is specified, returns the build variant for the current platform. | MeshPartitionDefinition.h | ||
TArray< FName > GetCompiledSectionBuildVariantNamesForPlatform
(
const ITargetPlatform* TargetPlatform |
MeshPartitionDefinition.h | ||
TArray< FName > GetCompiledSectionBuildVariantNamesForPlatform
(
const FName& InPlatformName, |
Note that the platform name includes build type like "WindowsClient", while the IniPlatformName is just the platform "Windows". It looks for PlatformName match first, then if not found it looks for IniPlatformName. | MeshPartitionDefinition.h | |
| Get the set of build variants needed for the specified target platforms. | MeshPartitionDefinition.h | ||
TConstArrayView< MeshPartition::FCompiledSectionBuildVariant > GetCompiledSectionBuildVariants() |
MeshPartitionDefinition.h | ||
UPhysicalMaterial * GetDefaultPhysicalMaterial() |
MeshPartitionDefinition.h | ||
UMaterialInterface * GetMaterial() |
MeshPartitionDefinition.h | ||
float GetMaterialCacheTexelSize() |
MeshPartitionDefinition.h | ||
| MeshPartitionDefinition.h |
|
||
FOnDefinitionModified & GetOnDefinitionModified() |
MeshPartitionDefinition.h | ||
const TArray< FPhysicalMaterialChannel > & GetPhysicalMaterialChannels() |
MeshPartitionDefinition.h | ||
const MeshPartition::FCommonBuildVariant & GetPreviewSectionBuildVariant() |
MeshPartitionDefinition.h | ||
void SetPreviewSectionBuildVariant
(
const MeshPartition::FCommonBuildVariant& InNewPreviewBuildVairant |
MeshPartitionDefinition.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ForEachEntry
(
TFunctionRef< void(FName Name, int32Value)> Iterator |
MeshPartitionDefinition.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& InPropertyChangedEvent |
MeshPartitionDefinition.h | ||
virtual void PostLoad() |
MeshPartitionDefinition.h | ||
virtual bool ResolveValue
(
FName EntryName, |
MeshPartitionDefinition.h | ||
virtual void Serialize
(
FArchive& Ar |
UObject Implementation. | MeshPartitionDefinition.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MeshPartitionDefinition.h | |||
static const UMeshPartitionDefinition * GetDefaultMegaMeshDefinition() |
MeshPartitionDefinition.h | ||
static bool IsMaterialPropertyName
(
const FName& InName |
MeshPartitionDefinition.h |