QuickOutline Asset: How do I prevent it from affecting certain children?
I'm using Chris Nolet's QuickOutline Asset from the Unity Asset Store. Unfortunately, it turns out that the Outline effect also affects Particle Systems. (My particle system is a child of the game object) It turns the 2D sprites into squares, which I would rather not happen. Can I prevent the Outline from affecting certain game objects or particle systems? Is there another way to fix this? Thanks
Answer by MetalOxide · May 19 at 10:20 AM
You can filter by component like this with using Linq: In this example, we are filtering ParticleSystem children.
renderers = GetComponentsInChildren<Renderer>().Where(e => e.GetComponent<ParticleSystem>() == null).ToArray();
Your answer

Follow this Question
Related Questions
Glowing outline with occlusion 0 Answers
Trying outline with Shader Graph 2020 causes weird glitchy effect 0 Answers
Unexpected symbol error in shader script 0 Answers
why outline is drawed only on front side of skinned mesh render 1 Answer
Highlighting Multiple Objects with an Outline Shader 0 Answers