Adaug proiectul Unity

This commit is contained in:
2026-11-01 23:39:55 +02:00
parent cb14d9d37d
commit 863eac8f2c
23463 changed files with 5412601 additions and 0 deletions
@@ -0,0 +1,28 @@
using UnityEditor.IMGUI.Controls;
using PlasticGui;
using Unity.PlasticSCM.Editor.Views.PendingChanges;
#if UNITY_6000_2_OR_NEWER
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
#endif
namespace Unity.PlasticSCM.Editor.UI.Tree
{
internal static class TreeViewItemExtensions
{
internal static IPlasticTreeNode GetPlasticTreeNode(this TreeViewItem item)
{
if (item is ChangelistTreeViewItem)
{
return ((ChangelistTreeViewItem)item).Changelist;
}
if (item is ChangeCategoryTreeViewItem)
{
return ((ChangeCategoryTreeViewItem)item).Category;
}
return ((ChangeTreeViewItem)item).ChangeInfo;
}
}
}