Arvtesh / UnityFx.Outline

Screen-space outlines for Unity3d.
MIT License
1.27k stars 90 forks source link

Need a better method to prevent children from receiving outlines #57

Open insominx opened 2 years ago

insominx commented 2 years ago

The current method requires using layer masks which is fine if an application is not using layers for any other functionality. Unfortunately for most real-world applications this is not the case. There should instead be an easy way to toggle on/off this kind of behavior.

Arvtesh commented 1 year ago

There is an option to only render outlines for specific game objects, this looks like what you need.

tony-topper commented 9 months ago

I have an issue that could be described this way.

When using the OutlineLayerCollection functionality, any renderer on child GameObjects also receives the outlines, not just the renderer directly on the GameObject. While I can think of cases where you'd want this, it would be great to have an option in the OutlineSettings to include children or not. This was easy to do when just using the LayerMask method, but it doesn't work when using the OutlineLayerCollection.