public virtual void MarkAsChanged()
{
mChanged = true;
// If we're in the editor, update the panel right away so its geometry gets updated.
if (mPanel != null && enabled && NGUITools.GetActive(gameObject) && !Application.isPlaying && material != null)
{
mPanel.AddWidget(this);
CheckLayer();
#if UNITY_EDITOR
// Mark the panel as dirty so it gets updated
UnityEditor.EditorUtility.SetDirty(mPanel.gameObject);
#endif
}
}