Navigation
API > API/Editor > API/Editor/MeshPaint
References
| Module | MeshPaint |
| Header | /Engine/Source/Editor/MeshPaint/Public/MeshPaintHelpers.h |
| Include | #include "MeshPaintHelpers.h" |
Syntax
class MeshPaintHelpers
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyBrushToVertex
(
const FVector& VertexPosition, |
||
| void | ApplyFillWithMask
(
FColor& InOutColor, |
||
| bool | ApplyPerTrianglePaintAction
(
IMeshPaintGeometryAdapter* Adapter, |
Given the adapter, settings and view-information retrieves influences triangles and applies Action to them | |
| bool | ApplyPerVertexPaintAction
(
FPerVertexPaintActionArgs& InArgs, |
Given arguments for an action, and an action - retrieves influences vertices and applies Action to them | |
| void | ApplyVertexColorPaint
(
const FMeshPaintParameters& InParams, |
Applies Vertex Color Painting according to the given parameters | |
| void | ApplyVertexColorsToAllLODs
(
IMeshPaintGeometryAdapter& GeometryInfo, |
Applies the vertex colors found in LOD level 0 to all contained LOD levels in the SkeletalMeshComponent | |
| void | ApplyVertexColorsToAllLODs
(
IMeshPaintGeometryAdapter& GeometryInfo, |
Applies the vertex colors found in LOD level 0 to all contained LOD levels in the StaticMeshComponent | |
| void | ApplyVertexColorsToAllLODs
(
IMeshPaintGeometryAdapter& GeometryInfo, |
Applies vertex color painting found on LOD 0 to all lower LODs. | |
| void | ApplyVertexWeightPaint
(
const FMeshPaintParameters& InParams, |
Applies Vertex Blend Weight Painting according to the given parameters | |
| void | ClearMeshTextureOverrides
(
const IMeshPaintGeometryAdapter& GeometryInfo, |
Clears all texture overrides for this component. | |
| float | ComputePaintMultiplier
(
float SquaredDistanceToVertex2D, |
Computes the Paint power multiplier value | |
| bool | DoesMeshComponentContainPerLODColors
(
const UMeshComponent* MeshComponent |
Checks whether or not the mesh components contains per lod colors (for all LODs) | |
| void | FillSkeletalMeshVertexColors
(
USkeletalMeshComponent* MeshComponent, |
||
| void | FillStaticMeshVertexColors
(
UStaticMeshComponent* MeshComponent, |
Fills all vertex colors for all LODs found in the given mesh component with Fill Color | |
| void | ForceRenderMeshLOD
(
UMeshComponent* Component, |
Forces the component to render LOD level at LODIndex instead of the view-based LOD level ( X = 0 means do not force the LOD, X > 0 means force the lod to X - 1 ) | |
| FLinearColor | GenerateColorForTextureWeight
(
const int32 NumWeights, |
Generate texture weight color for given number of weights and the to-paint index | |
| TArray< FColor > | GetColorDataForLOD
(
const UStaticMesh* StaticMesh, |
Retrieves the vertex colors from the given LOD level in the Static Mesh | |
| TArray< FColor > | GetInstanceColorDataForLOD
(
const UStaticMeshComponent* MeshComponent, |
Retrieves the per-instance vertex colors from the given LOD level in the StaticMeshComponent | |
| void | GetInstanceColorDataInfo
(
const UStaticMeshComponent* StaticMeshComponent, |
Retrieves the number of bytes used to store the per-instance LOD vertex color data from the static mesh component | |
| int32 | GetNumberOfLODs
(
const UMeshComponent* MeshComponent |
Returns the number of Mesh LODs for the given MeshComponent | |
| int32 | GetNumberOfUVs
(
const UMeshComponent* MeshComponent, |
Returns the number of Texture Coordinates for the given MeshComponent | |
| bool | GetPerVertexPaintInfluencedVertices
(
FPerVertexPaintActionArgs& InArgs, |
||
| uint32 | GetVertexColorBufferSize
(
UMeshComponent* MeshComponent, |
Retrieves the Vertex Color buffer size for the given LOD level in the Static Mesh | |
| TArray< FVector > | GetVerticesForLOD
(
const UStaticMesh* StaticMesh, |
Retrieves the vertex positions from the given LOD level in the Static Mesh | |
| void | ImportVertexColorsFromTexture
(
UMeshComponent* MeshComponent |
Helper function to import Vertex Colors from a Texture to the specified MeshComponent (makes use of SImportVertexColorsOptions Widget) | |
| void | ImportVertexColorsToSkeletalMesh
(
USkeletalMesh* SkeletalMesh, |
Imports vertex colors from a Texture to the specified Skeletal Mesh according to user-set options | |
| void | ImportVertexColorsToStaticMesh
(
UStaticMesh* StaticMesh, |
Imports vertex colors from a Texture to the specified Static Mesh according to user-set options | |
| void | ImportVertexColorsToStaticMeshComponent
(
UStaticMeshComponent* StaticMeshComponent, |
Imports vertex colors from a Texture to the specified Static Mesh Component according to user-set options | |
| bool | IsInVRMode
(
const FEditorViewportClient* ViewportClient |
Checks whether or not the given Viewport Client is a VR editor viewport client | |
| bool | IsPointInfluencedByBrush
(
const FVector& InPosition, |
Checks whether or not a point is influenced by the painting brush according to the given parameters | |
| bool | IsPointInfluencedByBrush
(
const FVector2D& BrushSpacePosition, |
||
| bool | PaintVertex
(
const FVector& InVertexPosition, |
Applies vertex painting to InOutvertexColor according to the given parameters | |
| FColor | PickVertexColorFromTextureData
(
const uint8* MipData, |
Helper function to retrieve vertex color from a UTexture given a UVCoordinate | |
| bool | PropagateColorsToRawMesh
(
UStaticMesh* StaticMesh, |
Propagates per-instance vertex colors to the underlying Static Mesh for the given LOD Index | |
| void | RemoveComponentInstanceVertexColors
(
UStaticMeshComponent* StaticMeshComponent |
Removes vertex colors associated with the static mesh component | |
| void | RemoveInstanceVertexColors
(
UObject* Obj |
Removes vertex colors associated with the object | |
| bool | RetrieveViewportPaintRays
(
const FSceneView* View, |
||
| void | SetColorDataForLOD
(
USkeletalMesh* SkeletalMesh, |
Sets all vertex colors for a specific LOD level in the SkeletalMesh to FillColor | |
| void | SetInstanceColorDataForLOD
(
UStaticMeshComponent* MeshComponent, |
Sets the specific (LOD Index) per-instance vertex colors for the given StaticMeshComponent to a single Color value | |
| void | SetInstanceColorDataForLOD
(
UStaticMeshComponent* MeshComponent, |
Sets the specific (LOD Index) per-instance vertex colors for the given StaticMeshComponent to the supplied Color array | |
| void | SetRealtimeViewport
(
bool bRealtime |
Sets whether or not the level viewport should be real time rendered move or viewport as parameter? | |
| void | SetViewportColorMode
(
EMeshPaintColorViewMode ColorViewMode, |
Forces the Viewport Client to render using the given Viewport Color ViewMode | |
| bool | TryGetNumberOfLODs
(
const UMeshComponent* MeshComponent, |
OutNumLODs is set to number of Mesh LODs for the given MeshComponent and returns true, or returns false of given mesh component has no valid LODs |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FPaintRay |