What's Changed
- Fix TestRunner hang when the test framework aborts a run by @yucchiy in #159
- feat: add Scene.Screenshot2D / Scene.Screenshot3D commands by @paq in #152
- Add dirtyAction policy to scene-affecting and test run commands by @yucchiy in #160
- Release v1.6.0 by @yucchiy in #161
Full Changelog: v1.5.0...v1.6.0
Behavior change (action may be required)
Commands that would drop unsaved scene changes — Scene.Open/Scene.New (single mode), Scene.Close, and TestRunner.RunEditMode/RunPlayMode — now fail by default when a dirty scene is affected, instead of letting Unity discard the changes silently or show a blocking save dialog (#154, #160).
- Pass
dirtyAction: "save"to save the scenes first, ordirtyAction: "discard"(scene commands only) to proceed without saving. Scene.Savenow rejects untitled scenes unlesssaveAsPathis given.- Scripts that relied on the previous silent-discard behavior need to opt in explicitly with
dirtyAction.