From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- .../UnityEngine.Graphs/DefaultValueAttribute.cs | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs (limited to 'Runtime/Graphs/UnityEngine.Graphs/DefaultValueAttribute.cs') 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; + } + } +} + -- cgit v1.1-26-g67d0