Navigation
Unreal Engine C++ API Reference > Plugins > ProceduralMeshComponent > UProceduralMeshComponent > UpdateMeshSection
References
Module | ProceduralMeshComponent |
Header | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/ProceduralMeshComponent.h |
Include | #include "ProceduralMeshComponent.h" |
UFUNCTION&40;BlueprintCallable, Category&61;"Components&124;ProceduralMesh",
Meta&61;&40;DeprecatedFunction, DeprecationMessage&61;"This function is deprecated for Blueprints because it uses the unsupported &39;Color&39; type. Use new &39;Update Mesh Section&39; function which uses LinearColor instead.", DisplayName&61;"Update Mesh Section FColor", AutoCreateRefTerm&61;"Normals,UV0,VertexColors,Tangents"&41;&41;
void UpdateMeshSection
&40;
int32 SectionIndex,
const TArray< FVector > & Vertices,
const TArray< FVector > & Normals,
const TArray< FVector2D > & UV0,
const TArray< FColor > & VertexColors,
const TArray< FProcMeshTangent > & Tangents
&41;
Remarks
Updates a section of this procedural mesh component. This is faster than CreateMeshSection, but does not let you change topology. Collision info is also updated. This function is deprecated for Blueprints because it uses the unsupported 'Color' type. Use new 'Create Mesh Section' function which uses LinearColor instead.
Parameters
Name | Description |
---|---|
Vertices | Vertex buffer of all vertex positions to use for this mesh section. |
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. |