I thought the collider caused the problem, but not. If I remove the collider component, it doesn’t show the outline. But when I put away the object, it’s good.
Where did the outline script you’re using come from? Is it something you wrote, or something you bought, or something you downloaded for free someplace?
If it’s something you write, you’re going to need to tell us how it works.
If it’s something you bought, you’re going to need to ask the person who you bough it from.
If it’s something you got for free, you’re going to need to link to where you got it from, and maybe ask the person whom wrote it.
For me it works ok in editor, easy to implement, simple, but enogh for my needs. Problem is that it doesn’t work in build (maybe script execution order? IDK, I’m more artist than programmer).
Maybe late, but I found a solution, you should use outline.enabled = false on the other game objects that you dont look at and enable it back when you look at it !