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

Method play

unity_cli/api/editor.py:17–23  ·  view source on GitHub ↗

Enter play mode. Returns: Dictionary with operation result

(self)

Source from the content-addressed store, hash-verified

15 self._conn = conn
16
17 def play(self) -> dict[str, Any]:
18 """Enter play mode.
19
20 Returns:
21 Dictionary with operation result
22 """
23 return self._conn.send_request("playmode", {"action": "enter"})
24
25 def pause(self) -> dict[str, Any]:
26 """Pause/unpause game.

Callers 6

_play_modeFunction · 0.80
_play_modeFunction · 0.80
playFunction · 0.80

Calls 1

send_requestMethod · 0.80

Tested by 5

_play_modeFunction · 0.64
_play_modeFunction · 0.64