Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Materials/MaterialParameterCollection.h |
Include |
#include "Materials/MaterialParameterCollection.h" |
class UMaterialParameterCollection : public UObject
Asset class that contains a list of parameter names and their default values. Any number of materials can reference these parameters and get new values when the parameter values are changed.
Name | Description | ||
---|---|---|---|
|
ScalarParameters |
||
|
StateId |
Used by materials using this collection to know when to recompile. |
|
|
VectorParameters |
Name | Description | |
---|---|---|
|
UMaterialParameterCollection ( |
Name | Description | ||
---|---|---|---|
|
GetParameterId ( |
Finds a parameter id given a name, returns the default guid if the parameter was not found. |
|
|
GetParameterIndex |
Gets a vector and component index for the given parameter, used when compiling materials, to know where to access a certain parameter. |
|
|
GetParameterName ( |
Finds a parameter name given an Id, returns NAME_None if the parameter was not found. |
|
|
GetParameterNames |
Populates an array with either scalar or vector parameter names. |
|
|
const FColle... |
GetScalarParameterByName ( |
Utility to find a scalar parameter struct given a parameter name. Returns NULL if not found. |
|
float |
GetScalarParameterDefaultValue |
Gets the default value of a scalar parameter from a material collection. |
|
GetScalarParameterIndexByName ( |
Get the index in the ScalarParameters array of the parameter matching the input parameter name, returns -1 if not found |
|
|
GetScalarParameterNames() |
Returns an array of the names of all the scalar parameters in this Material Parameter Collection |
|
|
const FShade... |
GetUniformBufferStruct() |
Accessor for the uniform buffer layout description. |
|
const FColle... |
GetVectorParameterByName ( |
Utility to find a vector parameter struct given a parameter name. Returns NULL if not found. |
|
GetVectorParameterDefaultValue |
Gets the default value of a scalar parameter from a material collection. |
|
|
GetVectorParameterIndexByName ( |
Get the index in the VectorParameters array of the parameter matching the input parameter name, returns -1 if not found |
|
|
GetVectorParameterNames() |
Returns an array of the names of all the vector parameters in this Material Parameter Collection |
|
|
SetScalarParameterDefaultValue ( |
Set the default value of a scalar parameter on the Material Parameter Collection asset itself by name |
|
|
SetScalarParameterDefaultValueByInfo ( |
Set the default value of a scalar parameter on the Material Parameter Collection asset itself by struct |
|
|
SetVectorParameterDefaultValue ( |
Set the default value of a vector parameter on the Material Parameter Collection asset itself by name |
|
|
SetVectorParameterDefaultValueByInfo ( |
Set the default value of a vector parameter on the Material Parameter Collection asset itself by struct |
Name | Description | ||
---|---|---|---|
|
BeginDestroy() |
Called before destroying the object. |
|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostInitProperties() |
Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
|
PreEditChange ( |
This is called when a property is about to be modified externally |
Name | Description | ||
---|---|---|---|
|
CanBeInCluster() |
Called during cluster construction if the object can be added to a cluster |