Outline from wiki and other does not work...

I’m trying to find a way of marking an object as selected. The best way I see is to 'outline" it, in the same way that unity editor does.

So , I’ve looked for outline and found the outline/silhouetted shader in unity wiki.
It does not work, I tried several variants, some of them removing the error in the script, but in fact it did nothing to my object.
I am creating a shader and pasting the shader code to it and then saving again, creating a new material and assign this material to a sphere. I did it from a new scene even from a new project, nothing happens.

When i say nothing happens, I said there’s no outline. The color of the object changes, when I change the shader colors, but no outline.

I tried this : ‘Nihilist Dev: Outline in Unity with mesh transparency.

it does not work.

I tried this ‘[FREE] [OPEN-SOURCE] Outline Effect - Community Showcases - Unity Discussions

And even the example scene does not work.

this is the original image:

below is the same scene running in unity:

Maybe there must be something that has been altered in the new version of unity?

Thanks for helping!

Paulo

I checked GitHub - cakeslice/Outline-Effect: Outline Image Effect for Unity and the author updated for 5.6 so it should work.

Thanks for trying to help me, but… no It does not work - again using the demo that came with this asset.

Paulo

bump…

The shader for our editor outline is here: Selection outline - Unity Engine - Unity Discussions

Try this video but the technique is with using shader graph :