하이어라키 디자인 수정

This commit is contained in:
geondo55
2025-05-29 15:56:38 +09:00
parent e5bac3ed1a
commit af91e87bf3
8 changed files with 1859 additions and 1746 deletions

View File

@@ -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);

View File

@@ -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);
}

View File

@@ -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)
{

View File

@@ -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;
}