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; }
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)); } }
private void ClearContent() { ClearErrorState(); if (_content.texture != null) { if (_contentItem == null) { FreeExternal(image.texture); } _content.texture = null; } _content.Clear(); _contentItem = null; }