Sharing Color (Material?) parameters across multiple shapes?

Avatar
  • updated

Is there a workflow currently that supports being able to en-masse change the color of many shapes all at once?

Use case example, X# shapes assets form the UI, and we want to change all of a subset of shapes assets' to another color, either in editor or even at runtime. 

For other assets, we'd alter the material the shapes asset is using, but materials don't appear to be exposed on shape assets anywhere that I could find. 

Its extra work but I could write a manager component that holds a reference to all the shape assets in arrays and assign to their colors collectively that way, but before writing that solution, is there some stock way to do what I am intending to do?

Reporting a bug? please specify Unity version:
2022.3.5f1
Reporting a bug? please specify Shapes version:
4.2.1
Reporting a bug? please specify Render Pipeline:
URP
Avatar
Freya Holmér creator

There's a component called Shape Group that will apply its color (multiplicatively) to all its child objects, and the components will read from. If you want to alter the colors manually, you'd have to use the Color property of each shape

Avatar
sam b
Quote from Freya Holmér

There's a component called Shape Group that will apply its color (multiplicatively) to all its child objects, and the components will read from. If you want to alter the colors manually, you'd have to use the Color property of each shape

I did not know about that component, it sounds like it fits my use case; I'll check that out. Thanks!