public void Clear() { srcFormScript = null; srcWidget = null; srcWidgetScript = null; srcWidgetBelongedListScript = null; SrcWidgetIndexInBelongedList = -1; pointerEventData = null; eventID = enUIEventID.None; inUse = false; }
public void Enable(UIListScript belongedList, int index, string name, ref stRect rect, bool selected) { belongedListScript = belongedList; m_index = index; gameObject.name = name + "_" + index.ToString(); if (m_useSetActiveForDisplay) { base.gameObject.SetActive(true); } else { m_canvasGroup.alpha = 1f; m_canvasGroup.blocksRaycasts = true; } SetComponentBelongedList(gameObject); SetRect(ref rect); ChangeDisplay(selected); DispatchOnEnableEvent(); }
public void SetBelongedList(UIListScript uiBelongedListScript, int index) { belongedListScript = uiBelongedListScript; indexInList = index; }
protected virtual void OnDestroy() { belongedFormScript = null; belongedListScript = null; widgets = null; }