public void Dispose() { if (!_target.isDisposed) { if ((_target is Image) || (_target is MovieClip)) { _target.graphics.materialKeywords = null; } else { //恢复原来的材质 _target.paintingGraphics.material = _savedMaterial; _target.LeavePaintingMode(1); } } if (_material != null) { Material.Destroy(_material); } _savedMaterial = null; _material = null; _target = null; }
public void Dispose() { if (_target != null && !(_target is Image) && !(_target is MovieClip)) { _target.LeavePaintingMode(1); } _target = null; }
public void Dispose() { if ((_target is Image) || (_target is MovieClip)) { _target.graphics.materialKeywords = null; } else { _target.LeavePaintingMode(1); } _target = null; }
static public int LeavePaintingMode(IntPtr l) { try { FairyGUI.DisplayObject self = (FairyGUI.DisplayObject)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); self.LeavePaintingMode(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
public void Dispose() { _target.LeavePaintingMode(1); _target.onPaint -= OnRenderImage; _target = null; if (Application.isPlaying) { Material.Destroy(_blitMaterial); } else { Material.DestroyImmediate(_blitMaterial); } }
public void Dispose() { if (!_target.isDisposed) { if ((_target is Image) || (_target is MovieClip)) { _target.graphics.ToggleKeyword("COLOR_FILTER", false); } else { _target.paintingGraphics.ToggleKeyword("COLOR_FILTER", false); _target.LeavePaintingMode(1); } } _target = null; }