cakeslice / Outline-Effect

Outline Image Effect for Unity
MIT License
1.43k stars 198 forks source link

Make the enabling of all Outline instances optional #30

Closed Claytonious closed 4 years ago

Claytonious commented 6 years ago

This makes it possible to have disabled Outline components on your target objects in a scene at runtime and only enable them conditionally as needed. This allows you to turn outlines on and off without any allocations at runtime (as opposed to adding/destroying new Outline components at runtime when objects need to turn outlining on/off).

The default is true, so out-of-the-box, this PR doesn't change any behavior. You have to explicitly toggle this new option in the inspector of the OutlineEffect component on your camera for this to change any behavior.