UDatasmithMaterialInstanceTemplate

Applies material instance data to a material instance if it hasn't changed since the last time we've applied a template.

Choose your operating system:

Windows

macOS

Linux

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()
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

Functions

Name Description

Protected function 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.

Overridden from UDatasmithObjectTemplate

Name Description

Public function Virtual Const

bool

 

Equals

(
    const UDatasmithObjectTemplate*...
)

Returns if this template equals another template of the same type.

Protected function Virtual Const

bool

 

HasSameBase

(
    const UDatasmithObjectTemplate*...
)

Returns if this template has the same base as another template of the same type, this indicates if their diffs can be safely compared.

Public function Virtual

void

 

Load

(
    const UObject* Source
)

Fills this template properties with the values from the Source object.

Protected function Virtual

void

 

LoadRebase

(
    const UObject* Source,
    const UDatasmithObjectTemplate*...,
    bool bLoadDiff
)

Fills this template properties with the values from the Source object after rebasing (changing its parent) with the base object defined in BaseTemplate.

Public function Virtual

UObject *...

 

UpdateObject

(
    UObject* Destination,
    bool bForce
)

Updates the Destination object with the values stored in the object template