Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the enabling of all Outline instances optional #30

Merged
merged 1 commit into from
Oct 11, 2019

Conversation

Claytonious
Copy link
Contributor

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.

@JimmyCushnie JimmyCushnie mentioned this pull request Oct 10, 2019
@cakeslice cakeslice merged commit a6e243b into cakeslice:master Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants