Setting PBR Instance Properties from scripts
Posted: Mon Sep 18, 2017 3:00 pm
Hi all,
We are wondering whether it is possible to modify PBR Instance Properties attributes such as "RenderLayerID" and/or "BakingGroupID" from Unity external scripts.
It is possible from the UI interface but what if you want to assign many (hundreds of meshes) to another layer ID, it would require huge manual effort making it a daunting task (selecting multiple objects and modifying these attributes does not work).
It looks an extremely useful feature to organize render layers/passes for a moderatly sized scene without manual intervention, but simply automatizing it from scripts.
Otherwise a multiple-selection one single assignment could also work.
Any clue on how to approach this problem?
Thanks,
- jalley
PD. Another interesting case would be to create a custom info/shader pass, but I don't think this is yet supported, Am I right?.
We are wondering whether it is possible to modify PBR Instance Properties attributes such as "RenderLayerID" and/or "BakingGroupID" from Unity external scripts.
It is possible from the UI interface but what if you want to assign many (hundreds of meshes) to another layer ID, it would require huge manual effort making it a daunting task (selecting multiple objects and modifying these attributes does not work).
It looks an extremely useful feature to organize render layers/passes for a moderatly sized scene without manual intervention, but simply automatizing it from scripts.
Otherwise a multiple-selection one single assignment could also work.
Any clue on how to approach this problem?
Thanks,
- jalley
PD. Another interesting case would be to create a custom info/shader pass, but I don't think this is yet supported, Am I right?.