8:13 AM UST
Hello everyone,
I encountered an issue with the built-in Lua function type
when working with Vector3. Instead of returning "userdata"
as it normally does, it returns "vector"
.
However, calling the type function on a Vector2 still returns "userdata"
, which adds to my confusion as to why this behavior only affects Vector3 specifically.
This is particularly problematic for me because I have a JSON utility module that encodes userdata types into strings for later decoding. This module relies on the type function returning "userdata"
for all userdata types.
Has anyone else experienced this issue? Any insights or suggestions would be greatly appreciated.
Thank you for reading, and I hope you have a wonderful day or night!