MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / play

Function play

unity_cli/cli/commands/editor_control.py:80–87  ·  view source on GitHub ↗

Enter Play Mode (equivalent to pressing the Play button in the editor).

(ctx: typer.Context)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 3

print_successFunction · 0.90
_handle_errorFunction · 0.90
playMethod · 0.80

Tested by

no test coverage detected