UKismetProceduralMeshLibrary::CreateGridMeshSplit

Generate a vertex buffer, index buffer and UVs for a grid mesh where each quad is split, with standard 0-1 UVs on UV0 and point sampled texel center UVs for UV1.

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 CreateGridMeshSplit
(
    int32 NumX,
    int32 NumY,
    TArray< int32 > & Triangles,
    TArray< FVector > & Vertices,
    TArray< FVector2D > & UVs,
    TArray< FVector2D > & UV1s,
    float GridSpacing
)

Remarks

Generate a vertex buffer, index buffer and UVs for a grid mesh where each quad is split, with standard 0-1 UVs on UV0 and point sampled texel center UVs for UV1.

Parameters

Parameter

Description

NumX

Number of vertices in X direction (must be >= 2)

NumY

Number of vertices in y direction (must be >= 2) Triangles Output index buffer Vertices Output vertex buffer UVs Out UVs UV1s Out UV1s

GridSpacing

Size of each quad in world units

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