Navigation
API > API/Plugins > API/Plugins/ProceduralMeshComponent > API/Plugins/ProceduralMeshComponent/UKismetProceduralMeshLibrary
Description
Generate vertex and index buffer for a simple box, given the supplied dimensions. Normals, UVs and tangents are also generated for each vertex.
| Name | GenerateBoxMesh |
| Type | function |
| Header File | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/KismetProceduralMeshLibrary.h |
| Include Path | #include "KismetProceduralMeshLibrary.h" |
| Source | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Private/KismetProceduralMeshLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Components|ProceduralMesh")
static void GenerateBoxMesh
(
FVector BoxRadius,
TArray < FVector > & Vertices,
TArray < int32 > & Triangles,
TArray < FVector > & Normals,
TArray < FVector2D > & UVs,
TArray < FProcMeshTangent > & Tangents
)