mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-17 17:34:34 +08:00
fix
This commit is contained in:
parent
04ad7ad8ca
commit
4a18d41b97
@ -82,6 +82,10 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
||||
|
||||
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
||||
{
|
||||
if(property.propertyType == SerializedPropertyType.ManagedReference == false)
|
||||
{
|
||||
return EditorGUI.GetPropertyHeight(property, label);
|
||||
}
|
||||
IComponentTemplate template = property.managedReferenceValue as IComponentTemplate;
|
||||
if (template == null || property.managedReferenceValue == null)
|
||||
{
|
||||
@ -114,6 +118,12 @@ namespace DCFApixels.DragonECS.Unity.Editors
|
||||
|
||||
public override void OnGUI(Rect position, SerializedProperty componentRefProp, GUIContent label)
|
||||
{
|
||||
if (componentRefProp.propertyType == SerializedPropertyType.ManagedReference == false)
|
||||
{
|
||||
EditorGUI.PropertyField(position, componentRefProp, label, true);
|
||||
return;
|
||||
}
|
||||
|
||||
Init();
|
||||
var counter = componentRefProp.Copy();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user