summaryrefslogtreecommitdiff
path: root/Assets/Plugins/AdvancedInspector/Attributes
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Plugins/AdvancedInspector/Attributes')
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/AdvancedInspector.cs60
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/AdvancedInspector.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Angle.cs34
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Angle.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Background.cs100
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Background.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Bypass.cs13
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Bypass.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Collection.cs151
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Collection.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Constructor.cs82
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Constructor.cs.meta12
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/CreateDerived.cs15
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/CreateDerived.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Descriptor.cs262
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Descriptor.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/DisplayAsParent.cs10
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/DisplayAsParent.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs11
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Enum.cs68
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Enum.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs46
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/FieldEditor.cs26
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/FieldEditor.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Group.cs110
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Group.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Help.cs199
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Help.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Inspect.cs195
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Inspect.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Method.cs37
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Method.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/NoPicker.cs13
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/NoPicker.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs40
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/ReadOnly.cs84
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/ReadOnly.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Restrict.cs122
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Restrict.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/RuntimeResolve.cs85
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/RuntimeResolve.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Space.cs48
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Space.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Style.cs43
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Style.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Tab.cs25
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Tab.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/TextField.cs87
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/TextField.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Title.cs111
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Title.cs.meta8
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Toolbar.cs108
-rw-r--r--Assets/Plugins/AdvancedInspector/Attributes/Toolbar.cs.meta8
56 files changed, 0 insertions, 2413 deletions
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/AdvancedInspector.cs b/Assets/Plugins/AdvancedInspector/Attributes/AdvancedInspector.cs
deleted file mode 100644
index 047710d5..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/AdvancedInspector.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Turn off the default Inspector in favor or the Advanced one.
- /// If false, both may be draw if some members are flagged "Inspect", one after the other...
- /// </summary>
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, Inherited = true)]
- public class AdvancedInspectorAttribute : Attribute
- {
- private bool inspectDefaultItems = false;
-
- /// <summary>
- /// If true, the Advanced Inspector inspect all the item the default Inspector does without adding the [Inspect] attribute.
- /// You can still add item that Unity would not display by adding the [Inspect] attribute.
- /// </summary>
- public bool InspectDefaultItems
- {
- get { return inspectDefaultItems; }
- set { inspectDefaultItems = value; }
- }
-
- private bool showScript = true;
-
- /// <summary>
- /// Show or hide the script field at the top of the inspector.
- /// The script field allow to change the type of the object.
- /// </summary>
- public bool ShowScript
- {
- get { return showScript; }
- set { showScript = value; }
- }
-
- private bool expandable = true;
-
- /// <summary>
- /// Is this object expandable in a in-lined context?
- /// </summary>
- public bool Expandable
- {
- get { return expandable; }
- set { expandable = value; }
- }
-
- public AdvancedInspectorAttribute() { }
-
- public AdvancedInspectorAttribute(bool inspectDefaultItems)
- {
- this.inspectDefaultItems = inspectDefaultItems;
- }
-
- public AdvancedInspectorAttribute(bool inspectDefaultItems, bool showScript)
- {
- this.showScript = showScript;
- this.inspectDefaultItems = inspectDefaultItems;
- }
- }
-}
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/AdvancedInspector.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/AdvancedInspector.cs.meta
deleted file mode 100644
index c0c82e2e..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/AdvancedInspector.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 37170739434a8a74bb0aae3f57b1ed64
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs b/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs
deleted file mode 100644
index 8b80ade5..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Turns a float/int into a spinning knob.
- /// Because... Fancy.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class AngleAttribute : Attribute, IListAttribute
- {
- private float snap = -1;
-
- /// <summary>
- /// Makes the control snap to the multiple of that value
- /// Default; -1. Negative values turn this behaviour off.
- /// </summary>
- public float Snap
- {
- get { return snap; }
- }
-
- public AngleAttribute() { }
-
- /// <summary>
- /// If snap is -1, the snap is disable.
- /// Snap makes the wheel "stick" to multiple of a fixed value.
- /// </summary>
- public AngleAttribute(float snap)
- {
- this.snap = snap;
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs.meta
deleted file mode 100644
index 1afd5dc4..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Angle.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: ce761f6d5740bc9438033f37b24d3923
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Background.cs b/Assets/Plugins/AdvancedInspector/Attributes/Background.cs
deleted file mode 100644
index e5ade555..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Background.cs
+++ /dev/null
@@ -1,100 +0,0 @@
-using System;
-using UnityEngine;
-using System.Reflection;
-using System.Collections.Generic;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Changes the color of the background of an expandable item.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Struct)]
- public class BackgroundAttribute : Attribute, IRuntimeAttribute<Color>
- {
- public delegate Color BackgroundDelegate();
- public delegate Color BackgroundStaticDelegate(BackgroundAttribute background, object instance, object value);
-
- private Color color = Color.clear;
-
- /// <summary>
- /// Give this item's background a color.
- /// </summary>
- public Color Color
- {
- get { return color; }
- set { color = value; }
- }
-
- #region IRuntime Implementation
- private string methodName = "";
-
- public string MethodName
- {
- get { return methodName; }
- set { methodName = value; }
- }
-
- public Type Template
- {
- get { return typeof(BackgroundDelegate); }
- }
-
- public Type TemplateStatic
- {
- get { return typeof(BackgroundStaticDelegate); }
- }
-
- private List<Delegate> delegates = new List<Delegate>();
-
- public List<Delegate> Delegates
- {
- get { return delegates; }
- set { delegates = value; }
- }
-
- public Color Invoke(int index, object instance, object value)
- {
- if (delegates.Count == 0 || index >= delegates.Count)
- return color;
-
- try
- {
- if (delegates[index].Target == null)
- {
- return (Color)delegates[index].DynamicInvoke(this, instance, value);
- }
- else
- {
- return (Color)delegates[index].DynamicInvoke();
- }
- }
- catch (Exception e)
- {
- if (e is TargetInvocationException)
- e = ((TargetInvocationException)e).InnerException;
-
- Debug.LogError(string.Format("Invoking a method to retrieve a Background attribute failed. The exception was \"{0}\".", e.Message));
- return color;
- }
- }
- #endregion
-
- public BackgroundAttribute(string methodName)
- {
- this.methodName = methodName;
- }
-
- public BackgroundAttribute(Delegate method)
- {
- this.delegates.Add(method);
- }
-
- public BackgroundAttribute(float r, float g, float b)
- : this(r, g, b, 1) { }
-
- public BackgroundAttribute(float r, float g, float b, float a)
- {
- this.color = new Color(r, g, b, a);
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Background.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Background.cs.meta
deleted file mode 100644
index 71c26ea6..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Background.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 4b99ed308d9ecd94eac01d3045a59165
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Bypass.cs b/Assets/Plugins/AdvancedInspector/Attributes/Bypass.cs
deleted file mode 100644
index 3419ebb6..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Bypass.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Since internal Unity classes are not "Advanced Inspector" friendly,
- /// this attribute force their own members to be exposed without the need of "InspectAttribute".
- /// Be careful, all public property/fields will be exposed in a recursive manner.
- /// This may expose stuff that were not meant to be exposed.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class BypassAttribute : Attribute, IListAttribute { }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Bypass.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Bypass.cs.meta
deleted file mode 100644
index fb65f729..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Bypass.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: eae36bd4c4e7de04d920900da8944a23
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Collection.cs b/Assets/Plugins/AdvancedInspector/Attributes/Collection.cs
deleted file mode 100644
index 2e9f870a..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Collection.cs
+++ /dev/null
@@ -1,151 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// When affixes to a collection, prevent this collection's size to be modified by the inspector.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class CollectionAttribute : Attribute, IListAttribute
- {
- private int size = -1;
-
- /// <summary>
- /// Size of this collection.
- /// Default -1; size is not controlled by code.
- /// 0 means the collection's size will be handled internally.
- /// > 0 indicate the same of the collection.
- /// </summary>
- public int Size
- {
- get { return size; }
- set { size = value; }
- }
-
- private bool sortable = true;
-
- /// <summary>
- /// If true, the list can be sorted by hand.
- /// </summary>
- public bool Sortable
- {
- get { return sortable; }
- set { sortable = value; }
- }
-
- private CollectionDisplay display = CollectionDisplay.List;
-
- /// <summary>
- /// If not default, removes the collection list and only display one item at a time.
- /// </summary>
- public CollectionDisplay Display
- {
- get { return display; }
- set { display = value; }
- }
-
- private int maxDisplayedItems = 25;
-
- /// <summary>
- /// When a collection is very large, it get up/down arrows to scrolls in items instead of displaying them all.
- /// This property controls how many items are displayed before the scrolls appears.
- /// </summary>
- public int MaxDisplayedItems
- {
- get { return maxDisplayedItems; }
- set { maxDisplayedItems = value; }
- }
-
- private int maxItemsPerRow = 6;
-
- /// <summary>
- /// When display is using Button, this is the maximum number of button displayed per rows before creating a new one.
- /// </summary>
- public int MaxItemsPerRow
- {
- get { return maxItemsPerRow; }
- set { maxItemsPerRow = value; }
- }
-
- private Type enumType = null;
-
- /// <summary>
- /// Bind the size of a collection to the values of an enum.
- /// The name of the indexed are displayed using the enum values' names.
- /// </summary>
- public Type EnumType
- {
- get { return enumType; }
- set
- {
- if (!value.IsEnum)
- return;
-
- int index = 0;
- foreach (object i in Enum.GetValues(value))
- {
- if ((int)i != index)
- return;
-
- index++;
- }
-
- enumType = value;
- }
- }
-
- public CollectionAttribute() { }
-
- public CollectionAttribute(int size)
- : this(size, true) { }
-
- public CollectionAttribute(Type enumType)
- : this(enumType, true) { }
-
- public CollectionAttribute(bool sortable)
- : this(-1, sortable) { }
-
- public CollectionAttribute(CollectionDisplay display)
- : this(-1, true, display) { }
-
- public CollectionAttribute(int size, bool sortable)
- : this(size, sortable, CollectionDisplay.List) { }
-
- public CollectionAttribute(Type enumType, bool sortable)
- : this(enumType, sortable, CollectionDisplay.List) { }
-
- public CollectionAttribute(int size, CollectionDisplay display)
- : this(size, true, display) { }
-
- public CollectionAttribute(Type enumType, CollectionDisplay display)
- : this(enumType, true, display) { }
-
- public CollectionAttribute(int size, bool sortable, CollectionDisplay display)
- {
- this.size = size;
- this.sortable = sortable;
- this.display = display;
- }
-
- public CollectionAttribute(Type enumType, bool sortable, CollectionDisplay display)
- {
- this.EnumType = enumType;
- this.sortable = sortable;
- this.display = display;
- }
- }
-
- /// <summary>
- /// None default display should only be used on collection that contain expandable objects.
- /// </summary>
- public enum CollectionDisplay
- {
- List,
- DropDown,
- Button
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Collection.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Collection.cs.meta
deleted file mode 100644
index 3024d617..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Collection.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: fca33267bb5f8b043a4dd1079e32af1c
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Constructor.cs b/Assets/Plugins/AdvancedInspector/Attributes/Constructor.cs
deleted file mode 100644
index 1b3f7438..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Constructor.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Some object cannot be created with an empty constructor.
- /// This runtime attribute lets you create the object by yourself.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class ConstructorAttribute : Attribute, IRuntimeAttribute<object>
- {
- public delegate object ConstructorDelegate();
- public delegate object ConstructorStaticDelegate(ConstructorAttribute constructor, object instance, object value);
-
- #region IRuntime Implementation
- private string methodName = "";
-
- public string MethodName
- {
- get { return methodName; }
- }
-
- public Type Template
- {
- get { return typeof(ConstructorDelegate); }
- }
-
- public Type TemplateStatic
- {
- get { return typeof(ConstructorStaticDelegate); }
- }
-
- private List<Delegate> delegates = new List<Delegate>();
-
- public List<Delegate> Delegates
- {
- get { return delegates; }
- set { delegates = value; }
- }
-
- public object Invoke(int index, object instance, object value)
- {
- if (delegates.Count == 0 || index >= delegates.Count)
- return null;
-
- try
- {
- if (delegates[index].Target == null)
- {
- return delegates[index].DynamicInvoke(this, instance, value);
- }
- else
- {
- return delegates[index].DynamicInvoke();
- }
- }
- catch (Exception e)
- {
- if (e is TargetInvocationException)
- e = ((TargetInvocationException)e).InnerException;
-
- Debug.LogError(string.Format("Invoking a method from a constructor failed. The exception was \"{0}\".", e.Message));
- return null;
- }
- }
- #endregion
-
- public ConstructorAttribute(string methodName)
- {
- this.methodName = methodName;
- }
-
- public ConstructorAttribute(Delegate method)
- {
- this.delegates.Add(method);
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Constructor.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Constructor.cs.meta
deleted file mode 100644
index f333c05f..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Constructor.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 8e27defafd172764c9e999b947b2f4e6
-timeCreated: 1426031598
-licenseType: Store
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/CreateDerived.cs b/Assets/Plugins/AdvancedInspector/Attributes/CreateDerived.cs
deleted file mode 100644
index 3fac45f8..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/CreateDerived.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Define an exposed property that act as a object creator.
- /// The field gives the user the choices of all type deriving from that property type.
- /// In the case of a generic List, it offers way to add object in the list.
- /// If the list is of a value type (Ex.: int), it automaticly create an entry with the default value of that type.
- /// Field/Property's type sporting this attribute should derive from ComponentMonoBehaviour!
- /// Otherwise, Unity's serialization will kill the polymorphism involved.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class CreateDerivedAttribute : Attribute, IListAttribute { }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/CreateDerived.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/CreateDerived.cs.meta
deleted file mode 100644
index 2fcb841a..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/CreateDerived.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: fe2444b9e8ef55340952cecad2cc75c0
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Descriptor.cs b/Assets/Plugins/AdvancedInspector/Attributes/Descriptor.cs
deleted file mode 100644
index a452e72b..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Descriptor.cs
+++ /dev/null
@@ -1,262 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// A description is the information about "something".
- /// It contains an optional name, description, icon, color.
- /// It can be used both as a attributes or a normal object, container of information.
- /// Ex.: The Toolbox is using it as object.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method | AttributeTargets.Class |
- AttributeTargets.Interface | AttributeTargets.Struct | AttributeTargets.Enum, Inherited = false)]
- public class DescriptorAttribute : Attribute, IRuntimeAttribute<DescriptorAttribute>
- {
- public delegate DescriptorAttribute DescriptorDelegate();
- public delegate DescriptorAttribute DescriptorStaticDelegate(DescriptorAttribute descriptor, object instance, object value);
-
- private static Color TRANSPARENT = new Color(0, 0, 0, 0);
-
- private string name = "";
-
- /// <summary>
- /// Give this item a name.
- /// </summary>
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
-
- private string description = "";
-
- /// <summary>
- /// Give this item a description.
- /// Usually used for tooltip.
- /// </summary>
- public string Description
- {
- get { return description; }
- set { description = value; }
- }
-
- private string url = "";
-
- /// <summary>
- /// Give this item an help URL.
- /// </summary>
- public string URL
- {
- get { return url; }
- set { url = value; }
- }
-
- private Texture icon = null;
-
- /// <summary>
- /// Give this item an icon.
- /// Useful in a list of items.
- /// </summary>
- public Texture Icon
- {
- get { return icon; }
- set { icon = value; }
- }
-
- private Color color = Color.clear;
-
- /// <summary>
- /// Give this item a color.
- /// Default is transparent
- /// </summary>
- public Color Color
- {
- get { return color; }
- set { color = value; }
- }
-
- #region IRuntime Implementation
- private string methodName = "";
-
- public string MethodName
- {
- get { return methodName; }
- }
-
- public Type Template
- {
- get { return typeof(DescriptorDelegate); }
- }
-
- public Type TemplateStatic
- {
- get { return typeof(DescriptorStaticDelegate); }
- }
-
- private List<Delegate> delegates = new List<Delegate>();
-
- public List<Delegate> Delegates
- {
- get { return delegates; }
- set { delegates = value; }
- }
-
- public DescriptorAttribute Invoke(int index, object instance, object value)
- {
- if (delegates.Count == 0 || index >= delegates.Count)
- return this;
-
- try
- {
- if (delegates[index].Target == null)
- {
- return delegates[0].DynamicInvoke(this, instance, value) as DescriptorAttribute;
- }
- else
- {
- return delegates[0].DynamicInvoke() as DescriptorAttribute;
- }
- }
- catch (Exception e)
- {
- if (e is TargetInvocationException)
- e = ((TargetInvocationException)e).InnerException;
-
- Debug.LogError(string.Format("Invoking a method to retrieve a Destriptor attribute failed. The exception was \"{0}\".", e.Message));
- return null;
- }
- }
- #endregion
-
- public DescriptorAttribute() { }
-
- #region Attributes Constructor
- public DescriptorAttribute(string methodName)
- {
- this.methodName = methodName;
- }
-
- public DescriptorAttribute(float r, float g, float b)
- : this("", "", "", r, g, b, 1) { }
-
- public DescriptorAttribute(string name, string description)
- : this(name, description, "", 0, 0, 0, 0) { }
-
- public DescriptorAttribute(string name, string description, string url)
- : this(name, description, url, 0, 0, 0, 0) { }
-
- public DescriptorAttribute(string name, string description, string url, float r, float g, float b)
- : this(name, description, url, r, g, b, 1) { }
-
- private DescriptorAttribute(string name, string description, string url, float r, float g, float b, float a)
- {
- this.name = name;
- this.description = description;
- this.url = url;
- color = new Color(r, g, b, a);
- }
- #endregion
-
- #region Object Constructor
- public DescriptorAttribute(string name, string description, Texture icon)
- : this(name, description, icon, TRANSPARENT) { }
-
- public DescriptorAttribute(string name, string description, Texture icon, Color color)
- {
- this.name = name;
- this.description = description;
- this.icon = icon;
- this.color = color;
- }
- #endregion
-
- public static DescriptorAttribute GetDescriptor(Type type)
- {
- object[] obj = type.GetCustomAttributes(typeof(DescriptorAttribute), true);
-
- if (obj.Length == 0)
- return null;
- else
- return (obj[0] as DescriptorAttribute);
- }
-
- public static List<DescriptorAttribute> GetDescriptors(List<Type> types)
- {
- List<DescriptorAttribute> descriptors = new List<DescriptorAttribute>();
-
- foreach (Type type in types)
- descriptors.Add(GetDescriptor(type));
-
- return descriptors;
- }
- }
-
- /// <summary>
- /// Pairs an object with a descriptor.
- /// Used by the Toolbox and the Advanced Inspector.
- /// </summary>
- public class DescriptorPair
- {
- private object value;
-
- public object Value
- {
- get { return value; }
- }
-
- private DescriptorAttribute descriptor;
-
- public DescriptorAttribute Descriptor
- {
- get { return descriptor; }
- }
-
- public DescriptorPair(object value, DescriptorAttribute descriptor)
- {
- this.value = value;
- this.descriptor = descriptor;
- }
-
- public DescriptorPair(object value, string name)
- : this(value, new DescriptorAttribute(name, "")) { }
-
- public DescriptorPair(object value, string name, string description)
- : this(value, new DescriptorAttribute(name, description)) { }
-
- public static bool operator ==(DescriptorPair a, DescriptorPair b)
- {
- // If both are null, or both are same instance, return true.
- if (System.Object.ReferenceEquals(a, b))
- return true;
-
- // If one is null, but not both, return false.
- if (((object)a == null) || ((object)b == null))
- return false;
-
- return a.Equals(b);
- }
-
- public static bool operator !=(DescriptorPair a, DescriptorPair b)
- {
- return !(a == b);
- }
-
- public override bool Equals(object obj)
- {
- DescriptorPair other = obj as DescriptorPair;
- if (other == null)
- return false;
-
- return this.Value.Equals(other.Value);
- }
-
- public override int GetHashCode()
- {
- return base.GetHashCode();
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Descriptor.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Descriptor.cs.meta
deleted file mode 100644
index eee13f0a..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Descriptor.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: c543914d76893214f9fceba693c0ed76
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/DisplayAsParent.cs b/Assets/Plugins/AdvancedInspector/Attributes/DisplayAsParent.cs
deleted file mode 100644
index acec32e9..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/DisplayAsParent.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Prevent a nested object from having to be unfolded.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class DisplayAsParentAttribute : Attribute { }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/DisplayAsParent.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/DisplayAsParent.cs.meta
deleted file mode 100644
index 3632a07b..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/DisplayAsParent.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 3fca13597b0728d41a25aa9d670f0b86
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs b/Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs
deleted file mode 100644
index 7c8506a6..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Prevent Scene Object from being browsed in a Object property.
- /// By default, scene and asset are displayed.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class DontAllowSceneObjectAttribute : Attribute, IListAttribute { }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs.meta
deleted file mode 100644
index 72b6f6c1..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/DontAllowSceneObject.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 819e08560dc14324ebaa532c3f65751a
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Enum.cs b/Assets/Plugins/AdvancedInspector/Attributes/Enum.cs
deleted file mode 100644
index f9b88281..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Enum.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Controls how an enum is handled and displayed.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class EnumAttribute : Attribute, IListAttribute
- {
- private bool masked = false;
-
- /// <summary>
- /// Turns a normal enum into a bitfield.
- /// Careful, your enum should be properly setup to accepted bitfield input.
- /// </summary>
- public bool Masked
- {
- get { return masked; }
- set { masked = value; }
- }
-
- private EnumDisplay display = EnumDisplay.DropDown;
-
- /// <summary>
- /// Forces an enum to be displayed differently.
- /// </summary>
- public EnumDisplay Display
- {
- get { return display; }
- set { display = value; }
- }
-
- private int maxItemsPerRow = 6;
-
- /// <summary>
- /// When display is using Button or Checkbox, this is the maximum number of button displayed per rows before creating a new one.
- /// </summary>
- public int MaxItemsPerRow
- {
- get { return maxItemsPerRow; }
- set { maxItemsPerRow = value; }
- }
-
- public EnumAttribute(bool masked)
- {
- this.masked = masked;
- }
-
- public EnumAttribute(EnumDisplay display)
- {
- this.display = display;
- }
-
- public EnumAttribute(bool masked, EnumDisplay display)
- {
- this.masked = masked;
- this.display = display;
- }
- }
-
- public enum EnumDisplay
- {
- DropDown,
- Button,
- Checkbox
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Enum.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Enum.cs.meta
deleted file mode 100644
index d47eb345..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Enum.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 6bb7fceb011c74e43a49f0124591cb7e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs b/Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs
deleted file mode 100644
index b63d5c38..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Redefine if a field/property can be expanded or not.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = true)]
- public class ExpandableAttribute : Attribute, IListAttribute
- {
- private bool expanded = false;
-
- /// <summary>
- /// Makes the item expanded by default.
- /// </summary>
- public bool Expanded
- {
- get { return expanded; }
- set { expanded = value; }
- }
-
- private bool expandable = true;
-
- /// <summary>
- /// Default true, can force a field to not be expandable.
- /// </summary>
- public bool Expandable
- {
- get { return expandable; }
- set { expandable = value; }
- }
-
- public ExpandableAttribute() { }
-
- public ExpandableAttribute(bool expandable)
- {
- this.expandable = expandable;
- }
-
- public ExpandableAttribute(bool expandable, bool expanded)
- {
- this.expanded = expanded;
- this.expandable = expandable;
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs.meta
deleted file mode 100644
index 60aef708..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Expandable.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 574c9c65c35362d4c81087ea01d49be7
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/FieldEditor.cs b/Assets/Plugins/AdvancedInspector/Attributes/FieldEditor.cs
deleted file mode 100644
index b5c833d9..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/FieldEditor.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Can only be placed a classed derived from FieldEditor, or a field/property taking a specific editor.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class FieldEditorAttribute : Attribute, IListAttribute
- {
- private string type = "";
-
- /// <summary>
- /// Type's name of the FieldEditor to use.
- /// </summary>
- public string Type
- {
- get { return type; }
- }
-
- public FieldEditorAttribute(string type)
- {
- this.type = type;
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/FieldEditor.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/FieldEditor.cs.meta
deleted file mode 100644
index 7be7565f..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/FieldEditor.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 48265bc16ba070a4f9c105cdd29d2805
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Group.cs b/Assets/Plugins/AdvancedInspector/Attributes/Group.cs
deleted file mode 100644
index e95709ad..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Group.cs
+++ /dev/null
@@ -1,110 +0,0 @@
-using System;
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Allow to groups inspector items.
- /// </summary>
- [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method)]
- public class GroupAttribute : Attribute
- {
- private string name = "";
-
- /// <summary>
- /// Name of the group.
- /// </summary>
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
-
- private string description = "";
-
- /// <summary>
- /// Extra text for the group, displayed on the right side.
- /// </summary>
- public string Description
- {
- get { return description; }
- set { description = value; }
- }
-
- private string style = "";
-
- /// <summary>
- /// Style of this group.
- /// Only need to be flagged on one item.
- /// </summary>
- public string Style
- {
- get { return style; }
- set { style = value; }
- }
-
- private int priority = 0;
-
- /// <summary>
- /// Priority of this group when sorting items.
- /// Only need to be flagged on one item.
- /// </summary>
- public int Priority
- {
- get { return priority; }
- set { priority = value; }
- }
-
- private bool expandable = true;
-
- /// <summary>
- /// If false, the group is always expanded and does not have an foldout arrow.
- /// </summary>
- public bool Expandable
- {
- get { return expandable; }
- set { expandable = value; }
- }
-
- private Color color = Color.clear;
-
- /// <summary>
- /// Give this item's background a color.
- /// </summary>
- public Color Color
- {
- get { return color; }
- set { color = value; }
- }
-
- public GroupAttribute(string name)
- : this(name, "", 0) { }
-
- public GroupAttribute(string name, int priority)
- : this(name, "", priority) { }
-
- public GroupAttribute(string name, string style)
- : this(name, style, 0) { }
-
- public GroupAttribute(string name, float r, float g, float b)
- : this(name, "", "", 0, r, g, b, 1) { }
-
- public GroupAttribute(string name, string style, int priority)
- : this(name, "", style, priority, 0, 0, 0, 0) { }
-
- public GroupAttribute(string name, string style, float r, float g, float b)
- : this(name, "", style, 0, r, g, b, 1) { }
-
- public GroupAttribute(string name, string style, int priority, float r, float g, float b)
- : this(name, "", style, priority, r, g, b, 1) { }
-
- public GroupAttribute(string name, string description, string style, int priority, float r, float g, float b, float a)
- {
- this.name = name;
- this.description = description;
- this.style = style;
- this.priority = priority;
- this.color = new Color(r, g, b, a);
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Group.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Group.cs.meta
deleted file mode 100644
index 2a0b75a8..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Group.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 363188602a056ed47970a96a0f55d619
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Help.cs b/Assets/Plugins/AdvancedInspector/Attributes/Help.cs
deleted file mode 100644
index ea4825d9..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Help.cs
+++ /dev/null
@@ -1,199 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-using System.Text;
-using System.Text.RegularExpressions;
-
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// When a property is flagged this way, a help box is added after the inspector's field.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)]
- public class HelpAttribute : Attribute, IRuntimeAttribute<HelpAttribute>
- {
- public const string IsNull = "HelpAttribute.IsValueNull";
- public const string IsNullOrEmpty = "HelpAttribute.IsStringNullOrEmpty";
- public const string IsMatch = "HelpAttribute.IsRegexMatch";
-
-
- public delegate HelpAttribute HelpDelegate();
- public delegate HelpAttribute HelpStaticDelegate(HelpAttribute help, object instance, object value);
-
- private HelpType type;
-
- /// <summary>
- /// Help type.
- /// Displays a specific icon.
- /// </summary>
- public HelpType Type
- {
- get { return type; }
- set { type = value; }
- }
-
- private string message;
-
- /// <summary>
- /// Help message.
- /// </summary>
- public string Message
- {
- get { return message; }
- set { message = value; }
- }
-
- private HelpPosition position = HelpPosition.After;
-
- /// <summary>
- /// By default, the helpbox is drawn after the field.
- /// If this is false, it is drawn before the field.
- /// </summary>
- public HelpPosition Position
- {
- get { return position; }
- set { position = value; }
- }
-
- private string regex;
-
- /// <summary>
- /// When using the IsRegex conditional, this string is used as a regular expresion.
- /// </summary>
- public string Regex
- {
- get { return regex; }
- set { regex = value; }
- }
-
- #region IRuntime Implementation
- private string methodName = "";
-
- public string MethodName
- {
- get { return methodName; }
- }
-
- public Type Template
- {
- get { return typeof(HelpDelegate); }
- }
-
- public Type TemplateStatic
- {
- get { return typeof(HelpStaticDelegate); }
- }
-
- private List<Delegate> delegates = new List<Delegate>();
-
- public List<Delegate> Delegates
- {
- get { return delegates; }
- set { delegates = value; }
- }
-
- public HelpAttribute Invoke(int index, object instance, object value)
- {
- if (delegates.Count == 0 || index >= delegates.Count)
- return this;
-
- try
- {
- if (delegates[index].Target == null)
- {
- return delegates[0].DynamicInvoke(this, instance, value) as HelpAttribute;
- }
- else
- {
- return delegates[0].DynamicInvoke() as HelpAttribute;
- }
- }
- catch (Exception e)
- {
- if (e is TargetInvocationException)
- e = ((TargetInvocationException)e).InnerException;
-
- Debug.LogError(string.Format("Invoking a method failed while trying to retrieve a Help attribute. The exception was \"{0}\".", e.Message));
- return null;
- }
- }
- #endregion
-
- public HelpAttribute(string methodName)
- : this(methodName, HelpType.None, HelpPosition.After, "") { }
-
- public HelpAttribute(string methodName, HelpType type, string message)
- : this(methodName, type, HelpPosition.After, message) { }
-
- public HelpAttribute(HelpType type, string message)
- : this("", type, HelpPosition.After, message) { }
-
- public HelpAttribute(HelpType type, HelpPosition position, string message)
- : this("", type, position, message) { }
-
- public HelpAttribute(string methodName, HelpType type, HelpPosition position, string message)
- {
- this.methodName = methodName;
- this.type = type;
- this.position = position;
- this.message = message;
- }
-
- public HelpAttribute(Delegate method)
- {
- this.delegates.Add(method);
- }
-
- private static HelpAttribute IsValueNull(HelpAttribute help, object instance, object value)
- {
- if (value == null || (value is UnityEngine.Object && ((UnityEngine.Object)value) == null))
- {
- return help;
- }
-
- return null;
- }
-
- private static HelpAttribute IsStringNullOrEmpty(HelpAttribute help, object instance, object value)
- {
- if (value is string && string.IsNullOrEmpty((string)value))
- return help;
-
- return null;
- }
-
- private static HelpAttribute IsRegexMatch(HelpAttribute help, object instance, object value)
- {
- if (value == null)
- return null;
-
- string text = value.ToString();
- if (System.Text.RegularExpressions.Regex.IsMatch(text, help.regex))
- return help;
-
- return null;
- }
- }
-
- /// <summary>
- /// Because the internal enum for help display is Editor only.
- /// </summary>
- public enum HelpType
- {
- None = 0,
- Info = 1,
- Warning = 2,
- Error = 3,
- }
-
- /// <summary>
- /// The position where the help box should be placed.
- /// </summary>
- public enum HelpPosition
- {
- After,
- Before
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Help.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Help.cs.meta
deleted file mode 100644
index 1d663fe8..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Help.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: d071ab40c60bc8a458f4e2578a30440e
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Inspect.cs b/Assets/Plugins/AdvancedInspector/Attributes/Inspect.cs
deleted file mode 100644
index 210e3558..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Inspect.cs
+++ /dev/null
@@ -1,195 +0,0 @@
-using System;
-using System.Reflection;
-using System.Collections.Generic;
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Makes a property viewable in the Inspector of Unity.
- /// Turns a method into a button in the Inspector.
- /// You can input a conditional statement for your property to show up or not.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
- public class InspectAttribute : Attribute, IRuntimeAttribute<bool>
- {
- public delegate bool InspectDelegate();
- public delegate bool InspectStaticDelegate(InspectAttribute inspect, object instance, object value);
-
- private InspectorLevel level;
-
- /// <summary>
- /// Inspector level are use to hide more advanced item.
- /// Items under the current Inspector levels are hidden.
- /// </summary>
- public InspectorLevel Level
- {
- get { return level; }
- set { level = value; }
- }
-
- private bool condition = true;
-
- /// <summary>
- /// Inverse the condition used by the IRuntime method.
- /// </summary>
- public bool Condition
- {
- get { return condition; }
- set { condition = value; }
- }
-
- private int priority = 0;
-
- /// <summary>
- /// Priority of display of this item.
- /// Smaller values are displayed first. Negative value are supported.
- /// </summary>
- public int Priority
- {
- get { return priority; }
- set { priority = value; }
- }
-
- #region IRuntime Implementation
- private string methodName = "";
-
- public string MethodName
- {
- get { return methodName; }
- set { methodName = value; }
- }
-
- public Type Template
- {
- get { return typeof(InspectDelegate); }
- }
-
- public Type TemplateStatic
- {
- get { return typeof(InspectStaticDelegate); }
- }
-
- private List<Delegate> delegates = new List<Delegate>();
-
- public List<Delegate> Delegates
- {
- get { return delegates; }
- set { delegates = value; }
- }
-
- public bool Invoke(int index, object instance, object value)
- {
- if (delegates.Count == 0 || index >= delegates.Count)
- return true;
-
- try
- {
- if (delegates[index].Target == null)
- {
- if (condition)
- return (bool)delegates[index].DynamicInvoke(this, instance, value);
- else
- return !(bool)delegates[index].DynamicInvoke(this, instance, value);
- }
- else
- {
- if (condition)
- return (bool)delegates[index].DynamicInvoke();
- else
- return !(bool)delegates[index].DynamicInvoke();
- }
- }
- catch (Exception e)
- {
- if (e is TargetInvocationException)
- e = ((TargetInvocationException)e).InnerException;
-
- Debug.LogError(string.Format("Invoking a method to retrieve a Inspect attribute failed. The exception was \"{0}\".", e.Message));
- return true;
- }
- }
- #endregion
-
- #region Compile Time Constructor
- public InspectAttribute()
- : this(InspectorLevel.Basic, "", true, 0) { }
-
- public InspectAttribute(int priority)
- : this(InspectorLevel.Basic, "", true, priority) { }
-
- public InspectAttribute(InspectorLevel level)
- : this(level, "", true, 0) { }
-
- public InspectAttribute(InspectorLevel level, int priority)
- : this(level, "", true, priority) { }
-
- public InspectAttribute(InspectorLevel level, string methodName)
- : this(level, methodName, true, 0) { }
-
- public InspectAttribute(InspectorLevel level, string methodName, int priority)
- : this(level, methodName, true, priority) { }
-
- public InspectAttribute(InspectorLevel level, string methodName, bool condition)
- : this(level, methodName, condition, 0) { }
-
- public InspectAttribute(string methodName)
- : this(InspectorLevel.Basic, methodName, true, 0) { }
-
- public InspectAttribute(string methodName, int priority)
- : this(InspectorLevel.Basic, methodName, true, priority) { }
-
- public InspectAttribute(string methodName, bool condition)
- : this(InspectorLevel.Basic, methodName, condition, 0) { }
-
- public InspectAttribute(string methodName, bool condition, int priority)
- : this(InspectorLevel.Basic, methodName, condition, priority) { }
-
- public InspectAttribute(InspectorLevel level, string methodName, bool condition, int priority)
- {
- this.level = level;
- this.condition = condition;
- this.methodName = methodName;
- this.priority = priority;
- }
- #endregion
-
- #region Runtime Constructor
- public InspectAttribute(Delegate method)
- : this(InspectorLevel.Basic, method, true, 0) { }
-
- public InspectAttribute(Delegate method, int priority)
- : this(InspectorLevel.Basic, method, true, priority) { }
-
- public InspectAttribute(Delegate method, bool condition)
- : this(InspectorLevel.Basic, method, condition, 0) { }
-
- public InspectAttribute(Delegate method, bool condition, int priority)
- : this(InspectorLevel.Basic, method, condition, priority) { }
-
- public InspectAttribute(InspectorLevel level, Delegate method)
- : this(level, method, true, 0) { }
-
- public InspectAttribute(InspectorLevel level, Delegate method, int priority)
- : this(level, method, true, priority) { }
-
- public InspectAttribute(InspectorLevel level, Delegate method, bool condition, int priority)
- {
- this.level = level;
- this.condition = condition;
- this.priority = priority;
- this.delegates.Add(method);
- }
- #endregion
- }
-
- /// <summary>
- /// You can change or add your own levels.
- /// </summary>
- public enum InspectorLevel
- {
- Basic = 0,
- Advanced = 1,
- Debug = 2
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Inspect.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Inspect.cs.meta
deleted file mode 100644
index f3b0b2fc..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Inspect.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: b1d1add23978a924d9da822c16ecca5d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Method.cs b/Assets/Plugins/AdvancedInspector/Attributes/Method.cs
deleted file mode 100644
index df08abc8..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Method.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Used when inspected a method, gives control over how it is displayed or handled.
- /// </summary>
- [AttributeUsage(AttributeTargets.Method)]
- public class MethodAttribute : Attribute
- {
- private MethodDisplay display = MethodDisplay.Button;
-
- public MethodDisplay Display
- {
- get { return display; }
- set { display = value; }
- }
-
- public MethodAttribute() { }
-
- public MethodAttribute(MethodDisplay display)
- {
- this.display = display;
- }
- }
-
-
- /// <summary>
- /// How the method is displayed.
- /// </summary>
- public enum MethodDisplay
- {
- Button, // A button
- Invoke // Invoke it so it draws its own stuff.
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Method.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Method.cs.meta
deleted file mode 100644
index 7738c797..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Method.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: d18c976511db4614f89166425f46b342
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/NoPicker.cs b/Assets/Plugins/AdvancedInspector/Attributes/NoPicker.cs
deleted file mode 100644
index 0619ccec..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/NoPicker.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using UnityEngine;
-using System;
-using System.Collections;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Removes the object picking field from a selectable object.
- /// Useful when the object is set internally, should be edited but not changed.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class NoPicker : Attribute, IListAttribute { }
-}
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/NoPicker.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/NoPicker.cs.meta
deleted file mode 100644
index 00643d66..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/NoPicker.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 76bfee0f7aa5c3e429aae6af201d0f66
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs b/Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs
deleted file mode 100644
index a0331216..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Similar to Unity's "Range" attribute but for the Advanced Inspector.
- /// However, Unity's version is flagged to be "Field Only", while this one can be placed on Properties.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class RangeValueAttribute : Attribute, IListAttribute
- {
- private float min;
-
- /// <summary>
- /// Min value, the current value cannot go below that.
- /// </summary>
- public float Min
- {
- get { return min; }
- set { min = value; }
- }
-
- private float max;
-
- /// <summary>
- /// Max value, the current value cannot go above that.
- /// </summary>
- public float Max
- {
- get { return max; }
- set { max = value; }
- }
-
- public RangeValueAttribute(float min, float max)
- {
- this.min = min;
- this.max = max;
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs.meta
deleted file mode 100644
index 780732c1..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/RangeValue.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 214bf4d5f010cd14f8f02b9debfca40d
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/ReadOnly.cs b/Assets/Plugins/AdvancedInspector/Attributes/ReadOnly.cs
deleted file mode 100644
index 145f1167..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/ReadOnly.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Makes a Property read only (cannot be modified)
- /// It's grayed out in the inspector, even if there's a setter.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false)]
- public class ReadOnlyAttribute : Attribute, IListAttribute, IRuntimeAttribute<bool>
- {
- public delegate bool ReadOnlyDelegate();
- public delegate bool ReadOnlyStaticDelegate(ReadOnlyAttribute readOnly, object instance, object value);
-
- #region IRuntime Implementation
- private string methodName = "";
-
- public string MethodName
- {
- get { return methodName; }
- }
-
- public Type Template
- {
- get { return typeof(ReadOnlyDelegate); }
- }
-
- public Type TemplateStatic
- {
- get { return typeof(ReadOnlyStaticDelegate); }
- }
-
- private List<Delegate> delegates = new List<Delegate>();
-
- public List<Delegate> Delegates
- {
- get { return delegates; }
- set { delegates = value; }
- }
-
- public bool Invoke(int index, object instance, object value)
- {
- if (delegates.Count == 0 || index >= delegates.Count)
- return true;
-
- try
- {
- if (delegates[index].Target == null)
- {
- return (bool)delegates[index].DynamicInvoke(this, instance, value);
- }
- else
- {
- return (bool)delegates[index].DynamicInvoke();
- }
- }
- catch (Exception e)
- {
- if (e is TargetInvocationException)
- e = ((TargetInvocationException)e).InnerException;
-
- Debug.LogError(string.Format("Invoking a method to retrieve a ReadOnly attribute failed. The exception was \"{0}\".", e.Message));
- return false;
- }
- }
- #endregion
-
- public ReadOnlyAttribute() { }
-
- public ReadOnlyAttribute(Delegate method)
- {
- this.delegates.Add(method);
- }
-
- public ReadOnlyAttribute(string methodName)
- {
- this.methodName = methodName;
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/ReadOnly.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/ReadOnly.cs.meta
deleted file mode 100644
index d0993047..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/ReadOnly.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 807b8f48dfd4f724d979f453c48556e1
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Restrict.cs b/Assets/Plugins/AdvancedInspector/Attributes/Restrict.cs
deleted file mode 100644
index 43d48f76..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Restrict.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Reflection;
-
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Restrict an object field to a list of object define by a delegate from the owner.
- /// In essence, turn any field into a drop down list of choices.
- /// Attributes cannot recieve a delegate, instead you pass the name of the method.
- /// The method itself is resolved when creating the field to know which instance to invoke.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class RestrictAttribute : Attribute, IListAttribute, IRuntimeAttribute<IList>
- {
- public delegate IList RestrictDelegate();
- public delegate IList RestrictStaticDelegate(RestrictAttribute restrict, object instance, object value);
-
- private RestrictDisplay display = RestrictDisplay.DropDown;
-
- /// <summary>
- /// Should this restricted field use the toolbox instead of a drop down popup.
- /// </summary>
- public RestrictDisplay Display
- {
- get { return display; }
- set { display = value; }
- }
-
- private int maxItemsPerRow = 6;
-
- /// <summary>
- /// When display is using Button, limits the number of items per row.
- /// </summary>
- public int MaxItemsPerRow
- {
- get { return maxItemsPerRow; }
- set { maxItemsPerRow = value; }
- }
-
- #region IRuntime Implementation
- private string methodName = "";
-
- public string MethodName
- {
- get { return methodName; }
- }
-
- public Type Template
- {
- get { return typeof(RestrictDelegate); }
- }
-
- public Type TemplateStatic
- {
- get { return typeof(RestrictStaticDelegate); }
- }
-
- private List<Delegate> delegates = new List<Delegate>();
-
- public List<Delegate> Delegates
- {
- get { return delegates; }
- set { delegates = value; }
- }
-
- public IList Invoke(int index, object instance, object value)
- {
- if (delegates.Count == 0 || index >= delegates.Count)
- return null;
-
- try
- {
- if (delegates[index].Target == null)
- {
- return delegates[index].DynamicInvoke(this, instance, value) as IList;
- }
- else
- {
- return delegates[index].DynamicInvoke() as IList;
- }
- }
- catch (Exception e)
- {
- if (e is TargetInvocationException)
- e = ((TargetInvocationException)e).InnerException;
-
- Debug.LogError(string.Format("Invoking a method to retrieve a Restrict attribute data failed. The exception was \"{0}\".", e.Message));
- return null;
- }
- }
- #endregion
-
- public RestrictAttribute(string methodName)
- : this(methodName, RestrictDisplay.DropDown) { }
-
- public RestrictAttribute(string methodName, RestrictDisplay display)
- {
- this.methodName = methodName;
- this.display = display;
- }
-
- public RestrictAttribute(Delegate method)
- : this(method, RestrictDisplay.DropDown) { }
-
- public RestrictAttribute(Delegate method, RestrictDisplay display)
- {
- this.delegates.Add(method);
- this.display = display;
- }
- }
-
- public enum RestrictDisplay
- {
- DropDown,
- Toolbox,
- Button
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Restrict.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Restrict.cs.meta
deleted file mode 100644
index 05cc475f..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Restrict.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: f427a8594327b11458d6ebc38c5fc6b6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/RuntimeResolve.cs b/Assets/Plugins/AdvancedInspector/Attributes/RuntimeResolve.cs
deleted file mode 100644
index 16a56fc4..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/RuntimeResolve.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Reflection;
-
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Forces a field to display a FieldEditor related to its current runtime type instead of the field type.
- /// The Runtime version supply the type itself. Useful when the field value is null or for an unknown object picker.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class RuntimeResolveAttribute : Attribute, IListAttribute, IRuntimeAttribute<Type>
- {
- public delegate Type RuntimeResolveDelegate();
- public delegate Type RuntimeResolveStaticDelegate(RuntimeResolveAttribute runtimeResolve, object instance, object value);
-
- #region IRuntime Implementation
- private string methodName = "";
-
- public string MethodName
- {
- get { return methodName; }
- }
-
- public Type Template
- {
- get { return typeof(RuntimeResolveDelegate); }
- }
-
- public Type TemplateStatic
- {
- get { return typeof(RuntimeResolveStaticDelegate); }
- }
-
- private List<Delegate> delegates = new List<Delegate>();
-
- public List<Delegate> Delegates
- {
- get { return delegates; }
- set { delegates = value; }
- }
-
- public Type Invoke(int index, object instance, object value)
- {
- if (delegates.Count == 0 || index >= delegates.Count)
- return null;
-
- try
- {
- if (delegates[index].Target == null)
- {
- return delegates[index].DynamicInvoke(this, instance, value) as Type;
- }
- else
- {
- return delegates[index].DynamicInvoke() as Type;
- }
- }
- catch (Exception e)
- {
- if (e is TargetInvocationException)
- e = ((TargetInvocationException)e).InnerException;
-
- Debug.LogError(string.Format("Invoking a method from a RuntimeResolve attribute failed. The exception was \"{0}\".", e.Message));
- return null;
- }
- }
- #endregion
-
- public RuntimeResolveAttribute() { }
-
- public RuntimeResolveAttribute(string methodName)
- {
- this.methodName = methodName;
- }
-
- public RuntimeResolveAttribute(Delegate method)
- {
- this.delegates.Add(method);
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/RuntimeResolve.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/RuntimeResolve.cs.meta
deleted file mode 100644
index 8e5deeb7..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/RuntimeResolve.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: c41d12d2aa0e9824c828bab3957ce2ea
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Space.cs b/Assets/Plugins/AdvancedInspector/Attributes/Space.cs
deleted file mode 100644
index 02972663..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Space.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Add a space after the current fields.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
- public class SpacingAttribute : Attribute
- {
- private int before = 0;
-
- /// <summary>
- /// Size of the space to add before the item.
- /// Default is 0.
- /// </summary>
- public int Before
- {
- get { return before; }
- set { before = value; }
- }
-
- private int after = 0;
-
- /// <summary>
- /// Size of the space to add after the item.
- /// Default is 1.
- /// </summary>
- public int After
- {
- get { return after; }
- set { after = value; }
- }
-
- public SpacingAttribute() { }
-
- public SpacingAttribute(int after)
- {
- this.after = after;
- }
-
- public SpacingAttribute(int before, int after)
- {
- this.after = after;
- this.before = before;
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Space.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Space.cs.meta
deleted file mode 100644
index 3c698339..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Space.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 342298f826c259a4f8efdca9740e39a6
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Style.cs b/Assets/Plugins/AdvancedInspector/Attributes/Style.cs
deleted file mode 100644
index 5ffa27ac..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Style.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Allow to change the style of an field item.
- /// </summary>
- [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method)]
- public class StyleAttribute : Attribute
- {
- private string style = "";
-
- /// <summary>
- /// Name of the style to use.
- /// Must be findable by GUI.skin.Find()
- /// </summary>
- public string Style
- {
- get { return style; }
- set { style = value; }
- }
-
- private bool label = true;
-
- /// <summary>
- /// Force or prevent the field's label from being displayed.
- /// </summary>
- public bool Label
- {
- get { return label; }
- set { label = value; }
- }
-
- public StyleAttribute(string style)
- : this(style, true) { }
-
- public StyleAttribute(string style, bool label)
- {
- this.style = style;
- this.label = label;
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Style.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Style.cs.meta
deleted file mode 100644
index fcb288c0..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Style.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: e4345a0f2d3a3744d90ee1c995161357
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Tab.cs b/Assets/Plugins/AdvancedInspector/Attributes/Tab.cs
deleted file mode 100644
index a7efea4d..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Tab.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// The tabs allows to create a collection of tabs at the top based on an Enum's values.
- /// Hides or shows items that are part of the selected tab.
- /// </summary>
- [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method)]
- public class TabAttribute : Attribute
- {
- private Enum tab;
-
- public Enum Tab
- {
- get { return tab; }
- set { tab = value; }
- }
-
- public TabAttribute(object tab)
- {
- this.tab = (Enum)tab;
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Tab.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Tab.cs.meta
deleted file mode 100644
index 4c19797c..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Tab.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: b3a31f241bcc75944a1919a273e85010
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/TextField.cs b/Assets/Plugins/AdvancedInspector/Attributes/TextField.cs
deleted file mode 100644
index 555fa1cb..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/TextField.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// This allows control over how a string field is displayed.
- /// Only useful on string field.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
- public class TextFieldAttribute : Attribute, IListAttribute
- {
- private const string TITLE = "Select Path...";
- private const string PATH = "";
- private const string EXTENSION = "";
-
- private string title = "";
-
- /// <summary>
- /// Title of the modal dialog
- /// </summary>
- public string Title
- {
- get { return title; }
- set { title = value; }
- }
-
- private string path = "C:\\";
-
- /// <summary>
- /// Default file/folder path
- /// </summary>
- public string Path
- {
- get { return path; }
- set { path = value; }
- }
-
- private string extension = "";
-
- /// <summary>
- /// Force the file dialog to show only specific file type.
- /// </summary>
- public string Extension
- {
- get { return extension; }
- set { extension = value; }
- }
-
- private TextFieldType type;
-
- /// <summary>
- /// What type of control is this string.
- /// </summary>
- public TextFieldType Type
- {
- get { return type; }
- set { type = value; }
- }
-
- public TextFieldAttribute(TextFieldType type)
- : this(type, TITLE, PATH, EXTENSION) { }
-
- public TextFieldAttribute(TextFieldType type, string title)
- : this(type, title, PATH, EXTENSION) { }
-
- public TextFieldAttribute(TextFieldType type, string title, string path)
- : this(type, title, path, EXTENSION) { }
-
- public TextFieldAttribute(TextFieldType type, string title, string path, string extension)
- {
- this.type = type;
- this.title = title;
- this.path = path;
- this.extension = extension;
- }
- }
-
- public enum TextFieldType
- {
- Standard,
- Password,
- Area,
- Tag,
- File,
- Folder
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/TextField.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/TextField.cs.meta
deleted file mode 100644
index 9aeb2b82..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/TextField.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: ce81aa34d03e9e84a981812d142a46a1
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Title.cs b/Assets/Plugins/AdvancedInspector/Attributes/Title.cs
deleted file mode 100644
index 2330db37..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Title.cs
+++ /dev/null
@@ -1,111 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Reflection;
-using System.Linq;
-using System.Text;
-
-using UnityEngine;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Similar to Unity "Header" attribute, but can be place on any members and be set at runtime.
- /// </summary>
- [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method)]
- public class TitleAttribute : Attribute, IRuntimeAttribute<TitleAttribute>
- {
- public delegate TitleAttribute TitleDelegate();
- public delegate TitleAttribute TitleStaticDelegate(TitleAttribute title, object instance, object value);
-
- private string message;
-
- /// <summary>
- /// The title message
- /// </summary>
- public string Message
- {
- get { return message; }
- set { message = value; }
- }
-
- private FontStyle style = FontStyle.Bold;
-
- /// <summary>
- /// The font style.
- /// </summary>
- public FontStyle Style
- {
- get { return style; }
- set { style = value; }
- }
-
- #region IRuntime Implementation
- private string methodName = "";
-
- public string MethodName
- {
- get { return methodName; }
- }
-
- public Type Template
- {
- get { return typeof(TitleDelegate); }
- }
-
- public Type TemplateStatic
- {
- get { return typeof(TitleStaticDelegate); }
- }
-
- private List<Delegate> delegates = new List<Delegate>();
-
- public List<Delegate> Delegates
- {
- get { return delegates; }
- set { delegates = value; }
- }
-
- public TitleAttribute Invoke(int index, object instance, object value)
- {
- if (delegates.Count == 0 || index >= delegates.Count)
- return this;
-
- try
- {
- if (delegates[index].Target == null)
- {
- return delegates[0].DynamicInvoke(this, instance, value) as TitleAttribute;
- }
- else
- {
- return delegates[0].DynamicInvoke() as TitleAttribute;
- }
- }
- catch (Exception e)
- {
- if (e is TargetInvocationException)
- e = ((TargetInvocationException)e).InnerException;
-
- Debug.LogError(string.Format("Invoking a method failed while trying to retrieve a Title attribute. The exception was \"{0}\".", e.Message));
- return null;
- }
- }
- #endregion
-
- public TitleAttribute(string methodName)
- {
- this.methodName = methodName;
- }
-
- public TitleAttribute(FontStyle style, string message)
- {
- this.style = style;
- this.message = message;
- }
-
- public TitleAttribute(Delegate method)
- {
- this.delegates.Add(method);
- }
- }
-}
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Title.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Title.cs.meta
deleted file mode 100644
index f0377be3..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Title.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 50a11bb467421824c95d21c7fb6d8073
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Toolbar.cs b/Assets/Plugins/AdvancedInspector/Attributes/Toolbar.cs
deleted file mode 100644
index 8044b984..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Toolbar.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-using System;
-
-namespace AdvancedInspector
-{
- /// <summary>
- /// Allow to groups inspector items.
- /// </summary>
- [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method)]
- public class ToolbarAttribute : Attribute
- {
- public const string ToolbarStyle = "Toolbar";
-
- private string name = "";
-
- /// <summary>
- /// Name of the toolbar, used to group items.
- /// If Label is true, the name is displayed.
- /// </summary>
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
-
- private string style = "";
-
- /// <summary>
- /// Style of this toolbar. Defaul; "Toolbar"
- /// Only need to be flagged on one item.
- /// </summary>
- public string Style
- {
- get { return style; }
- set { style = value; }
- }
-
- private bool label = false;
-
- /// <summary>
- /// Show or hide the toolbar label
- /// Only need to be flagged on one item.
- /// </summary>
- public bool Label
- {
- get { return label; }
- set { label = value; }
- }
-
- private bool flexible = false;
-
- /// <summary>
- /// This specific item will have a Flexible Space before
- /// </summary>
- public bool Flexible
- {
- get { return flexible; }
- set { flexible = value; }
- }
-
- private int priority = 0;
-
- /// <summary>
- /// Priority of this toolbar when sorting items.
- /// Only need to be flagged on one item.
- /// </summary>
- public int Priority
- {
- get { return priority; }
- set { priority = value; }
- }
-
- public ToolbarAttribute(string name)
- : this(name, "", false, false, 0) { }
-
- public ToolbarAttribute(string name, int priority)
- : this(name, "", false, false, priority) { }
-
- public ToolbarAttribute(string name, string style)
- : this(name, style, false, false, 0) { }
-
- public ToolbarAttribute(string name, string style, int priority)
- : this(name, style, false, false, priority) { }
-
- public ToolbarAttribute(string name, bool label)
- : this(name, "", label, false, 0) { }
-
- public ToolbarAttribute(string name, bool label, int priority)
- : this(name, "", label, false, priority) { }
-
- public ToolbarAttribute(string name, string style, bool label)
- : this(name, style, label, false, 0) { }
-
- public ToolbarAttribute(string name, string style, bool label, int priority)
- : this(name, style, label, false, priority) { }
-
- public ToolbarAttribute(string name, string style, bool label, bool flexible)
- : this(name, style, label, flexible, 0) { }
-
- public ToolbarAttribute(string name, string style, bool label, bool flexible, int priority)
- {
- this.name = name;
- this.style = style;
- this.label = label;
- this.flexible = flexible;
- this.priority = priority;
- }
- }
-} \ No newline at end of file
diff --git a/Assets/Plugins/AdvancedInspector/Attributes/Toolbar.cs.meta b/Assets/Plugins/AdvancedInspector/Attributes/Toolbar.cs.meta
deleted file mode 100644
index 1b49b862..00000000
--- a/Assets/Plugins/AdvancedInspector/Attributes/Toolbar.cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 03350da06d5fe9643b20b6796771ad56
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData: