I’m looking for this feature for a long time. I guess some users has already asked/posted about this. But I’m trying to point it out more clearly. Material functions has an option called “Prefix Parameter Names” but I’m not sure what it’s doing. Checking/unchecking that makes no difference.
It would be great to expose “Prefix” and “Suffix” options for any material function that is called in a material. Then add those prefix/suffix to all containing parameters. Maybe something like this:
Also there can be something else to group all those parameters in a different way.
Even this can be taken one step further, when a parameter is placed in a function, there can be some extra options. Something like this:
So only those parameters will take prefix/suffix if provided in function call and generate new unique parameters. There can be other options also, like override or use group from function call or something like that.
Also new set of parameter nodes can be introduced only for Material functions which will create new parameters like this and keep each function call unique.
With this functionality, it will be more easy and fast to make material containing multiple textures. For example landscape, paintable material, masked materials etc. Like I explained in first screenshot.
If this idea is implemented, I hope many developers can take more advantage of the material function. It will unlock possibilities of DRY development in material creation process.