Module |
|
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](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Components|ProceduralMesh")
static void GenerateBoxMesh
(
FVector BoxRadius,
TArray< FVector > & Vertices,
TArray< int32 > & Triangles,
TArray< FVector > & Normals,
TArray< FVector2D > & UVs,
TArray< FProcMeshTangent > & Tangents
)
Generate vertex and index buffer for a simple box, given the supplied dimensions. Normals, UVs and tangents are also generated for each vertex.