1.9.2: Added OpenPropertyEditor and fixed some issues regarding using multiple drawers with EditorGUI.PropertyField
- Property: `OpenPropertyEditor` adds a "show"-button next to a `ScriptableObject` or `Component` to open a property window - Property: Fixed issue, where x PropertyDrawers would invoke each other x times
This commit is contained in:
parent
f609ba6f51
commit
c87dd743f6
8 changed files with 189 additions and 63 deletions
16
Runtime/Drawers/OpenPropertyEditorAttribute.cs
Normal file
16
Runtime/Drawers/OpenPropertyEditorAttribute.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#if UNITY_2019_3_OR_NEWER
|
||||
using System;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace Module.Inspector
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class OpenPropertyEditorAttribute : DrawerPropertyAttribute
|
||||
{
|
||||
[Preserve]
|
||||
public OpenPropertyEditorAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
3
Runtime/Drawers/OpenPropertyEditorAttribute.cs.meta
Normal file
3
Runtime/Drawers/OpenPropertyEditorAttribute.cs.meta
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d28d8d7fb04e4318989ef8e27fcb71ee
|
||||
timeCreated: 1710067651
|
||||
Loading…
Add table
Add a link
Reference in a new issue