Navigation
API > API/Plugins > API/Plugins/DatasmithContent
Applies material instance data to a material instance if it hasn't changed since the last time we've applied a template. Supports Scalar parameters, Vector parameters, Texture parameters and Static parameters
| Name | UDatasmithMaterialInstanceTemplate |
| Type | class |
| Header File | /Engine/Plugins/Enterprise/DatasmithContent/Source/DatasmithContent/Public/ObjectTemplates/DatasmithMaterialInstanceTemplate.h |
| Include Path | #include "ObjectTemplates/DatasmithMaterialInstanceTemplate.h" |
Syntax
UCLASS (MinimalAPI)
class UDatasmithMaterialInstanceTemplate : public UDatasmithObjectTemplate
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UDatasmithObjectTemplate → UDatasmithMaterialInstanceTemplate
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ParentMaterial | TSoftObjectPtr< UMaterialInterface > | ObjectTemplates/DatasmithMaterialInstanceTemplate.h | ||
| ScalarParameterValues | TMap< FName, float > | ObjectTemplates/DatasmithMaterialInstanceTemplate.h | ||
| StaticParameters | FDatasmithStaticParameterSetTemplate | ObjectTemplates/DatasmithMaterialInstanceTemplate.h | ||
| TextureParameterValues | TMap< FName, TSoftObjectPtr< UTexture > > | ObjectTemplates/DatasmithMaterialInstanceTemplate.h | ||
| VectorParameterValues | TMap< FName, FLinearColor > | ObjectTemplates/DatasmithMaterialInstanceTemplate.h |
Functions
Public
Overridden from UDatasmithObjectTemplate
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool Equals
(
const UDatasmithObjectTemplate* Other |
Returns if this template equals another template of the same type. | ObjectTemplates/DatasmithMaterialInstanceTemplate.h | |
virtual void Load
(
const UObject* Source |
Fills this template properties with the values from the Source object. | ObjectTemplates/DatasmithMaterialInstanceTemplate.h | |
| Updates the Destination object with the values stored in the object template | ObjectTemplates/DatasmithMaterialInstanceTemplate.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void LoadAll
(
const UObject* Source |
Loads all the source object properties into the template, regardless if they are different from the default values or not. | ObjectTemplates/DatasmithMaterialInstanceTemplate.h |
Overridden from UDatasmithObjectTemplate
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool HasSameBase
(
const UDatasmithObjectTemplate* Other |
Returns if this template has the same base as another template of the same type, this indicates if their diffs can be safely compared. | ObjectTemplates/DatasmithMaterialInstanceTemplate.h | |
virtual void LoadRebase
(
const UObject* Source, |
Fills this template properties with the values from the Source object after rebasing (changing its parent) with the base object defined in BaseTemplate. | ObjectTemplates/DatasmithMaterialInstanceTemplate.h |