1.8.4: Added PopupFromScriptableObjectType
This commit is contained in:
parent
3259b62387
commit
81906d49dd
12 changed files with 202 additions and 1 deletions
21
Runtime/Drawers/PopupFromScriptableObjectTypeAttribute.cs
Normal file
21
Runtime/Drawers/PopupFromScriptableObjectTypeAttribute.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class PopupFromScriptableObjectTypeAttribute : DrawerPropertyAttribute
|
||||
{
|
||||
public readonly Type type;
|
||||
|
||||
[Preserve]
|
||||
public PopupFromScriptableObjectTypeAttribute()
|
||||
{
|
||||
}
|
||||
|
||||
public PopupFromScriptableObjectTypeAttribute(Type type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b9e4e5e0d934ef14c9e74760997e4916
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue