FFbxImporter::FindOrImportMaterialsFromNode

Create materials from Fbx node.

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

void FindOrImportMaterialsFromNode
(
    FbxNode * FbxNode,
    TArray< UMaterialInterface * > & outMaterials,
    TArray< FString > & UVSets,
    bool bForSkeletalMesh
)

Remarks

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.

Returns

int32 material count that created from the Fbx node

Parameters

Parameter

Description

FbxNode

Fbx node

outMaterials

Unreal Materials we created

UVSets

UV set name list

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