Skip to main content

Shader is completely ignored and the object is not rendered

This is likely due to an engine issue with the rendering depth.

Possible solution:

  • Add the following line Shader.EnableKeyword( keyword ) in the Awake() method to enable the keyword that isn’t synced.

For example:

private void Awake () {
Shader.EnableKeyword( "DIRECTIONAL" );
// “DIRECTIONAL” is the keyword that isn’t synced in this case
}