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();
|
fieldType = fieldType.GetGenericTypeDefinition();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fieldType == referenceBaseType)
|
if (fieldType == referenceBaseType)
|
||||||
{
|
{
|
||||||
_isReferenceWrapper = true;
|
_isReferenceWrapper = true;
|
||||||
@ -51,11 +52,11 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
|||||||
|
|
||||||
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
||||||
{
|
{
|
||||||
|
Init();
|
||||||
if (_isReferenceWrapper)
|
if (_isReferenceWrapper)
|
||||||
{
|
{
|
||||||
property.Next(true);
|
property.Next(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (property.managedReferenceValue != null)
|
if (property.managedReferenceValue != null)
|
||||||
{
|
{
|
||||||
return EditorGUI.GetPropertyHeight(property, label, true);
|
return EditorGUI.GetPropertyHeight(property, label, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user