How to reproduce:
- Create a new project and leave the Editor open
- In the Terminal navigate to the newly created project
- Run “unity pipeline install"
- Restart the Editor
- Run "unity pipeline list" and ensure everything is set-up properly
- Enter Play mode
- Run "unity command create_gameobject"
- Observe the error in the Console and the created GameObject in the Hierarchy
Actual result: The command fails, but the GameObject is still created
Expected result: A command that fails does not modify the scene
Reproducible with: 0.3.0-exp.1 (6000.7.0a5), 0.5.0-exp.1 (6000.7.0a5)
Could not test with: 0.2.0-exp.2 (6000.7.0a5) (command doesn't exist)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
- Console error: "Command 'create_gameobject' failed: This cannot be used during play mode. UnityEngine.Debug:LogError (object)”
- The created GameObject is destroyed on exiting Play Mode, which is expected for Play Mode scene changes
- The same occurs with delete_gameobject - the command fails but the GameObject is removed from the Hierarchy