Exemple #1
0
 void OnDestroy()
 {
     if (bloom != null)
     {
         bloom.Dispose();
     }
 }
Exemple #2
0
        void OnDestroy()
        {
            if (bloom != null)
            {
                bloom.Dispose();
            }
            DestroyFunc(displayMaterial);
            var meshFilter = GetComponent <MeshFilter>();

            DestroyFunc(meshFilter.sharedMesh);
        }
        void OnDestroy()
        {
            if (bloom != null)
            {
                bloom.Dispose();
            }
            RenderTexture.ReleaseTemporary(bloomTarget);
            DestroyFunc(displayMaterial);
            var meshFilter = GetComponent <MeshFilter>();

            DestroyFunc(meshFilter.sharedMesh);
        }