Skip to content

Some objects were not cleaned up when closing the scene #113

Open

Description

@XeonG

On exiting playmode 6.7b2

Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)
The following scene GameObjects were found:
SimpleFileBrowserCanvas(Clone)

Activity

  1. yasirkula commented on Oct 6, 2026

    @yasirkula
    Owner

    Is it possible that you're calling a FileBrowser function or property inside a function that is reached from OnDestroy, OnDisable or OnApplicationQuit?

  2. XeonG commented on Oct 6, 2026

    @XeonG
    Author

    I dunno, this tool is recommended by another addon File Browser
    • Support for most platforms via Runtime File Browser

    anyway I fixed the issue, though the whole script was formatted and looks entirely different from source

  3. yasirkula commented on Oct 7, 2026

    @yasirkula
    Owner

    Can you post the modified whole script here? I can diff it.

  4. XeonG commented on Oct 7, 2026

    @XeonG
    Author

    https://pastebin.com/NGes6GzH

    Untested in a build but works better in editor playmode, I don't get that error above

    I prefere that c# formatting style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions