mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
AddVerticalGroup
This commit is contained in:
parent
bd36cefaac
commit
6f48826943
16
Editor.Extras/GroupDrawers/TriVerticalGroupDrawer.cs
Normal file
16
Editor.Extras/GroupDrawers/TriVerticalGroupDrawer.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 20ea0129773b41ea8a2f43a18da811f4
|
||||
timeCreated: 1643558679
|
6
Editor/Elements/TriVerticalGroupElement.cs
Normal file
6
Editor/Elements/TriVerticalGroupElement.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace TriInspector.Elements
|
||||
{
|
||||
public class TriVerticalGroupElement : TriPropertyCollectionBaseElement
|
||||
{
|
||||
}
|
||||
}
|
3
Editor/Elements/TriVerticalGroupElement.cs.meta
Normal file
3
Editor/Elements/TriVerticalGroupElement.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ec0e2c38af6f4830b3eca87e63c3248c
|
||||
timeCreated: 1643558785
|
14
Runtime/Attributes/DeclareVerticalGroupAttribute.cs
Normal file
14
Runtime/Attributes/DeclareVerticalGroupAttribute.cs
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
3
Runtime/Attributes/DeclareVerticalGroupAttribute.cs.meta
Normal file
3
Runtime/Attributes/DeclareVerticalGroupAttribute.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f62994cb4c86471aba39b9a0e79ae93a
|
||||
timeCreated: 1643558654
|
Loading…
Reference in New Issue
Block a user