Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FFbxImporter
Description
Create materials from Fbx node. Only setup channels that connect to texture, and setup the UV coordinate of texture. If diffuse channel has no texture, one default node will be created with constant. If a material cannot be imported a nullptr will be insterted in the outMaterials array in its place.
| Name | FindOrImportMaterialsFromNode |
| 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 |
void FindOrImportMaterialsFromNode
(
FbxNode * FbxNode,
TArray < UMaterialInterface * > & outMaterials,
TArray < FString > & UVSets,
bool bForSkeletalMesh
)
int32 material count that created from the Fbx node
Parameters
| Name | Remarks |
|---|---|
| FbxNode | Fbx node |
| outMaterials | Unreal Materials we created |
| UVSets | UV set name list |