-
Notifications
You must be signed in to change notification settings - Fork 91
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
Explicitly set renderers on OutlineBehaviour #32
Comments
I was able to overcome this limitation by writing my own script based on |
You can set ignore layers value to exclude objects from rendering. OutlineBehaviour's purpose is rendering outline of a game object it is attached to. There are other tools if you need to do more complex outlines (like OutlineEffect + OutlineLayerCollection). Did you try them? |
Yeah, but I'm trying to avoid abusing layers.
I looked at them but I didn't like this approach. I have a complete project that uses OutlineBehaviour-like script so for me it was easier to completely rewrite already used script with code from OutlineBehaviour with some changes to support explicit renderers setup. This way migration was easy as writing this script and not manually change every use of the old script. . |
There is |
Yes, I know that, I just don't see any reason why not to let users explicitly specify OutlineRenderers from the inspector. Just my opinion :) As I wrote before, I solved my problem by writing my own script based on OutlineBehaviour. It was easy because you really nailed it, system design is so clean and decoupled. |
The reason is editor code required for such things, which I really hate writing :). |
Ahh yes:)) Understandable) |
Thank you, I think that's not nessesary. Most likely I'll bump minimum Unity version to 2020 LTS and use built-in arrays (they are presented as reorderable lists out of the box). |
@Arvtesh It doesn't seem like this has happened yet. Do you have any plans to follow through? I have the same use case as @STARasGAMES and would greatly appreciate the change. |
Yes, as soon as I have time. Cannot give any estimates though. |
Is there a way to set renderers from the inspector?
I would like to control this. Sometimes not all child objects should be outlined. Sometimes renderers are not child objects. I think that makes sense.
The text was updated successfully, but these errors were encountered: