Hello!
From the documentation, there is an example of how to add GameObject to a specific layer from an OutlineEffect component:
var outlineEffect = Camera.main.GetComponent<OutlineEffect>();
outlineEffect.AddGameObject(myGo);
My question is: how can we remove this GameObject from the outline effect when we don't want the outline anymore?
In my case, I would like to outline the object when it's selected, and hide the outline if it's not selected anymore.
It couldn't be needed to have a method like this to do what I want, but I don't know how to do it 🤔
Thanks in advance for your help!
Hello!
From the documentation, there is an example of how to add GameObject to a specific layer from an OutlineEffect component:
My question is: how can we remove this GameObject from the outline effect when we don't want the outline anymore?
In my case, I would like to outline the object when it's selected, and hide the outline if it's not selected anymore.
It couldn't be needed to have a method like this to do what I want, but I don't know how to do it 🤔
Thanks in advance for your help!