자산 목록창 내 아이템 드래그에도 자산 아이템 선택이 변경되도록 수정 #16

Merged
UVCXR merged 3 commits from pgd/20250318_3 into main 2025-03-18 16:35:13 +09:00
2 changed files with 15 additions and 4 deletions
Showing only changes of commit 8c9e46de4b - Show all commits

View File

@@ -612,6 +612,14 @@ PrefabInstance:
propertyPath: m_Size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3692082455671801088, guid: c7fa5154df436e54bb0b444dfc25575d, type: 3}
propertyPath: isDraggable
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3692082455671801088, guid: c7fa5154df436e54bb0b444dfc25575d, type: 3}
propertyPath: isSiblingEditable
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3853414527505018043, guid: c7fa5154df436e54bb0b444dfc25575d, type: 3}
propertyPath: m_AnchorMax.x
value: 1
@@ -658,7 +666,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4494893725557815844, guid: c7fa5154df436e54bb0b444dfc25575d, type: 3}
propertyPath: m_Value
value: 1
value: 1.0000204
objectReference: {fileID: 0}
- target: {fileID: 5185907358101567880, guid: c7fa5154df436e54bb0b444dfc25575d, type: 3}
propertyPath: m_Maskable

View File

@@ -35,6 +35,9 @@ namespace XED.Hierarchy
public UnityEvent<List<HierarchyItem>> onSelect;
public UnityEvent<HierarchyItem, HierarchyItem> onParentChanged;
public bool isSiblingEditable;
private void Awake()
{
content = UtilityFunction.FindDeepChild(transform, "Content").GetComponent<RectTransform>();
@@ -331,7 +334,7 @@ namespace XED.Hierarchy
}
public void SetToChildItem(HierarchyItem srcItem, HierarchyItem destItem)
{
if (srcItem == null || destItem == null)
if (srcItem == null || destItem == null || !isSiblingEditable)
return;
if (selectedItems.Contains(srcItem))
{
@@ -384,7 +387,7 @@ namespace XED.Hierarchy
}
public void SetToNextSiblingItem(HierarchyItem srcItem, HierarchyItem destItem)
{
if (srcItem == null || destItem == null)
if (srcItem == null || destItem == null || !isSiblingEditable)
return;
if (selectedItems.Contains(srcItem))
{
@@ -437,7 +440,7 @@ namespace XED.Hierarchy
}
public void SetToPriorSiblingItem(HierarchyItem srcItem, HierarchyItem destItem)
{
if (srcItem == null || destItem == null)
if (srcItem == null || destItem == null || !isSiblingEditable)
return;
if (selectedItems.Contains(srcItem))
{