-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested class propertytype not saved in custom class properties #3230
Comments
And also the custom enum type is missing |
Yeah, this information is currently lost as part of the conversion of the data to a format suitable for exporting. I didn't consider it a problem because the information is redundant (or implicit, as you say), given that it is already available as part of the class definition, which was referenced by the parent property. I'm not personally sure whether this would actually cause confusion. If it turns out this information is actually necessary or when it is simply impractical for it to be missing, I can consider some solution to include it. The same reasoning affects the JSON format, where a class value becomes a plain JSON object, where there is simply no way to store any further meta-information about nested class members.
Yes, the |
Consider this case:
It will be helpful to also include it in nested class imo. |
@yuxuanchiadm Thanks for the additional explanation! It makes sense and I think there is no harm done in including the For the JSON and Lua formats I've decided to keep things as-is for now, since storing the additional type information on class members there means we could no longer use their native object representation. |
Hello everyone!
I've found that when nesting a class inside another class. The propertytype of the inner class is not saved to tmx file. So the type of inner class is implicit. Which may cause confusion while loading map in to game engine.
Here is my configuration:
And object after saving it to tmx file
The
field4
is missingpropertytype
property,Thanks!
The text was updated successfully, but these errors were encountered: