First commit
This commit is contained in:
15
Editor/Attributes/CustomInspectorAttribute.cs
Normal file
15
Editor/Attributes/CustomInspectorAttribute.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Misaki.GraphView.Editor
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
|
||||
public class CustomInspectorAttribute : Attribute
|
||||
{
|
||||
public Type InspectorType { get; }
|
||||
|
||||
public CustomInspectorAttribute(Type inspectorType)
|
||||
{
|
||||
InspectorType = inspectorType;
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Editor/Attributes/CustomInspectorAttribute.cs.meta
Normal file
3
Editor/Attributes/CustomInspectorAttribute.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d9bb267f78e74942913e36a305e204e4
|
||||
timeCreated: 1730383976
|
||||
15
Editor/Attributes/InspectorInputAttribute.cs
Normal file
15
Editor/Attributes/InspectorInputAttribute.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Misaki.GraphView.Editor
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class InspectorInputAttribute : Attribute
|
||||
{
|
||||
public string Name { get; }
|
||||
|
||||
public InspectorInputAttribute(string name = null)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Editor/Attributes/InspectorInputAttribute.cs.meta
Normal file
3
Editor/Attributes/InspectorInputAttribute.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8b4c3a04f1064d838c6e1adc07fcb48d
|
||||
timeCreated: 1730111403
|
||||
Reference in New Issue
Block a user