shader surfaxe unity in scene but not in game code example

Example: shader surfaxe unity in scene but not in game

using UnityEngine;  [AddComponentMenu("Effects/SetRenderQueue")] [RequireComponent(typeof(Renderer))]  public class SetRenderQueue : MonoBehaviour {     [Tooltip("Background=1000, Geometry=2000, AlphaTest=2450, Transparent=3000, Overlay=4000")]     public int queue = 1;      public int[] queues;      void Start() {         Renderer renderer = GetComponent<Renderer>();         if (!renderer || !renderer.sharedMaterial || queues == null)             return;         renderer.sharedMaterial.renderQueue = queue;         for (int i = 0; i < queues.Length && i < renderer.sharedMaterials.Length; i++)             renderer.sharedMaterials[i].renderQueue = queues[i];     }      void OnValidate() {         Start();     }  }