private void OnEnable() { //if (!RealtimeReflections.ImageEffectHelper.IsSupported(shader, false, true, this)) //{ // enabled = false; // return; //} camera_.depthTextureMode |= DepthTextureMode.Depth; kFinalReflectionTexture = Shader.PropertyToID("_FinalReflectionTexture"); kTempTexture = Shader.PropertyToID("_TempTexture"); GameObject goRealtimeReflections = GameObject.Find("RealtimeReflections"); componentUpdateReflectionTextures = goRealtimeReflections.GetComponent <UpdateReflectionTextures>(); goCreateReflectionLookupTextures = new GameObject("CreateReflectionLookupTextures"); goCreateReflectionLookupTextures.transform.SetParent(goRealtimeReflections.transform); componentCreateReflectionLookupTextures = goCreateReflectionLookupTextures.AddComponent <CreateReflectionLookupTextures>(); }