LDtkToUnity icon indicating copy to clipboard operation
LDtkToUnity copied to clipboard

[Bug] if an Enum field is optional and has null value, the TryGet function should return false but not true.

Open JustusPan opened this issue 2 years ago • 1 comments

image if an Enum field is optional, when it's value is null fields.TryGetEnum<KeyTypes>("KeyType", out var keyType) then the return value of this TryGet should be false but currently it returns true

JustusPan avatar Dec 14 '22 13:12 JustusPan

In the XML documentation and the API docs, the return value is described as returning true if the field exists.
image

Cammin avatar Dec 14 '22 18:12 Cammin