diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs |
Diffstat (limited to 'Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs')
-rw-r--r-- | Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs | 33 |
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; + } + } +} + |