fix: RectOffset not being drawn in Inspector

This commit is contained in:
moz-moz 2024-05-02 22:50:50 +09:00
parent 5fef637954
commit ac6c5e23ee

View File

@ -17,6 +17,8 @@ namespace Alchemy.Editor.Elements
switch (property.propertyType)
{
// NOTE: RectOffset is a generic property type, but it doesn't have a SerializeField. Instead, use PropertyField.
case SerializedPropertyType.Generic when property.type == "RectOffset":
default:
element = new PropertyField(property);
break;