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

Merge objects in the same layer #12

Closed
Noxalus opened this issue Aug 27, 2020 · 7 comments
Closed

Merge objects in the same layer #12

Noxalus opened this issue Aug 27, 2020 · 7 comments
Assignees
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@Noxalus
Copy link

Noxalus commented Aug 27, 2020

Hello!

I just discovered your work, and it seems pretty neat!

I would like to use this outline effect for my personal project to draw outline around multiple floor tiles as post process, and it seems pretty suitable for this purpose.

But, as each tile is a specific GameObject, I would like to avoid outlines between two tiles side by side and only have the outline around them.

Here is an example of what I would like with 2 cubes:

When they are not side by side:
image

When they are side by side:
image

Is there an easy way to do that?

Thanks in advance for your answer! 😄

@Arvtesh
Copy link
Owner

Arvtesh commented Aug 27, 2020

Hello @Noxalus, nice to meet you! Try making all the cubes children of another game object, and then only draw outlines for the parent game object.

@Arvtesh Arvtesh added the question Further information is requested label Aug 27, 2020
@Noxalus
Copy link
Author

Noxalus commented Aug 27, 2020

Wow, very nice! 👍

Thank you so much for your help and for this tool, and sorry for the dumb question :/

@Noxalus Noxalus closed this as completed Aug 27, 2020
@Noxalus
Copy link
Author

Noxalus commented Aug 27, 2020

I re-open this issue quickly as it's related, but if I have my parent game object in the outline effect, it will outline the children merging them properly. But if I add a new child to this parent, it won't be taken into account 😞

Do you know why? Do I have to call a method to refresh the outline effect? 🤔

@Noxalus Noxalus reopened this Aug 27, 2020
@Arvtesh
Copy link
Owner

Arvtesh commented Aug 27, 2020

If you're using OutlineBehaviour, there is Update renderers flag you can set in inspector.

@Avol
Copy link

Avol commented Sep 1, 2020

Would be cool to have a feature to merge all outlines into single one without having to layer with parent game object. I have an issue where many game objects move around and storing them under same parent would cause many transform problems. For example all objects within one OutlineLayer coul merge as if it were under 1 parent gameobject?

@Arvtesh Arvtesh added the enhancement New feature or request label Sep 2, 2020
@Arvtesh Arvtesh added this to the 0.8.1 milestone Sep 2, 2020
@Arvtesh Arvtesh self-assigned this Sep 2, 2020
@Arvtesh
Copy link
Owner

Arvtesh commented Sep 2, 2020

Seems an easy enhancement, I'm scheduling this for next release.

@Avol
Copy link

Avol commented Sep 2, 2020

Awesome! This will save a lot of time and performance issues for my project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants