UStaticMesh::BatchBuild

Rebuilds renderable data for a batch of static meshes.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/StaticMesh.h

Include

#include "Engine/StaticMesh.h"

Source

/Engine/Source/Runtime/Engine/Private/StaticMeshBuild.cpp

Syntax

static void BatchBuild
(
    const TArray< UStaticMesh * > & InStaticMeshes,
    bool bInSilent,
    TFunction< bool *)> InProgressCallback,
    TArray< FText > * OutErrors
)

Remarks

Rebuilds renderable data for a batch of static meshes.

Parameters

Parameter

Description

InStaticMeshes

The list of all static meshes to build.

bInSilent

If true will not popup a progress dialog.

InProgressCallback

If provided, will be used to abort task and report progress to higher level functions (should return true to continue, false to abort).

OutErrors

If provided, will contain the errors that occurred during this process. This will prevent async static mesh compilation because OutErrors could get out of scope.