AddVerticalGroup

This commit is contained in:
VladV 2022-01-30 19:08:53 +03:00
parent bd36cefaac
commit 6f48826943
6 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,16 @@
using TriInspector;
using TriInspector.Elements;
using TriInspector.GroupDrawers;
[assembly: RegisterTriGroupDrawer(typeof(TriVerticalGroupDrawer))]
namespace TriInspector.GroupDrawers
{
public class TriVerticalGroupDrawer : TriGroupDrawer<DeclareVerticalGroupAttribute>
{
public override TriPropertyCollectionBaseElement CreateElement(DeclareVerticalGroupAttribute attribute)
{
return new TriVerticalGroupElement();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 20ea0129773b41ea8a2f43a18da811f4
timeCreated: 1643558679

View File

@ -0,0 +1,6 @@
namespace TriInspector.Elements
{
public class TriVerticalGroupElement : TriPropertyCollectionBaseElement
{
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ec0e2c38af6f4830b3eca87e63c3248c
timeCreated: 1643558785

View File

@ -0,0 +1,14 @@
using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)]
[Conditional("UNITY_EDITOR")]
public class DeclareVerticalGroupAttribute : DeclareGroupBaseAttribute
{
public DeclareVerticalGroupAttribute(string path) : base(path)
{
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f62994cb4c86471aba39b9a0e79ae93a
timeCreated: 1643558654