// ~~ private // ~ Non-Static // ~~ public public void Refresh( IAttributeData aData = null, IPortraitData pData = null, IDescriptionData dData = null ) { Clear(); _rootFlexRect = ColumnGridFlexibleRect.GetRect(ViewData, 2); _rootFlexRect.transform.SetParent(ContentRect.transform, false); bool showPortrait = pData == null ? false : true; bool showAttributes = aData == null ? false : true; bool showDescription = dData == null ? false : true; if (showPortrait) { RefreshPortrait(pData, _rootFlexRect); } if (showAttributes) { RefreshAttributes(aData, _rootFlexRect); } if (showDescription) { RefreshDescription(dData, _rootFlexRect); } _rootFlexRect.Refresh(); }
protected override void HandleViewDataChanged(ViewData viewData) { base.HandleViewDataChanged(viewData); if (_rootFlexRect) { _rootFlexRect.Refresh(); } }