Beispiel #1
0
 private void OnDisable()
 {
     if (originTexture)
     {
         Object.DestroyImmediate(originTexture);
     }
     if (drawTextureInfo != null)
     {
         drawTextureInfo.Dispose();
         drawTextureInfo = null;
     }
 }
Beispiel #2
0
 private void OnEnable()
 {
     drawTextureInfo = new FlipYTextureResolver();
     Reflesh(GetProfilerActiveFrame());
 }