How EffectComposer is used in child objects

I declare two Mesh objects that are parent-child, and when I want to use EffectComposer post-processing to highlight the outline of the child object and not highlight the parent object, I add the child object to selectedObjects, but this doesn’t achieve the desired effect. Sub-objects cannot be highlighted separately. What is the reason and how should it be solved?

If you mean EffectComposer from react-postprocessing - then it’s only top-level, regardless where you’d actually put it within the hierarchy. You can’t limit scope of postprocessing pass by appending EffectComposer only to a specific group / object.

Hard to help without seeing the code - if you actually put the list of objects to be outlined in selectedObjects prop, then it’s a typo since that prop is called selection (docs) ?