Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialParameterCollectionInstance
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialParameterCollectionInstance.h |
| Include | #include "Materials/MaterialParameterCollectionInstance.h" |
Syntax
class UMaterialParameterCollectionInstance : public UObject
Remarks
Class that stores per-world instance parameter data for a given UMaterialParameterCollection resource. Instances of this class are always transient.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bLoggedMissingParameterWarning | Tracks whether this instance has ever issued a missing parameter warning, to reduce log spam. | |
| bool | bNeedsRenderStateUpdate | Tracks whether this instance needs to update the render state from the game thread | |
| TWeakObjectPtr< UMaterialParameterCollection > | Collection | Collection resource this instance is based off of. | |
| FMaterialParameterCollectionInstanceResource * | Resource | Instance resource which stores the rendering thread representation of this instance. | |
| FOnScalarParameterUpdated | ScalarParameterUpdatedDelegate | Delegate for when a scalar parameter value is updated | |
| TMap< FName, float > | ScalarParameterValues | Overrides for scalar parameter values. | |
| FOnVectorParameterUpdated | VectorParameterUpdatedDelegate | Delegate for when a vector parameter value is updated | |
| TMap< FName, FLinearColor > | VectorParameterValues | Overrides for vector parameter values. | |
| TWeakObjectPtr< UWorld > | World | World that owns this instance. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialParameterCollectionInstance
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DeferredUpdateRenderState
(
bool bRecreateUniformBuffer |
||
| const UMaterialParameterCollection * | |||
| void | GetParameterData
(
TArray< FVector4f >& ParameterData |
Boils down the instance overrides and default values into data to be set on the uniform buffer. | |
| FMaterialParameterCollectionInstanceResource * | GetResource () |
||
| bool | GetScalarParameterValue
(
const FCollectionScalarParameter& Parameter, |
Alternate Get method for parameter values where the Collection parameter is provided | |
| bool | GetScalarParameterValue
(
FName ParameterName, |
Gets parameter values, returns false if the parameter was not found. | |
| bool | GetVectorParameterValue
(
const FCollectionVectorParameter& Parameter, |
||
| bool | GetVectorParameterValue
(
FName ParameterName, |
||
| bool | |||
| FOnScalarParameterUpdated & | |||
| FOnVectorParameterUpdated & | |||
| void | SetCollection
(
UMaterialParameterCollection* InCollection, |
Initializes the instance with the collection it is based off of and the world it is owned by. | |
| bool | SetScalarParameterValue
(
FName ParameterName, |
Sets parameter value overrides, returns false if the parameter was not found. | |
| bool | SetVectorParameterValue
(
FName ParameterName, |
||
| bool | SetVectorParameterValue
(
FName ParameterName, |
||
| bool | SetVectorParameterValue
(
FName ParameterName, |
||
| void | UpdateRenderState
(
bool bRecreateUniformBuffer |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called to finish destroying the object. | ||
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |