TableList can be used on non generic elements

This commit is contained in:
VladV 2022-06-03 15:34:46 +03:00
parent 6038aa2d13
commit 383815a216

View File

@ -368,7 +368,14 @@ namespace TriInspector.Drawers
}
else
{
AddChild(new TriLabelElement("[TableList] cannot be used on non generic elements"));
var element = new TriPropertyElement(property, new TriPropertyElement.Props
{
forceInline = true,
});
var headerContent = new GUIContent("Element");
AddChild(element);
Elements.Add(new KeyValuePair<TriElement, GUIContent>(element, headerContent));
}
}