하이어라키 디자인 수정
This commit is contained in:
@@ -224,7 +224,7 @@ namespace Studio.HierarchyTree
|
||||
if (w > maxWidth) maxWidth = w;
|
||||
itemUI.transform.SetParent(content, false);
|
||||
|
||||
float yPos = -((float)i + 0.5f) * itemHeight;
|
||||
float yPos = -((float)i + 0.5f) * itemHeight - 2f;
|
||||
itemUI.GetComponent<RectTransform>().anchoredPosition = new Vector2(0, yPos);
|
||||
|
||||
activeItems.Add(itemUI);
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Studio.HierarchyTree
|
||||
canvas = GetComponentInParent<Canvas>();
|
||||
text = GetComponentInChildren<TMP_Text>();
|
||||
scrollRect = GetComponentInParent<HierarchyScrollRect>();
|
||||
scrollRect.itemPopup = gameObject;
|
||||
//scrollRect.itemPopup = gameObject;
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace Studio.HierarchyTree
|
||||
public bool isSelected;
|
||||
private void Awake()
|
||||
{
|
||||
backgroundImage = GetComponent<Image>();
|
||||
backgroundImage = transform.Find("Hover").GetComponent<Image>();
|
||||
}
|
||||
public int SetItemData(HierarchyItem item)
|
||||
{
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace Studio.HierarchyTree
|
||||
StopCoroutine(coroutinePendPopup);
|
||||
coroutinePendPopup = null;
|
||||
}
|
||||
itemPopup.SetActive(false);
|
||||
//itemPopup.SetActive(false);
|
||||
//Add to Other Item Hierarchy
|
||||
HierarchyScrollItemUI itemUI = GetTargetItemUI(eventData);
|
||||
if (itemUI != null && sourceItem != null)
|
||||
@@ -166,7 +166,7 @@ namespace Studio.HierarchyTree
|
||||
StopCoroutine(coroutinePendPopup);
|
||||
coroutinePendPopup = null;
|
||||
}
|
||||
itemPopup.SetActive(false);
|
||||
//itemPopup.SetActive(false);
|
||||
}
|
||||
else if (eventData.button == PointerEventData.InputButton.Right)
|
||||
{
|
||||
@@ -208,7 +208,7 @@ namespace Studio.HierarchyTree
|
||||
IEnumerator CoroutinePendPopup()
|
||||
{
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
itemPopup.SetActive(true);
|
||||
//itemPopup.SetActive(true);
|
||||
yield return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user