fix reference button attribute

This commit is contained in:
Mikhail 2024-09-18 20:05:54 +08:00
parent 18fde18a74
commit 2c7db7e32f

View File

@ -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);