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.
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 newOutline
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 theOutlineEffect
component on your camera for this to change any behavior.