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