Skip to content

Remove object from layer? #15

@Noxalus

Description

@Noxalus

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!

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions