API reference
Every PadPlay type, member and setting on one page. Filter by name or meaning.
Settings (Inspector)
In the same order as the Host Inspector.
- Max Players (
Settings.Players.MaxPlayers, default 4) — How many phones can join (1 to 64). - Resume Hold Seconds (
Settings.Players.ResumeHoldSeconds, default 300) — Seconds a dropped player's slot is held. The same phone coming back within it gets the same number; after it, PlayerRemoved. 0 = not held. - Accept New Players (
Settings.Players.AcceptNewPlayers, default on) — Off: new phones are refused (returning players get in). Same value as host.AcceptNewPlayers. - Calibrate Yaw On Connect (
Settings.Players.CalibrateYawOnConnect, default on) — On join and resume, the direction the phone faces becomes forward (the phone's heading reference changes on every launch). - Create Devices (
Settings.Players.CreateDevices, default on) — Creates a PadPlayPad (Gamepad) per player. Off = only raw events such as AttitudeReceived. - Keep Phones Across Play (
Settings.Players.KeepPhonesAcrossPlay, default on) — Editor only. When Play stops the phones wait, and on the next Play they come back with the same numbers without scanning. Built games make a new QR every time. - Modules (
Settings.Modules, default Touch, Attitude, Buttons, Video) — Features in use. The host drops input of unchecked modules and sends nothing for them. Preset: Touch only, Gyro controller, Second-screen controller. - Drag Threshold Mode (
Settings.Touch.DragThresholdMode, default EventSystem) — How the drag start distance is set: EventSystem = like the mouse, Pixels = Drag Threshold Px, PhoneMillimeters = Drag Threshold Mm on the phone (the same finger move on any screen). - Drag Threshold Mm / Px (
Settings.Touch.DragThresholdMm / DragThresholdPx, default 1.5 mm / 10 px) — Mm is used with Drag Threshold Mode PhoneMillimeters, Px with Pixels. - Raycast Only Player Screen (
Settings.Touch.RaycastOnlyPlayerScreen, default on) — Touches hit only the Raycasters of the player's own screen. Off = the frontmost hit of all Raycasters. - Stale Timeout Seconds (
Settings.Touch.StaleTimeoutSeconds, default 0) — Treat a finger as released after this many seconds without data. 0 = never (keep 0: the app does not send fingers that do not move). - Send Ui Events (
Settings.Touch.SendUiEvents, default on) — Turns touches into uGUI events. Off = only TouchReceived. - Click Speed Seconds (
Settings.Touch.ClickSpeedSeconds, default 0.3) — Longest gap between taps that counts as a double tap. - Player Targets (
Settings.Touch.PlayerTargets, default empty) — The screen each player's touches hit (a camera, or a display and rect). Players not listed use all of Display 1. In code: host.Touch.SetPlayerTarget. - Max Extrapolation Ms (
Settings.Attitude.MaxExtrapolationMs, default 150) — How long to predict with the angular velocity while no attitude arrives. Longer fills Wi-Fi gaps better but overshoots if the hand stops meanwhile. - Correction Ms (
Settings.Attitude.CorrectionMs, default 50) — Time to blend the prediction into a newly received attitude. 0 = snap at once. - Delay Buffer Ms (
Settings.Attitude.DelayBufferMs, default 0) — Delay used to interpolate between received attitudes. 0 = always the latest; 10 to 20 smooths normal jitter. - Smoothing (
Settings.Attitude.Smoothing, default 0) — Smoothing of pad.attitude (0 to 0.99). More = less shake, more lag. - Full Style (
Settings.Attitude.FullStyle, default KeepGravity) — How Full recentering works. KeepGravity removes the holding tilt (gravity stays down); KeepDeviceAxes makes the phone's axes the camera's. - Recenter Mode (
Settings.Attitude.RecenterMode, default Yaw) — How a Recenter button and the corner long-press recenter: Yaw = heading only, Full = the whole pose. - Allow Phone Recenter (
Settings.Attitude.AllowPhoneRecenter, default on) — Lets players recenter with a 1-second long press on the phone's top-left corner. Off = only game buttons and code. - Layout (
Settings.Buttons.Layout, default none (PadPlay Setup: stick, A, B)) — The layout on every phone. Empty = no buttons. Changes in Play mode are resent at once. - Allow Haptics (
Settings.Buttons.AllowHaptics, default on) — Off: nothing is sent and any ongoing vibration stops. - Haptic Strength Scale (
Settings.Buttons.HapticStrengthScale, default 1) — Multiplier (0 to 1) for every vibration, to even out devices. - Haptic Refresh Ms / Duration Ms / Min Change (
Settings.Buttons.HapticRefreshMs …, default 100 / 150 / 0.05) — How continuous vibration is sent: resend interval, length of one pulse (the phone stops by itself after it if the Host stops), and the change sent at once. - Codec (
Settings.Video.Codec, default Auto) — Auto = H.264, and JPEG for a phone that asks (slow H.264 decoding). Without an H.264 encoder (macOS, Linux, OpenGL) everyone gets JPEG. - Adaptive Video / Min Kbps / Priority / Min Fps / Min Scale (
Settings.Video.AdaptiveVideo …, default on / 300 / Quality / 30 / 0.5) — Raises and lowers bitrate, fps and size to suit the Wi-Fi. Priority Quality keeps the size and lowers fps first; Smoothness keeps fps and lowers the size first. - Total Max Kbps (
Settings.Video.TotalMaxKbps, default 0) — Bitrate cap for everyone together; each player gets at most this divided by the player count. 0 = no cap. - Max Encoders Per View (
Settings.Video.MaxEncodersPerView, default 2) — The most H.264 encoders one view uses (1 to 4). When one player's Wi-Fi stays much slower than the others', that player and the others get separate encoders, so the others keep their quality. Each extra encoder adds GPU work. 1 = everyone shares one, at the quality of the weakest link. - Jpeg Scale / Fps / Quality (
Settings.Video.JpegScale …, default 0.5 / 30 / 75) — JPEG size (fraction of the View), fps and starting quality. - Pacing Mbps (
Settings.Video.PacingMbps, default 20) — Sends each frame's pieces at this rate so a key frame does not flood the Wi-Fi. 0 = all at once. - Max Playout Frames (
Settings.Video.MaxPlayoutFrames, default 2) — Most frames a phone waits to smooth uneven arrival, only while it is uneven. 0 = never wait. - Use Ltr Recovery (
Settings.Video.UseLtrRecovery, default on) — Repairs lost video with small recovery frames instead of key frames when the encoder supports it. - Prefer Readback (
Settings.Video.PreferReadback, default off) — Reads every frame back to the CPU even on Direct3D 11 / 12. A workaround when the GPU path misbehaves; slower. - Auto Prefer Readback (
Settings.Video.AutoPreferReadback, default on) — On a PC where the GPU-path picture keeps breaking after repairs, switch to readback by itself. It lasts for the rest of the run (each Play in the Editor starts over); the reason shows in PadPlay Debug and the report. Players see nothing. - Mode (
Settings.Preview.Mode, default EditorOnly) — Shows each phone's screen on Game view Display 2, 3… By default only in the Editor. - Player Displays / Show Touches / Show Buttons / Overlay Opacity / Show Caption (
Settings.Preview.PlayerDisplays …, default 2, 3, 4, 5 / on / on / 0.6 / on) — Display number per player (0 = not shown), and how fingers, buttons and the caption are overlaid. - Port (
Settings.Port, default 7780) — The UDP port. If busy, the next free one is used and put in the QR. - Game Name (
Settings.GameName, default empty (Product Name)) — Game name shown on the phone and with the QR code. - Host Addresses (
Settings.HostAddresses, default auto) — IP addresses put in the QR code. Set the Wi-Fi address first on PCs with a VPN or virtual adapters. - Loopback Only (
Settings.LoopbackOnly, default off) — Listens on 127.0.0.1 only, for tests. Phones cannot connect and no firewall prompt appears. - Announce On LAN (
Settings.AnnounceOnLan, default on) — While running, tells this PC's Wi-Fi / LAN that a PadPlay game is here (send only). A phone that cannot connect listens for it to tell whether the PC or the Wi-Fi stops it. Only a name made from the QR token (nobody can join with it), the port and the PC's address go out. - Verbose Log (
Settings.VerboseLog, default off) — Logs joins, leaves, layouts, video and the join URL to the Console. - Display Language (
Settings.DisplayLanguage, default Auto) — Language of the text players see (under the QR code, Status View, Debug Overlay's report lines). Auto = Japanese on Japanese systems, otherwise English. Separate from the Editor language. - Show Connection Hints (
Settings.ShowConnectionHints, default on) — When this PC stops phones, shows one line and a button under the QR code and tells the phone app. For that the host checks the PC when the QR appears (about 5 s, another thread). Off: the API (CheckPcAsync and so on) still works.