Strange Material/Shader Transparency Problem
Hello,
Intro
First off, I'm using Unity 2017.2, which may be the problem to begin with... Anyway, I'm having a strange issue with Unity that I've never encountered before. In my game, you build a multistory building. The building materials use a shader that cuts a transparent hole depending on the camera position and where it's focusing so you can see down to specific floors.
Issue
The material and shader works fine, but only after the object has been selected within the Scene panel. You can deselect the object afterwards, and the material will continue to render properly until Unity is restarted. It will also be broken in builds with no way of fixing it, as there's no Scene panel obviously.
Video Example
https://www.youtube.com/watch?v=5vtSvGbUxzc
Here's a quick video to give a bit of an idea of what's going on
Is there some reason that clicking on it would trigger the material to work properly? Is there something I can do when the game first starts to cause the same effect? Or maybe am I just missing something obvious?
Thank you!
Your answer
Follow this Question
Related Questions
Switching shader back and forth fixes transparency issue? 0 Answers
How to make my custom shader transparent? 0 Answers
Custom opaque shader looks transparent 0 Answers
render order of transparent Surface shader is incorrect 0 Answers
Apply a dithering transparency effect to a mesh with a dissolve effect 1 Answer