/// <summary> /// 设置子物体UI /// </summary> /// <param name="index"></param> /// <param name="isUI"></param> public void SetChildItemIsUI(int index, bool isUI) { if (index >= childItem.Count) { return; } UIDepth temp = UIDepth.Add(childItem[index]); temp.IsUI = isUI; }
/// <summary> /// 添加父级 /// </summary> /// <param name="order"></param> public void ApplyParentItem() { UIDepth temp = UIDepth.Add(ParentItem); if (temp != null) { temp.IsUI = true; temp.Order = parentOrder; } }
/// <summary> /// 添加子元素 /// </summary> /// <param name="obj"></param> public void ApplyChildItem(int index) { if (index >= childItem.Count) { return; } UIDepth temp = UIDepth.Add(childItem[index]); if (temp != null) { temp.SetIsUI(); temp.Order = parentOrder + index * 1; temp = null; } }