Module |
|
Header |
/Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/ProceduralMeshComponent.h |
Include |
#include "ProceduralMeshComponent.h" |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Components|ProceduralMesh",
Meta=(DeprecatedFunction, DeprecationMessage="This function is deprecated for Blueprints because it uses the unsupported 'Color' type. Use new 'Create Mesh Section' function which uses LinearColor instead.", DisplayName="Create Mesh Section FColor", AutoCreateRefTerm="Normals,UV0,VertexColors,Tangents"))
void CreateMeshSection
(
int32 SectionIndex,
const TArray< FVector > & Vertices,
const TArray< int32 > & Triangles,
const TArray< FVector > & Normals,
const TArray< FVector2D > & UV0,
const TArray< FColor > & VertexColors,
const TArray< FProcMeshTangent > & Tangents,
bool bCreateCollision
)
Create/replace a section for this procedural mesh component. This function is deprecated for Blueprints because it uses the unsupported 'Color' type. Use new 'Create Mesh Section' function which uses LinearColor instead.
Parameter |
Description |
---|---|
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. |