-
Notifications
You must be signed in to change notification settings - Fork 128
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
Error node_to_set.position when switch scenes #373
Comments
It seems that this error is caused by the fact that I had added |
This is probably fixable but depends a bit on what behaviour you're aiming for. First, undo adding It's probably helpful to fully understand how these two groups work within Cogito's save system, and this will help you add the desired behaviour: "Persist" group is used for objects that can be removed from scenes (stuff like items, enemies, destructables) "save_object_state" group on the other hand is used for objects that are always present within a cogito_scene (like doors, switches, etc). When Cogito loads a scene, it overwrites any objects data in this group with the saved state_data (so for example if a door was left open, a switch was left on/off etc). If you need specific custom behaviour for your object's state that's derived from the state_data is a dictionary, so it's very easy to add custom values that will get saved/loaded. |
It seems there is no problem |
Cogito and Godot Engine Version:
cogito beta, godot 4.3.1.rc
Description:
When switching scenes, an error occurs while loading cogito_vehicle, and sometimes while loading other objects. If you ignore the error and continue (F12), the object will still be in the correct place.
Screenshots:
The text was updated successfully, but these errors were encountered: