Navigation
API > API/Runtime > API/Runtime/Engine
Physical material masks are used to map multiple physical materials to a single rendering material
| Name | UPhysicalMaterialMask |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/PhysicalMaterials/PhysicalMaterialMask.h |
| Include Path | #include "PhysicalMaterials/PhysicalMaterialMask.h" |
Syntax
UCLASS (BlueprintType, Blueprintable, CollapseCategories, HideCategories=Object, MinimalAPI)
class UPhysicalMaterialMask : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPhysicalMaterialMask
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UPhysicalMaterialMask
(
const FObjectInitializer& ObjectInitializer |
PhysicalMaterials/PhysicalMaterialMask.h | ||
UPhysicalMaterialMask
(
FVTableHelper& Helper |
PhysicalMaterials/PhysicalMaterialMask.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UPhysicalMaterialMask() |
PhysicalMaterials/PhysicalMaterialMask.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| INVALID_MASK_INDEX | uint32 | PhysicalMaterials/PhysicalMaterialMask.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AddressX | TEnumAsByte< enum TextureAddress > | The addressing mode to use for the X axis. | PhysicalMaterials/PhysicalMaterialMask.h |
|
| AddressY | TEnumAsByte< enum TextureAddress > | The addressing mode to use for the Y axis. | PhysicalMaterials/PhysicalMaterialMask.h |
|
| AssetImportData | TObjectPtr< class UAssetImportData > | Object properties. | PhysicalMaterials/PhysicalMaterialMask.h |
|
| MaskTexture | TObjectPtr< UTexture > | Mask input texture, square aspect ratio recommended. | PhysicalMaterials/PhysicalMaterialMask.h |
|
| MaterialMaskHandle | TUniquePtr< FPhysicsMaterialMaskHandle > | PhysicalMaterials/PhysicalMaterialMask.h | ||
| UVChannelIndex | int32 | StaticMesh UV channel index to use when performing lookups with this mask. | PhysicalMaterials/PhysicalMaterialMask.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DumpMaskData() |
Dump mask data to log display. | PhysicalMaterials/PhysicalMaterialMask.h | |
void GenerateMaskData
(
TArray< uint32 >& OutMaskData, |
Helper method to generate mask data used at runtime based on mask texture. | PhysicalMaterials/PhysicalMaterialMask.h | |
FPhysicsMaterialMaskHandle & GetPhysicsMaterialMask() |
Get the physics-interface derived version of this material | PhysicalMaterials/PhysicalMaterialMask.h | |
| Helper method to set mask texture. | PhysicalMaterials/PhysicalMaterialMask.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void FinishDestroy() |
PhysicalMaterials/PhysicalMaterialMask.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
PhysicalMaterials/PhysicalMaterialMask.h | ||
virtual void PostInitProperties() |
PhysicalMaterials/PhysicalMaterialMask.h | ||
virtual void PostLoad() |
PhysicalMaterials/PhysicalMaterialMask.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint32 GetPhysMatIndex
(
const TArray< uint32 >& MaskData, |
Helper method to query phys mat index at a given UV position in mask data. | PhysicalMaterials/PhysicalMaterialMask.h |