Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Public/FbxImporter.h |
Include |
#include "FbxImporter.h" |
Source |
/Engine/Source/Editor/UnrealEd/Private/Fbx/FbxMaterialImport.cpp |
UMaterialInterface * CreateUnrealMaterial
(
const FbxSurfaceMaterial & FbxMaterial,
TArray< FString > & OutUVSets,
bool bForSkeletalMesh
)
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.
The created material.
Parameter |
Description |
---|---|
KFbxSurfaceMaterial* |
Fbx material |
outUVSets |
|
bForSkeletalMesh |
If set to true, the material target usage will be set to "SkeletalMesh". |