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 ++++++++++++ .../Editor/UserSerializableDictionaryPropertyDrawers.cs.meta | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs create mode 100644 Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta (limited to 'Assets/ThirdParty/SerializableDictionary/Example/Editor') 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 {} diff --git a/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta b/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta new file mode 100644 index 00000000..0c101e13 --- /dev/null +++ b/Assets/ThirdParty/SerializableDictionary/Example/Editor/UserSerializableDictionaryPropertyDrawers.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3089b6c771301cc44ba23b7f8f469e14 +timeCreated: 1493639898 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: -- cgit v1.1-26-g67d0