UMaterialInstanceDynamic::SetScalarParameterByIndex

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

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss