i should not restart layout
what you mean recreate object?
i think on layout should be a button and when i click all object back on start position and should be ready to place all again
i dont use persist
thanks
Depends on the needs.
Restart layout
Restart the current layout. Note that unlike Go to layout, this action resets all event groups to their initial activation state. Global variables keep their current value - they are not reset. To reset them use the system action Reset global variables.
Recreate initial objects
Recreate the objects in a rectangular area of the layout as they appear in the Layout View. In other words, this restores a section of the initial level design. Note that this does not destroy any existing objects, so if used repeatedly will create multiple objects sitting on top of each other. Only objects of the given type are created, or alternatively a family can be passed and all objects belonging to that family are recreated.
Reset global variables
Reset all the global variables in the project to their initial value.
Reset persisted objects
Across the entire project, reset all objects using the Persist behavior to their initial state (as if the layout has not been visited yet). This is useful when restarting a new game from the beginning again.