API reference
Every PadPlay type, member and setting on one page. Filter by name or meaning.
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.
PlayerSlot— Whose phone turns this camera. For two or more players, one component per camera with different numbers.View— The PadPlay View that sends this camera. Empty = the View whose Source Camera is this camera.FieldOfView— Vertical field of view of what the phone shows, in degrees. Smaller = zoomed in. Setting it writes Settings.FieldOfView.YawOffsetDegrees— Yaw added on top of the phone (degrees, + = right), e.g. drag to look behind. Not hidden by the phone's correction.BaseRotation— The camera's local rotation for forward. Set from localRotation in Awake.ScreenPointToRay— A world ray through the tap. For a PadPlay touch it uses the camera of the frame the player was looking at, so it stays right while the phone turns fast (the last 256 frames are kept).ResetForward— Makes the phone's current heading this camera's forward (yaw only; gravity stays down). For the whole player, use host.Recenter.Settings.OverscanPercent— Extra picture rendered on each side while the delay is hidden, as % of the visible size. More hides faster turns but leaves fewer pixels for the visible part (10% = 83%).Settings.PhoneCorrection— Lets the phone turn the picture to hide the delay. Turn off only to compare.Settings.Predict— Predicts the attitude at render time from the angular velocity, up to the host's Attitude › Max Extrapolation Ms.Settings.Smoothing— Smoothing (0 to 0.99). Only for a camera whose picture does not go to that player (for example a camera on the PC screen); not used while the delay is hidden.Settings.RecenterOnConnect— RecenterOnConnect: recenter on join and resume. FollowPadRecenter: follow the player's recenter (host.Recenter, a Recenter button, the corner long-press). FollowScreenRotation: follow the phone's screen rotation.IsCorrectingDelay— Whether the phone hides this camera's delay: true when this camera is the Source Camera of a PadPlay View sent to the same player. Shown in the Inspector too.VisibleViewportRect— The part the phone actually shows (inside the overscan). Put UI meant for the phone inside it; text that must not move with the picture goes in a Phone Overlay.TryGetView— Motion-to-photon and correction of what the phone shows now (same as host.TryGetPoseView(PlayerSlot)). HasAttitude: whether any attitude has arrived; the camera turns only after that.Step— Turns the camera for this frame. Called in LateUpdate while AutoUpdate is on (default); turn it off only to call it in your own order.