Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FFbxImporter
Description
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.
| Name | FindExistingMaterialFromFbxMaterial |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/FbxImporter.h |
| Include Path | #include "FbxImporter.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Fbx/FbxMaterialImport.cpp |
UMaterialInterface * FindExistingMaterialFromFbxMaterial
(
const FbxSurfaceMaterial & FbxMaterial,
EMaterialSearchLocation MaterialSearchLocation
)
The UMaterialInterfaceFound, returns nullptr if no material was found.
Parameters
| Name | Remarks |
|---|---|
| FbxMaterial | The FbxMaterial used to search the UnrealMaterial |
| MaterialSearchLocation | The asset database search scope. |