API reference
Every PadPlay type, member and setting on one page. Filter by name or meaning.
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.
Create— Makes a layout from code. It is not saved as an asset.Element— One button or stick.Orientation— How the phone is held while this layout is shown. Landscape and Portrait lock it; Auto follows how it is held. Changing it resends the layout.HitSlopMm— How far outside a button's drawn edge (mm, 0 to 10; 0 = exactly the shape) a finger still presses it; in a gap, the nearest edge wins. null = the phone's default (2.5 mm). An element's CustomHitSlop wins. Changing it resends the layout. Older apps ignore it and keep 2.5 mm.MarkChanged— Call after changing Elements from code; resent on the next frame. Not needed for edits in the Inspector.