static void OnEditorPlay()
 {
     if (editorDecals != null)
     {
         editorDecals.RemoveAllCameras();
     }
 }
Пример #2
0
 public void Dispose()
 {
     if (!_disposed)
     {
         _disposed = true;
         if (_decalRenderer != null)
         {
             _decalRenderer.RemoveAllCameras();
             _decalRenderer = null;
         }
         if (_decals != null)
         {
             while (_decals.Count > 0)
             {
                 _decals[0].Dispose();
             }
             _decals.Clear();
             _decals = null;
         }
     }
 }