From 63d2d94953f787cc2c8fc9151b2633f678a2818b Mon Sep 17 00:00:00 2001 From: Makihiro Date: Sat, 26 Oct 2024 20:01:51 +0900 Subject: [PATCH] Add HideInTypeMenuAttribute --- .../Runtime/HideInTypeMenuAttribute.cs | 11 +++++++++++ .../Runtime/HideInTypeMenuAttribute.cs.meta | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Runtime/HideInTypeMenuAttribute.cs create mode 100644 Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Runtime/HideInTypeMenuAttribute.cs.meta diff --git a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Runtime/HideInTypeMenuAttribute.cs b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Runtime/HideInTypeMenuAttribute.cs new file mode 100644 index 0000000..716aaac --- /dev/null +++ b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Runtime/HideInTypeMenuAttribute.cs @@ -0,0 +1,11 @@ +#if UNITY_2019_3_OR_NEWER +using System; + +/// +/// An attribute that hides the type in the SubclassSelector. +/// +[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] +public sealed class HideInTypeMenuAttribute : Attribute { + +} +#endif \ No newline at end of file diff --git a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Runtime/HideInTypeMenuAttribute.cs.meta b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Runtime/HideInTypeMenuAttribute.cs.meta new file mode 100644 index 0000000..dd44d0d --- /dev/null +++ b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Runtime/HideInTypeMenuAttribute.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f48f5d86a108b94a9c26381f5ce678c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: