-
Notifications
You must be signed in to change notification settings - Fork 14
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
Deleted Component cause error for the blueprints editor #49
Comments
Hi Don, |
I can confirm that an exception is thrown
The question is how the case should be handled that a component type doesn't exist anymore when the blueprint xml is loaded. Requirements for a solution:
Therefore the blueprint editor has to work without the types, but with the serialized type names. |
Adjusting the Blueprint class would mean that it had to store a list of type names as well as the list of the component types. But the list of type names is only required in the editor and shouldn't be loaded at runtime. This means we need a separate data class (BlueprintData?) which is used for the editor and for the serialization/deserialization. A positive side effect would be that this class could be used for Json serialization as well. |
Correct me if I'm wrong, I thought the advantage of the ECS is that if I want to delete a feature, I just need to delete the folder. But I notice that when I renamed a certain component, it causes the blueprint editor to fail to open. And I need to open the XML file to delete the component from the entities it attaches with to make the editor working again. Is there a way, maybe a new feature that once a component is missing, the entity blueprints just automatically detach the component? Good idea? ;) Bad idea? :o
The text was updated successfully, but these errors were encountered: