I’d love to know if I can be notified in code when a material is assigned to an object. Maybe similar to ShaderGUI::AssignNewShaderToMaterial() or some Editor event hook.
What needs to happen is this:
- create a gameobject, mesh, etc.
- drag a material onto the object
- at this point I need to be notified so I can check what material it is, and what gameobject it is, and perform some work
Is this possible?