Navigation
API > API/Plugins > API/Plugins/ProceduralMeshComponent > API/Plugins/ProceduralMeshComponent/UProceduralMeshComponent
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CreateMeshSection_LinearColor
(
int32 SectionIndex, |
ProceduralMeshComponent.h | ||
void CreateMeshSection_LinearColor
(
int32 SectionIndex, |
Create/replace a section for this procedural mesh component. | ProceduralMeshComponent.h |
|
CreateMeshSection_LinearColor(int32, const TArray< FVector > &, const TArray< int32 > &, const TArray< FVector > &, const TArray< FVector2D > &, const TArray< FLinearColor > &, const TArray< FProcMeshTangent > &, bool, bool)
| Name | CreateMeshSection_LinearColor |
| Type | function |
| Header File | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/ProceduralMeshComponent.h |
| Include Path | #include "ProceduralMeshComponent.h" |
void CreateMeshSection_LinearColor
(
int32 SectionIndex,
const TArray < FVector > & Vertices,
const TArray < int32 > & Triangles,
const TArray < FVector > & Normals,
const TArray < FVector2D > & UV0,
const TArray < FLinearColor > & VertexColors,
const TArray < FProcMeshTangent > & Tangents,
bool bCreateCollision,
bool bSRGBConversion
)
CreateMeshSection_LinearColor(int32, const TArray< FVector > &, const TArray< int32 > &, const TArray< FVector > &, const TArray< FVector2D > &, const TArray< FVector2D > &, const TArray< FVector2D > &, const TArray< FVector2D > &, const TArray< FLinearColor > &, const TArray< FProcMeshTangent > &, bool, UPARAM(DisplayName="SRGB Conversion") bool)
Description
Create/replace a section for this procedural mesh component.
| Name | CreateMeshSection_LinearColor |
| Type | function |
| Header File | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/ProceduralMeshComponent.h |
| Include Path | #include "ProceduralMeshComponent.h" |
UFUNCTION (BlueprintCallable, Category="Components|ProceduralMesh",
Meta=(DisplayName="Create Mesh Section", AutoCreateRefTerm="Normals,UV0,UV1,UV2,UV3,VertexColors,Tangents", AdvancedDisplay="UV1,UV2,UV3"))
void CreateMeshSection_LinearColor
(
int32 SectionIndex,
const TArray < FVector > & Vertices,
const TArray < int32 > & Triangles,
const TArray < FVector > & Normals,
const TArray < FVector2D > & UV0,
const TArray < FVector2D > & UV1,
const TArray < FVector2D > & UV2,
const TArray < FVector2D > & UV3,
const TArray < FLinearColor > & VertexColors,
const TArray < FProcMeshTangent > & Tangents,
bool bCreateCollision,
UPARAM(DisplayName="SRGB Conversion") bool bSRGBConversion
)
Parameters
| Name | Remarks |
|---|---|
| SectionIndex | Index of the section to create or replace. |
| Vertices | Vertex buffer of all vertex positions to use for this mesh section. |
| Triangles | Index buffer indicating which vertices make up each triangle. Length must be a multiple of 3. |
| Normals | Optional array of normal vectors for each vertex. If supplied, must be same length as Vertices array. |
| UV0 | Optional array of texture co-ordinates for each vertex. If supplied, must be same length as Vertices array. |
| VertexColors | Optional array of colors for each vertex. If supplied, must be same length as Vertices array. |
| Tangents | Optional array of tangent vector for each vertex. If supplied, must be same length as Vertices array. |
| bCreateCollision | Indicates whether collision should be created for this section. This adds significant cost. |
| bSRGBConversion | Whether to do sRGB conversion when converting FLinearColor to FColor |