드래그앤 드랍 개발 중

This commit is contained in:
logonkhi
2025-10-29 20:12:11 +09:00
parent 47ca525718
commit e245ee9f96
8 changed files with 417 additions and 1266 deletions

View File

@@ -9,18 +9,19 @@ public class HierarchySample : MonoBehaviour
void Start()
{
for (int i = 0; i < 1; i++)
for (int i = 0; i < 10; i++)
{
TreeListItemData itemData = new TreeListItemData("Item " + i);
int len = Random.Range(1, 5);
int len = 0;// Random.Range(1, 5);
Debug.Log("len: " + len);
for (int j = 0; j < len; j++)
{
itemData.Children.Add(new TreeListItemData("Item " + i + "." + j));
for (int k = 0; k < Random.Range(0, 3); k++)
itemData.AddChild(new TreeListItemData("Item " + i + "." + j));
int childLen = 3;// Random.Range(0, 3);
for (int k = 0; k < childLen; k++)
{
itemData.Children[j].Children.Add(new TreeListItemData("Item " + i + "." + j + "." + k));
itemData.Children[j].AddChild(new TreeListItemData("Item " + i + "." + j + "." + k));
}
}
hierarchyWindow.AddItem(itemData);

View File

@@ -945,9 +945,13 @@ PrefabInstance:
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2240268413977263779, guid: a030935af8c62d748b6fe3d01bd4851f, type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2240268413977263779, guid: a030935af8c62d748b6fe3d01bd4851f, type: 3}
propertyPath: m_SizeDelta.x
value: 20
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2240268413977263779, guid: a030935af8c62d748b6fe3d01bd4851f, type: 3}
propertyPath: m_SizeDelta.y
@@ -1049,11 +1053,20 @@ PrefabInstance:
propertyPath: m_Name
value: Root
objectReference: {fileID: 0}
- target: {fileID: 6986221832819843173, guid: a030935af8c62d748b6fe3d01bd4851f, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6986221832819843173, guid: a030935af8c62d748b6fe3d01bd4851f, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
- target: {fileID: 7936280494337962146, guid: a030935af8c62d748b6fe3d01bd4851f, type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 7936280494337962146, guid: a030935af8c62d748b6fe3d01bd4851f, type: 3}
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []