Enter Play Mode (equivalent to pressing the Play button in the editor).
(ctx: typer.Context)
| 78 | |
| 79 | @app.command() |
| 80 | def play(ctx: typer.Context) -> None: |
| 81 | """Enter Play Mode (equivalent to pressing the Play button in the editor).""" |
| 82 | context: CLIContext = ctx.obj |
| 83 | try: |
| 84 | context.client.editor.play() |
| 85 | print_success("Entered play mode") |
| 86 | except UnityCLIError as e: |
| 87 | _handle_error(e) |
| 88 | |
| 89 | @app.command() |
| 90 | def stop(ctx: typer.Context) -> None: |
nothing calls this directly
no test coverage detected