FFbxImporter::FindExistingMaterialFromFbxMaterial

Tries to find an existing UnrealMaterial from the FbxMaterial, returns nullptr if could not find a material.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/FbxImporter.h

Include

#include "FbxImporter.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Fbx/FbxMaterialImport.cpp

Syntax

UMaterialInterface * FindExistingMaterialFromFbxMaterial
(
    const FbxSurfaceMaterial & FbxMaterial,
    EMaterialSearchLocation MaterialSearchLocation
)

Remarks

Tries to find an existing UnrealMaterial from the FbxMaterial, returns nullptr if could not find a material. The function will look for materials imported by the FbxFactory first, and then search into the asset database using the passed MaterialSearchLocation search scope.

Returns

The UMaterialInterfaceFound, returns nullptr if no material was found.

Parameters

Parameter

Description

FbxMaterial

The FbxMaterial used to search the UnrealMaterial

MaterialSearchLocation

The asset database search scope.

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