UKismetProceduralMeshLibrary::GenerateBoxMesh

Generate vertex and index buffer for a simple box, given the supplied dimensions.

Windows
MacOS
Linux

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

Syntax

[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
)

Remarks

Generate vertex and index buffer for a simple box, given the supplied dimensions. Normals, UVs and tangents are also generated for each vertex.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss