Set Play Mode
unity_set_play_modeControl Unity Editor play mode: play, stop, pause, or unpause. Stop before structural scene edits because changes made while playing are lost.
Instructions
Enter/exit play mode: play|stop|pause|unpause. Scene edits made while playing are lost on stop — prefer stopped for structural changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Play-mode transition to perform |