Cannot set Material parameter collection default values as the functions are private.

I am making a tool, which needs to modify the default values of a material parameter collection , which does not seem currently possible because the following function inside of MaterialParameterCollection.h are private :

  • SetScalarParameterDefaultValueByInfo()
  • SetScalarParameterDefaultValue()
  • SetVectorParameterDefaultValueByInfo()
  • SetVectorParameterDefaultValue()

Is there any other way to achieve the desired result without changing the above functions to public? If not, would it be possible to switch them to public in a future engine release?

Hello [mention removed]​,

The functions you mentioned are already publicly accessible in the UE5 main stream (or ue5-main on GitHub), with the public specifier added to UMaterialParameterCollection. This change was introduced in CL 43188168 - MaterialParameterCollection Extension.

You can expect this to be available in future releases like UE 5.7.

Please let me know if this information helps.

Best,

Francisco

Thank you [mention removed]​ ! This answers my question!