Clear() public method

public Clear ( ) : void
return void
示例#1
0
        private void ClearContent()
        {
            ClearErrorState();

            if (_activeObject != null)
            {
                if (_image == _activeObject)
                {
                    if (_image.texture != null)
                    {
                        if (_contentItem == null)
                        {
                            FreeExternal(image.texture);
                        }
                        _image.texture = null;
                    }
                }
                else if (_movieClip == _activeObject)
                {
                    _movieClip.Clear();
                }
                _activeObject = null;
            }

            _contentItem = null;
        }
示例#2
0
 static public int Clear(IntPtr l)
 {
     try {
         FairyGUI.MovieClip self = (FairyGUI.MovieClip)checkSelf(l);
         self.Clear();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#3
0
        private void ClearContent()
        {
            ClearErrorState();

            if (_content.texture != null)
            {
                if (_contentItem == null)
                {
                    FreeExternal(image.texture);
                }
                _content.texture = null;
            }

            _content.Clear();
            _contentItem = null;
        }