mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 01:54:35 +08:00
fix reference button attribute
This commit is contained in:
parent
18fde18a74
commit
2c7db7e32f
@ -38,6 +38,7 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
||||
{
|
||||
fieldType = fieldType.GetGenericTypeDefinition();
|
||||
}
|
||||
|
||||
if (fieldType == referenceBaseType)
|
||||
{
|
||||
_isReferenceWrapper = true;
|
||||
@ -51,11 +52,11 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
||||
|
||||
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
||||
{
|
||||
Init();
|
||||
if (_isReferenceWrapper)
|
||||
{
|
||||
property.Next(true);
|
||||
}
|
||||
|
||||
if (property.managedReferenceValue != null)
|
||||
{
|
||||
return EditorGUI.GetPropertyHeight(property, label, true);
|
||||
|
Loading…
Reference in New Issue
Block a user