Navigation
API > API/Plugins > API/Plugins/DatasmithContent > API/Plugins/DatasmithContent/ObjectTemplates
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDatasmithObjectTemplate
- UDatasmithMaterialInstanceTemplate
References
| Module | DatasmithContent |
| Header | /Engine/Plugins/Enterprise/DatasmithContent/Source/DatasmithContent/Public/ObjectTemplates/DatasmithMaterialInstanceTemplate.h |
| Include | #include "ObjectTemplates/DatasmithMaterialInstanceTemplate.h" |
Syntax
UCLASS&40;&41;
class UDatasmithMaterialInstanceTemplate : public UDatasmithObjectTemplate
Remarks
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSoftObjectPtr< UMaterialInterface > | ParentMaterial | ||
| TMap< FName, float > | ScalarParameterValues | ||
| FDatasmithStaticParameterSetTemplate | StaticParameters | ||
| TMap< FName, TSoftObjectPtr< UTexture > > | TextureParameterValues | ||
| TMap< FName, FLinearColor > | VectorParameterValues |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Loads all the source object properties into the template, regardless if they are different from the default values or not. |
Overridden from UDatasmithObjectTemplate
| Type | Name | Description | |
|---|---|---|---|
| bool | Equals
(
const UDatasmithObjectTemplate* Other |
Returns if this template equals another template of the same type. | |
| 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. | |
| void | Fills this template properties with the values from the Source object. | ||
| 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. | |
| UObject * | UpdateObject
(
UObject* Destination, |
Updates the Destination object with the values stored in the object template |