PadPlay

API reference

Every PadPlay type, member and setting on one page. Filter by name or meaning.

PadPlayHost

The PC side, one per scene. It listens for phones, receives their input and sends them button layouts, vibration and video. It also provides the URL in the QR code.

PadPlayView

Sends a camera or RenderTexture to phones as their own screen. PadPlay SDK only, not in Lite.

PadPlayGyroCamera

Turns a camera with the player's phone. Send the camera's picture to the same player (a PadPlay View with this camera as Source Camera) and the phone becomes a window to look around with; the phone hides the delay by turning the picture just before showing it.

PadPlayGyroPointer

Point the phone at the screen like a remote and where it points becomes a point on screen, for crosshairs and menu cursors. Twisting the wrist does not move it.

PadPlayQrView

Shows the QR code on a Raw Image and redraws it when the URL changes. In Play mode, when this PC is found to block phones, a strip with one line and a button appears under it (hidden while a phone is connected).

PadPlayStatusView

Writes the list of phones into a Text or TextMeshPro text: one line per player with number, model, state, seconds since the last input and ping. For checking on devices; lines of players who left stay (rewritten when the slot comes back).

PadPlayAwayPause

While a joined player's phone is away or disconnected (the host waits for the same phone), it pauses the game under a blurred picture of it with "Paused" and "Please reconnect your phone", and goes on when everyone is back. The SDK pauses a game only where this is placed. Works with Built-in and URP.

PadPlayPhoneOverlay

Sends the uGUI Text, TextMeshPro and Image under this RectTransform as a layer the phone draws over the video. This RectTransform's rectangle is the phone's video area (for a Gyro Camera, anchor it to VisibleViewportRect). Change the texts from scripts as usual; only changes are sent.

PadPlayRaycaster

Use it instead of the Canvas's Graphic Raycaster, not next to it. Transparent parts of Images are not hit and pass through to what is behind, for phone touches and the mouse alike. Touch works without it.

PadPlayDebugOverlay

Shows player count, each player's state, round trip and held buttons in a corner of a built game. While shown, the report key saves a support report and copies it. Use it to get reports from players. It uses no Canvas, so your UI is unaffected.

PadPlayPad

Each phone is one Input System Gamepad, so <Gamepad>/… bindings and PlayerInput just work. Created on PlayerReady, removed on PlayerRemoved.

PadPlayPointerEventData

The uGUI event data of a phone touch (and of PadPlayScreenPointer). It is a PointerEventData, so in any handler eventData is PadPlayPointerEventData p tells you who touched.

PadPlayScreenPointer

Turns one player's "point on the screen" and "pressed or not" into standard uGUI pointer events (Enter, Exit, Down, Up, Click, drags). For pressing UI with something other than a finger on the phone, such as a Gyro Pointer cursor. A plain C# class, not a component; it draws nothing and reads no input. Main thread only.

PadPlayButtonLayout

The buttons and sticks shown on the phone, as an asset or from code. For everyone, set Host › Buttons › Layout; for one player, host.SetLayout.

PadPlayHostSettings

The Host's Inspector values (host.Settings). Each item and its default is under Settings (Inspector) on this page.

PadPlayPcFix

Opens Windows' own settings pages. Neither PadPlay nor the game changes a setting or asks for administrator permission; the player makes the change in the page. Call it only from a button the player pressed (the strip under the QR code uses it through host.FixConnectionHintAsync()).

PadPlayFirstPrompt

The first time a game listens on Windows, Windows may ask whether to allow it (not always). If the player cancels, phones cannot connect, so this gives you one sentence to show before that. PadPlay never shows it by itself. Not needed when your installer adds the firewall rule.

PadPlayDiagnostics

A read-only record of what the host received and sent (host.Diagnostics). PadPlay Debug, Debug Overlay and the report read it. It does not affect the game.

PadPlayDeepCheck

Watches this PC's network adapters for a few seconds to find where a phone's packets stop (Windows' Packet Monitor). Windows Unity Editor only; asks for administrator permission once. In a build it returns Problem NotSupported at once (a game never asks for administrator permission). Usually run from Deep check in PadPlay Debug's Connection tab.

PadPlayEdition

Which edition this is, PadPlay SDK (paid) or PadPlay Lite (free). Lite has no second-screen video (PadPlay View). Everything else, the player count included, behaves the same; no time limit or watermark.

PadPlayTestPhone

A phone for your game's automated tests (Unity Test Framework, Play Mode). It joins the PadPlayHost inside this PC the way the app does, sends buttons, sticks, touches and tilt, and reads the layout, vibration and recenters the game sends. No phone or Wi-Fi needed. Namespace and assembly: PadPlay.Testing; add it to your test assembly's references. Never in a built game.

PadPlayPlayerColors

A color per player (P1 blue, P2 red, P3 green, P4 yellow … 8 colors, repeating). Status View, the preview's fingers and PadPlay Debug use the same colors, so you can tell whose input it is.

Settings (Inspector)

In the same order as the Host Inspector.