Initial commit: Unity WordConnect project
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace WordsToolkit.Scripts.Levels.Editor
|
||||
{
|
||||
public static class TreeViewItemDataExtensions
|
||||
{
|
||||
public static TreeViewItemData<T> UpdateChildren<T>(this TreeViewItemData<T> item, List<TreeViewItemData<T>> newChildren)
|
||||
{
|
||||
return new TreeViewItemData<T>(item.id, item.data, newChildren);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user