Skip to content

No easy way to disable AutoScene for PlayMode tests #4

Description

@WraithDrof

I've been trying to find a graceful way to do this and thought I'd reach out before devoting any more to it. Right now if AutoScene is enabled, it breaks my playmode tests which care about which scene I'm in (even though they seem to be loading the same scenes).

What I really want is for AutoScene to disable itself if it detects the app running in a test. Something like this seems ideal:

  • A test starts running and creates a test scene
  • AutoScene detects that we are in a test fixture and it disables itself
  • The test runs
  • Afterwards, AutoScene resets to its previous value (which for me, would always be enabled).

Of course it would also be good if AutoScene just didn't auto-initialise that scene, but my limited understanding of how this works means I'm guessing that's not possible.

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