FFbxImporter::CreateUnrealMaterial

Create Unreal material from Fbx 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 * CreateUnrealMaterial
(
    const FbxSurfaceMaterial & FbxMaterial,
    TArray< FString > & OutUVSets,
    bool bForSkeletalMesh
)

Remarks

Create Unreal material from Fbx material. 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.

Returns

The created material.

Parameters

Parameter

Description

KFbxSurfaceMaterial*

Fbx material

outUVSets

bForSkeletalMesh

If set to true, the material target usage will be set to "SkeletalMesh".

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