highlight selected object
Highlighting selected objects by click which has multiple material in it Hello Guys, i have a few objects in my scene which are using multiple material but these materials are also getting used by some other objects.now i want to highlight them in run-time by mouse-click.for highlighting i don't want to change their color or something like that.i want to give them a border outline just like when we select any object in scene window.if i am trying to change the shader or material with that object other object's color is also getting affected.any kind of help or knowledge transfer will be appreciated a lot.
As you are modifying the shader, which is linked to a material, you'll need a unique material for each item if you want to do it that way.
However, there are ways to do this with sprite swaps that can be done easily with the button component.
Add a button component to the object. Select sprite swap as the transition, and assign the normal and highlighted sprites.