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

Unity Mesh Outline shows nothing in game #1

Open
TheoGrimond opened this issue Aug 1, 2018 · 1 comment
Open

Unity Mesh Outline shows nothing in game #1

TheoGrimond opened this issue Aug 1, 2018 · 1 comment

Comments

@TheoGrimond
Copy link

Hi !
I am very interested in this shader (I've been looking for one that resembles the Selection Outline in the Editor). I followed all the steps (adding OutlinePostEffect to the Camera and the Shaders to that Script) but I still do not see any output in game.
Do you know what might be the problem ?

Here is a screenshot of my editor when running the Game (with Camera selected in the Inspector for you to check the script):
image

@MagicalGemini
Copy link

MagicalGemini commented Sep 7, 2018

@TheoGrimond I can see the outline. I think you are not change the layer of the select object to "Outline". Please check the code from the screenshot。The camera will cull all object except the "Outline" mask.
image

So what you need to do is to change the layer of the select object to Online in the Inspector or in the code.
image

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

No branches or pull requests

2 participants