UMeshComponent::CleanUpOverrideMaterials

Make sure the Override array is using only the space it should use.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/MeshComponent.h

Include

#include "Components/MeshComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/MeshComponent.cpp

Syntax

void CleanUpOverrideMaterials()

Remarks

Make sure the Override array is using only the space it should use.

The override array cannot be bigger then the number of mesh material.

The override array must not end with a nullptr UMaterialInterface.