You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently picked this up to try to deserialize TOML, however, I am having trouble with deserializing into custom types.
I have this current setup, trying to deserialize an array into a Vector3:
however, I end up getting an error when i try to deserialize, stating: Invalid list type OpenTK.Mathematics.Vector3. Getting a StandardObjectDynamicAccessor Type: OpenTK.Mathematics.Vector3 instead.
My toml file is simply
[[cubes]]
start = [0, 0, 0]
Note that it does work for DateTime (Console.WriteLine prints), but doesn't work for the custom type. How could I fix this? Thanks.
The text was updated successfully, but these errors were encountered:
Hello,
I recently picked this up to try to deserialize TOML, however, I am having trouble with deserializing into custom types.
I have this current setup, trying to deserialize an array into a
Vector3
:however, I end up getting an error when i try to deserialize, stating:
Invalid list type OpenTK.Mathematics.Vector3. Getting a StandardObjectDynamicAccessor Type: OpenTK.Mathematics.Vector3 instead.
My toml file is simply
Note that it does work for
DateTime
(Console.WriteLine
prints), but doesn't work for the custom type. How could I fix this? Thanks.The text was updated successfully, but these errors were encountered: