UStaticMesh::FixLODRequiresAdjacencyInformation

Verify that a specific LOD using a material needing the adjacency buffer have the build option set to create the adjacency buffer.

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/StaticMesh.cpp

Syntax

bool FixLODRequiresAdjacencyInformation
(
    const int32 LODIndex,
    const bool bPreviewMode,
    bool bPromptUser,
    bool * OutUserCancel
)

Remarks

Verify that a specific LOD using a material needing the adjacency buffer have the build option set to create the adjacency buffer.

LODIndex: The LOD to fix bPreviewMode: If true the the function will not fix the build option. It will also change the return behavior, return true if the LOD need adjacency buffer, false otherwise bPromptUser: if true a dialog will ask the user if he agree changing the build option to allow adjacency buffer OutUserCancel: if the value is not null and the bPromptUser is true, the prompt dialog will have a cancel button and the result will be put in the parameter.

The function will return true if any LOD build settings option is fix to add adjacency option. It will return false if no action was done. In case bPreviewMode is true it return true if the LOD need adjacency buffer, false otherwise.

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