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