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

Multiple materials #10

Open
Jennilein1991 opened this issue Sep 15, 2018 · 2 comments
Open

Multiple materials #10

Jennilein1991 opened this issue Sep 15, 2018 · 2 comments

Comments

@Jennilein1991
Copy link

Hello :),
I have a model node with about 10 different child attached to it. Some of these childs have one material and some two attached. When I translate my plane object over this model, the childs with one material get hidden and the others were still visible.

image

image

image

Any idea how this can happen?

Jenni

@Jennilein1991
Copy link
Author

I tried the solution in #2 , but it does not work :/

@Jennilein1991
Copy link
Author

I found out that the following option in the material
image

causes that

GetComponent().sharedMaterial.shader = Shader.Find("Custom/StandardClippable");

does not overwrite the shader.

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

1 participant