UMaterialInstanceDynamic::SetScalarParameterByIndex

Use the cached value of OutParameterIndex above to set the scalar parameter ONLY on the exact same MID.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstanceDynamic.h

Include

#include "Materials/MaterialInstanceDynamic.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/MaterialInstanceDynamic.cpp

Syntax

bool SetScalarParameterByIndex
(
    int32 ParameterIndex,
    float Value
)

Remarks

Use the cached value of OutParameterIndex above to set the scalar parameter ONLY on the exact same MID.