Agrarsense
|
#include <MaterialParameterCollectionUtilities.h>
Static Public Member Functions | |
static bool | UpdateMaterialCollectionVectorValue (UMaterialParameterCollectionInstance *MPCInstance, const FName ParameterName, const FVector4 Value) |
static bool | UpdateMaterialCollectionScalarValue (UMaterialParameterCollectionInstance *MPCInstance, const FName ParameterName, const float Value) |
static UMaterialParameterCollectionInstance * | LoadMaterialParameterCollectionInstance (const UObject *WorldContextObject, const FString &Path) |
A utility class for loading and manipulating Material Parameter Collections.
Definition at line 18 of file MaterialParameterCollectionUtilities.h.
|
static |
Loads a Material Parameter Collection Instance from a specified asset path.
World | The world context where the Material Parameter Collection Instance is used. |
Path | The asset path of the Material Parameter Collection to load, e.g., "/Game/Path/To/Collection". |
Definition at line 33 of file MaterialParameterCollectionUtilities.cpp.
Referenced by USimulatorJsonParser::ParseAndSetSemanticColors().
|
static |
Updates a float parameter within a Material Parameter Collection Instance and returns success status.
MPCInstance | The Material Parameter Collection Instance to update. |
ParameterName | The name of the float parameter to update. |
Value | The new float value to set for the parameter. |
Definition at line 23 of file MaterialParameterCollectionUtilities.cpp.
|
static |
Updates a Vector4 parameter within a Material Parameter Collection Instance and returns success status.
MPCInstance | The Material Parameter Collection Instance to update. |
ParameterName | The name of the Vector4 parameter to update. |
Value | The new Vector4 value to set for the parameter. |
Definition at line 13 of file MaterialParameterCollectionUtilities.cpp.
Referenced by USimulatorJsonParser::ParseAndSetSemanticColors().