From 21e186f75b504d832d9c7bef0456edd7d5d3155e Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 8 Sep 2021 10:52:35 +0800 Subject: +behavior design --- .../Editor/UserSerializableDictionaryPropertyDrawers.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs (limited to 'Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs') diff --git a/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs b/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs new file mode 100644 index 00000000..5c63f1ea --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; + +[CustomPropertyDrawer(typeof(StringStringDictionary))] +[CustomPropertyDrawer(typeof(ObjectColorDictionary))] +[CustomPropertyDrawer(typeof(StringColorArrayDictionary))] +public class AnySerializableDictionaryPropertyDrawer : SerializableDictionaryPropertyDrawer {} + +[CustomPropertyDrawer(typeof(ColorArrayStorage))] +public class AnySerializableDictionaryStoragePropertyDrawer: SerializableDictionaryStoragePropertyDrawer {} -- cgit v1.1-26-g67d0