Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FFbxImporter
Description
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.
| Name | CreateUnrealMaterial |
| 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 |
UMaterialInterface * CreateUnrealMaterial
(
const FbxSurfaceMaterial & FbxMaterial,
TArray < FString > & OutUVSets,
bool bForSkeletalMesh
)
The created material.
Parameters
| Name | Remarks |
|---|---|
| KFbxSurfaceMaterial* | Fbx material |
| outUVSets | |
| bForSkeletalMesh | If set to true, the material target usage will be set to "SkeletalMesh". |