Navigation
API > API/Plugins > API/Plugins/MeshPartitionEditor
A modifier that reads from a given texture and moves vertices in the megamesh in some "vertical" direction (where vertical is determined by the Z direction of this component).
| Name | UTexturePatchModifier |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartitionEditor/Public/Modifiers/MeshPartitionTexturePatchModifier.h |
| Include Path | #include "Modifiers/MeshPartitionTexturePatchModifier.h" |
Syntax
UCLASS (MinimalAPI,
prioritizeCategories=("Modifier", "HeightDisplacement", "WeightChannels", "AdaptiveTessellation"),
Meta=(BlueprintSpawnableComponent, MegaMeshClassVersion="1"))
class UTexturePatchModifier : public UE::MeshPartition::UModifierComponent
Inheritance Hierarchy
- FRenderAssetOwnerStreamingState → UPrimitiveComponent → UModifierComponent → UTexturePatchModifier
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → UModifierComponent → UTexturePatchModifier
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsBodyInstanceOwner
- IPhysicsBodyInstanceOwnerResolver
- IPhysicsComponent
- IModifierBlueprintInterface
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTexturePatchModifier() |
Modifiers/MeshPartitionTexturePatchModifier.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ETexturePatchTessellationMode GetAdaptiveTesselationMode() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
bool GetApplyComponentZScale() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
UTexturePatchHeightEntry * GetHeightChannel() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void OnInnerObjectModified
(
const FPropertyChangedEvent& InnerPropertyChangedEvent |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void SetAdaptiveTessellationMode
(
const ETexturePatchTessellationMode InTessellationMode |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void SetApplyComponentZScale
(
const bool bInApplyComponentZScale |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void SetHeightChannel
(
UTexturePatchHeightEntry* InHeightEntry |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void TriggerUpdate() |
Modifiers/MeshPartitionTexturePatchModifier.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FVector2D GetUnscaledCoverage () |
Gives size in unscaled world coordinates (ie before applying patch transform) of the patch as measured between the centers of the outermost pixels. | Modifiers/MeshPartitionTexturePatchModifier.h |
|
virtual void SetUnscaledCoverage
(
const FVector2D Coverage |
Set the patch coverage (see GetUnscaledCoverage for description). | Modifiers/MeshPartitionTexturePatchModifier.h |
|
Overridden from UModifierComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TArray< FBox > ComputeBounds () |
Computes the set of bounding boxes describing the regions this modifier is affecting. | Modifiers/MeshPartitionTexturePatchModifier.h | |
virtual TSharedPtr< const MeshPartition::IModifierBackgroundOp > CreateBackgroundOp
(
const MeshPartition::EBuildType InBuildType |
Called to prepare for applying the modifier. | Modifiers/MeshPartitionTexturePatchModifier.h | |
virtual void DrawVisualization
(
const FSceneView* View, |
Called by the visualizer to give the modifier an oppertunity to render a debug visualization of itself when selected. | Modifiers/MeshPartitionTexturePatchModifier.h | |
virtual Tasks::FTask GetAsyncPrepareResourcesTask() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
virtual FGuid GetCodeVersionKey() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
virtual void InitializeModifier() |
MeshPartition::UModifierComponent. | Modifiers/MeshPartitionTexturePatchModifier.h | |
virtual void UninitializeModifier() |
Called before a modifier will be unloaded and unregistered in case it need resource cleaning. | Modifiers/MeshPartitionTexturePatchModifier.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedEvent |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
virtual void PostEditUndo() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
virtual void PreEditChange
(
FEditPropertyChain& PropertyAboutToChange |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
virtual void Serialize
(
FArchive& Ar |
UObject. | Modifiers/MeshPartitionTexturePatchModifier.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool HasScalarField() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void MatchWeightAlphaBlendToHeight() |
Copy alpha blend settings from height channel to all weight layers | Modifiers/MeshPartitionTexturePatchModifier.h |
|
void MatchWeightCurveToHeight() |
Copy curve settings from height channel to all weight layers | Modifiers/MeshPartitionTexturePatchModifier.h |
|
void MatchWeightFalloffsToHeight() |
Copy falloff settings from height channel to all weight layers | Modifiers/MeshPartitionTexturePatchModifier.h |
|
void UpdateAllTextureData() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void UpdateChannelData
(
const UTexturePatchEntry* Channel |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void UpdateDisplacementMap() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void UpdateFromTexture () |
Trigger reading data from all texture asset again. | Modifiers/MeshPartitionTexturePatchModifier.h |
|
void UpdateHeightChannel() |
Modifiers/MeshPartitionTexturePatchModifier.h | ||
void UpdateWeightChannel
(
int32 Index |
Modifiers/MeshPartitionTexturePatchModifier.h |
Protected Virtual
Overridden from UModifierComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GatherDependencies
(
MeshPartition::IDependencyInterface& Dependencies |
Gather Dependencies for this modifier, including asset and class dependencies and other relevant data (for example local settings) that affect the modifier apply behavior. | Modifiers/MeshPartitionTexturePatchModifier.h |