Navigation
API > API/Developer > API/Developer/DatasmithFacade
| Name | FDatasmithFacadeMaterialInstance |
| Type | class |
| Header File | /Engine/Source/Developer/Datasmith/DatasmithFacade/Public/DatasmithFacadeMaterial.h |
| Include Path | #include "DatasmithFacadeMaterial.h" |
Syntax
class FDatasmithFacadeMaterialInstance : public FDatasmithFacadeBaseMaterial
Inheritance Hierarchy
- FDatasmithFacadeElement → FDatasmithFacadeBaseMaterial → FDatasmithFacadeMaterialInstance
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDatasmithFacadeMaterialInstance
(
const TCHAR* InElementName |
DatasmithFacadeMaterial.h | ||
FDatasmithFacadeMaterialInstance
(
const TSharedRef< IDatasmithMaterialInstanceElement >& InMaterialRef |
DatasmithFacadeMaterial.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FDatasmithFacadeMaterialInstance() |
DatasmithFacadeMaterial.h |
Enums
Public
| Name | Remarks |
|---|---|
| EMaterialInstanceQuality | |
| EMaterialInstanceType | Possible Datasmith material types, from EDatasmithMaterialInstanceType in DatasmithDefinitions.h. |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddBoolean
(
const TCHAR* InPropertyName, |
Add a Datasmith material boolean property. | DatasmithFacadeMaterial.h | |
void AddColor
(
const TCHAR* InPropertyName, |
Add a Datasmith material linear color property. | DatasmithFacadeMaterial.h | |
void AddColor
(
const TCHAR* InPropertyName, |
Add a Datasmith material sRGBA color property. | DatasmithFacadeMaterial.h | |
void AddFloat
(
const TCHAR* InPropertyName, |
Add a Datasmith material float property. | DatasmithFacadeMaterial.h | |
void AddString
(
const TCHAR* InPropertyName, |
Add a Datasmith material string property. | DatasmithFacadeMaterial.h | |
void AddTexture
(
const TCHAR* InPropertyName, |
Add a Datasmith material texture property. | DatasmithFacadeMaterial.h | |
const TCHAR * GetCustomMaterialPathName() |
Get the material path name used when material type is set to Custom | DatasmithFacadeMaterial.h | |
TSharedRef< IDatasmithMaterialInstanceElement > GetDatasmithMaterialInstance() |
DatasmithFacadeMaterial.h | ||
EMaterialInstanceType GetMaterialType() |
DatasmithFacadeMaterial.h | ||
FDatasmithFacadeKeyValueProperty * GetNewProperty
(
int32 PropertyIndex |
Returns a new FDatasmithFacadeKeyValueProperty pointing to the KeyValueProperty at the given index, the returned value must be deleted after used, can be nullptr. | DatasmithFacadeMaterial.h | |
FDatasmithFacadeKeyValueProperty * GetNewPropertyByName
(
const TCHAR* PropertyName |
Returns a new FDatasmithFacadeKeyValueProperty pointing to the KeyValueProperty with the given name, the returned value must be deleted after used, can be nullptr. | DatasmithFacadeMaterial.h | |
int32 GetPropertiesCount() |
DatasmithFacadeMaterial.h | ||
EMaterialInstanceQuality GetQuality() |
DatasmithFacadeMaterial.h | ||
void SetCustomMaterialPathName
(
const TCHAR* InPathName |
Set the material path name used when material type is set to Custom | DatasmithFacadeMaterial.h | |
void SetMaterialType
(
EMaterialInstanceType InMaterialInstanceType |
DatasmithFacadeMaterial.h | ||
void SetQuality
(
EMaterialInstanceQuality InQuality |
DatasmithFacadeMaterial.h |