LeavePaintingMode() public method

离开绘画模式
public LeavePaintingMode ( int requestorId ) : void
requestorId int
return void
        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;
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     if (_target != null && !(_target is Image) && !(_target is MovieClip))
     {
         _target.LeavePaintingMode(1);
     }
     _target = null;
 }
Exemplo n.º 3
0
        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));
     }
 }
Exemplo n.º 5
0
        public void Dispose()
        {
            _target.LeavePaintingMode(1);
            _target.onPaint -= OnRenderImage;
            _target          = null;

            if (Application.isPlaying)
            {
                Material.Destroy(_blitMaterial);
            }
            else
            {
                Material.DestroyImmediate(_blitMaterial);
            }
        }
Exemplo n.º 6
0
        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;
        }