How to get access to material parameter collcetion in c++

image
I have material parameter collection in my blueprint files, but I can’t get access in c++, I need help with this

This can also be exposed as a uproprerty in the header and assigned in editor.

UPROPERTY(VisibleAnywhere, BlueprintReadWrite, meta = (AllowPrivateAccess = "true"))
UMaterialParameterCollection* collection;

I tried without meta parameters before, so it didn’t work, thanks a lot, it really helped me