Skip to content

Allow Global objects to be reset to their original state (scene objects) #8388

@IvanMass99

Description

@IvanMass99

In GDevelop, Global Objects keep their modified state during runtime and across scenes. Unlike scene objects, there is currently no simple way to restore them to the original configuration defined in the editor.

This becomes problematic when restarting gameplay systems or reusing Global Objects as managers (UI, status containers, etc.), because developers must manually reset every variable or recreate the object.

Solution suggested

Add an action such as:

“Reset to scene object state”

This would restore the object to the default state defined in the editor (variables, behaviors, and properties).

Alternatives considered

Currently the only alternatives are manually resetting variables or destroying and recreating the object, which adds unnecessary complexity.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions