Get Material Parameter Collection Value in C++

Hi all,

I’m trying to get the value out of a Material Parameter Collection in C++ but don’t seem to find the right function to call.

My goal is to have several LightActors have there color and intensity listen to MPC parameters. In BP it’s pretty easy but for performance and inheritance I would want a c++ class for that.

So far I have access to the MPC in my C++ class but getting those values out seems to be harder then I expected.
I would think there would be a function “GetVectorParameterValue” or something but there doest seem to be something like that.

If anyone knows a solution or workaround or has any further questions, I’d love to hear about it!


The Collection only contains the default definitions (see it as the Blueprint asset in content browser).
To get realtime values you need to access the instance of the collection.
Or just use the kismet library which does that for you :

#include "Kismet/KismetMaterialLibrary.h"

UKismetMaterialLibrary::GetVectorParameterValue(this, xLiveMpc.Get(), "ColorOdd");
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.