UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IDatasmithMaterialExpressionGeneric Class Referenceabstract

#include <DatasmithMaterialElements.h>

+ Inheritance diagram for IDatasmithMaterialExpressionGeneric:

Public Member Functions

virtual void SetExpressionName (const TCHAR *InExpressionName)=0
 
virtual const TCHARGetExpressionName () const =0
 
virtual int32 GetPropertiesCount () const =0
 
virtual const TSharedPtr< IDatasmithKeyValueProperty > & GetProperty (int32 i) const =0
 
virtual TSharedPtr< IDatasmithKeyValueProperty > & GetProperty (int32 i)=0
 
virtual const TSharedPtr< IDatasmithKeyValueProperty > & GetPropertyByName (const TCHAR *Name) const =0
 
virtual TSharedPtr< IDatasmithKeyValueProperty > & GetPropertyByName (const TCHAR *Name)=0
 
virtual void AddProperty (const TSharedPtr< IDatasmithKeyValueProperty > &Property)=0
 
- Public Member Functions inherited from IDatasmithMaterialExpression
virtual ~IDatasmithMaterialExpression ()=default
 
EDatasmithMaterialExpressionType GetType () const
 
virtual EDatasmithMaterialExpressionType GetExpressionType () const =0
 
 UE_DEPRECATED (4.27, "IDatasmithMaterialExpression now derive from IDatasmithElement, please use IsSubType() or GetExpressionType() instead") bool IsA(const EDatasmithMaterialExpressionType ExpressionType) const
 
virtual bool IsSubType (const EDatasmithMaterialExpressionType ExpressionType) const =0
 
virtual void ConnectExpression (IDatasmithExpressionInput &ExpressionInput)=0
 
virtual void ConnectExpression (IDatasmithExpressionInput &ExpressionInput, int32 OutputIndex)=0
 
virtual int32 GetInputCount () const =0
 
virtual IDatasmithExpressionInputGetInput (int32 Index)=0
 
virtual const IDatasmithExpressionInputGetInput (int32 Index) const =0
 
virtual int32 GetDefaultOutputIndex () const =0
 
virtual void SetDefaultOutputIndex (int32 OutputIndex)=0
 
virtual void ResetExpression ()=0
 
virtual bool IsA (EDatasmithElementType Type) const=0
 
- Public Member Functions inherited from IDatasmithElement
virtual const TCHARGetName () const =0
 
virtual void SetName (const TCHAR *InName)=0
 
virtual const TCHARGetLabel () const =0
 
virtual void SetLabel (const TCHAR *InLabel)=0
 
virtual FMD5Hash CalculateElementHash (bool bForce)=0
 

Member Function Documentation

◆ AddProperty()

virtual void IDatasmithMaterialExpressionGeneric::AddProperty ( const TSharedPtr< IDatasmithKeyValueProperty > &  Property)
pure virtual

Add a property to this expression

◆ GetExpressionName()

virtual const TCHAR * IDatasmithMaterialExpressionGeneric::GetExpressionName ( ) const
pure virtual

◆ GetPropertiesCount()

virtual int32 IDatasmithMaterialExpressionGeneric::GetPropertiesCount ( ) const
pure virtual

Get the total amount of properties in this expression

◆ GetProperty() [1/2]

virtual const TSharedPtr< IDatasmithKeyValueProperty > & IDatasmithMaterialExpressionGeneric::GetProperty ( int32  i) const
pure virtual

Get the property i-th of this expression

◆ GetProperty() [2/2]

virtual TSharedPtr< IDatasmithKeyValueProperty > & IDatasmithMaterialExpressionGeneric::GetProperty ( int32  i)
pure virtual

◆ GetPropertyByName() [1/2]

virtual const TSharedPtr< IDatasmithKeyValueProperty > & IDatasmithMaterialExpressionGeneric::GetPropertyByName ( const TCHAR Name) const
pure virtual

Get a property by its name if it exists

◆ GetPropertyByName() [2/2]

virtual TSharedPtr< IDatasmithKeyValueProperty > & IDatasmithMaterialExpressionGeneric::GetPropertyByName ( const TCHAR Name)
pure virtual

◆ SetExpressionName()

virtual void IDatasmithMaterialExpressionGeneric::SetExpressionName ( const TCHAR InExpressionName)
pure virtual

The documentation for this class was generated from the following file: