Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials > UMaterialInstanceDynamic
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 |
bool SetScalarParameterByIndex
&40;
int32 ParameterIndex,
float Value
&41;
Remarks
Use the cached value of OutParameterIndex from InitializeScalarParameterAndGetIndex to set the scalar parameter ONLY on the exact same MID. Do NOT presume the index can be used from one instance on another. Only use this pair of functions when optimization is critical; otherwise use either SetScalarParameterValueByInfo or SetScalarParameterValue.