Navigation
API > API/Plugins > API/Plugins/ProceduralMeshComponent > API/Plugins/ProceduralMeshComponent/UProceduralMeshComponent
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UpdateMeshSection
(
int32 SectionIndex, |
Updates a section of this procedural mesh component. | ProceduralMeshComponent.h |
|
void UpdateMeshSection
(
int32 SectionIndex, |
ProceduralMeshComponent.h |
UpdateMeshSection(int32, const TArray< FVector > &, const TArray< FVector > &, const TArray< FVector2D > &, const TArray< FColor > &, const TArray< FProcMeshTangent > &)
Description
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.
| Name | UpdateMeshSection |
| Type | function |
| Header File | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/ProceduralMeshComponent.h |
| Include Path | #include "ProceduralMeshComponent.h" |
UFUNCTION (BlueprintCallable, Category="Components|ProceduralMesh",
Meta=(DeprecatedFunction, DeprecationMessage="This function is deprecated for Blueprints because it uses the unsupported 'Color' type. Use new 'Update Mesh Section' function which uses LinearColor instead.", DisplayName="Update Mesh Section FColor", AutoCreateRefTerm="Normals,UV0,VertexColors,Tangents"))
void UpdateMeshSection
(
int32 SectionIndex,
const TArray < FVector > & Vertices,
const TArray < FVector > & Normals,
const TArray < FVector2D > & UV0,
const TArray < FColor > & VertexColors,
const TArray < FProcMeshTangent > & Tangents
)
Parameters
| Name | Remarks |
|---|---|
| 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. |
UpdateMeshSection(int32, const TArray< FVector > &, const TArray< FVector > &, const TArray< FVector2D > &, const TArray< FVector2D > &, const TArray< FVector2D > &, const TArray< FVector2D > &, const TArray< FColor > &, const TArray< FProcMeshTangent > &)
| Name | UpdateMeshSection |
| Type | function |
| Header File | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/ProceduralMeshComponent.h |
| Include Path | #include "ProceduralMeshComponent.h" |
| Source | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Private/ProceduralMeshComponent.cpp |
void UpdateMeshSection
(
int32 SectionIndex,
const TArray < FVector > & Vertices,
const TArray < FVector > & Normals,
const TArray < FVector2D > & UV0,
const TArray < FVector2D > & UV1,
const TArray < FVector2D > & UV2,
const TArray < FVector2D > & UV3,
const TArray < FColor > & VertexColors,
const TArray < FProcMeshTangent > & Tangents
)