RealDocs

UKismetMaterialLibrary

class Engine Blueprint Since unknown
#include "Kismet/KismetMaterialLibrary.h"

Description

Blueprint function library exposing material and Material Parameter Collection operations: reading/writing scalar and vector parameters on an MPC, and creating dynamic material instances.

Caveats & Gotchas

  • All Set/Get parameter functions operate on a Material Parameter Collection asset, not on a specific material instance — changes are global to every material referencing that collection.
  • Setting a parameter on an MPC via this library only affects the current world's collection instance; it is not automatically replicated to clients in multiplayer.
  • CreateDynamicMaterialInstance is the more common entry point for per-object material tweaks; the Set/Get parameter functions here are specifically for MPCs, a different mechanism.

Example

Update an MPC scalar parameter at runtime C++
UKismetMaterialLibrary::SetScalarParameterValue(this, DayNightCollection, TEXT("TimeOfDay"), 0.5f);

Functions (5)

Rendering|Material
5
Access Type Name
public function UKismetMaterialLibrary::CreateDynamicMaterialInstance
public function UKismetMaterialLibrary::GetScalarParameterValue
public function UKismetMaterialLibrary::GetVectorParameterValue
public function UKismetMaterialLibrary::SetScalarParameterValue
public function UKismetMaterialLibrary::SetVectorParameterValue

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.