Navigation
API > API/Plugins > API/Plugins/ProceduralMeshComponent > API/Plugins/ProceduralMeshComponent/UKismetProceduralMeshLibrary
References
| Module | ProceduralMeshComponent |
| Header | /Engine/Plugins/Runtime/ProceduralMeshComponent/Source/ProceduralMeshComponent/Public/KismetProceduralMeshLibrary.h |
| Include | #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
)
Remarks
Generate vertex and index buffer for a simple box, given the supplied dimensions. Normals, UVs and tangents are also generated for each vertex.