예제 #1
0
 private void OnEnable()
 {
     if (!ME_ImageEffectHelper.IsSupported(shader, true, false, this))
     {
         enabled = false;
     }
 }
예제 #2
0
 private void OnEnable()
 {
     if (ME_ImageEffectHelper.IsSupported(this.shader, true, false, (MonoBehaviour)this))
     {
         return;
     }
     ((Behaviour)this).set_enabled(false);
 }