summaryrefslogtreecommitdiff
path: root/Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs')
-rw-r--r--Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs b/Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs
new file mode 100644
index 0000000..2dd334a
--- /dev/null
+++ b/Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs
@@ -0,0 +1,33 @@
+using System;
+
+namespace UnityEngine.Graphs.LogicGraph
+{
+ [AttributeUsage(AttributeTargets.All)]
+ public class DefaultValueAttribute : Attribute
+ {
+ private object m_Value;
+ private Type m_Type;
+
+ public object value
+ {
+ get { return m_Value; }
+ }
+
+ public Type type
+ {
+ get { return m_Type; }
+ }
+
+ public DefaultValueAttribute(object value)
+ {
+ m_Value = value;
+ }
+
+ public DefaultValueAttribute(Type type, string value)
+ {
+ m_Value = value;
+ m_Type = type;
+ }
+ }
+}
+