protected void DrawObjectDetail(UnityEngine.Object obj, Rect rect) { if (obj != null) { serializedObj = ActionGUIUtil.CreateCachedSerializedObject(obj); rect.y += EditorGUIUtility.singleLineHeight + 5; serializedObj.Update(); ActionGUIUtil.DrawChildInContent(serializedObj.GetIterator(), rect, ignoreProps, null, 1); serializedObj.ApplyModifiedProperties(); } }
protected override float ElementHeightCallback(int index) { var prop = property.GetArrayElementAtIndex(index); var height = EditorGUIUtility.singleLineHeight + ActionGUIUtil.padding * 2; if (prop.objectReferenceValue != null && prop.isExpanded) { var se = ActionGUIUtil.CreateCachedSerializedObject(prop.objectReferenceValue); height += ActionGUIUtil.GetSerializedObjectHeight(se, ignoreProps) + ActionGUIUtil.padding * 2; } return(height); }