Is there a way to override this and allow more parameter collections to be referenced?
Hey there @dan07070707! Unfortunately there’s no native way to override this limit unless you were to edit the source for it, it’s recommended to have extra parameters in your primary parameter collection for the object.
A Material can reference, at most, two different MaterialParameterCollections. One is typically used for game-wide values while the other can be used for level specific parameters. A collection can have up to 1024 scalar parameters and 1024 vector parameters.
Modifying the number of parameters in a collection will cause a recompile of all Materials that reference that collection. If you need to add numerous parameters, it can be faster to add a lot of parameters up front in an empty map.
If you rename a parameter, any Materials referencing that parameter will continue to work as expected. However, any Blueprint referencing that parameter will now be broken. You must reassign the ParameterName of the Blueprint function which operates on the collection to fix this.
Updating values in a MaterialParameterCollection is much more efficient than setting many different parameters on various Material instances.
I am trying to combine a few different material functions that each have their own MPC. Having to take all those MPC parameters and put them in one or two collections is difficult, I will just have to figure out something.
Thanks for the reply.