Skip to content

DeviceLayoutActions

Source: Assets/UpscaleSDK/Core/UI/Runtime/DeviceLayout/DeviceLayoutActions.cs

struct DeviceLayoutActionItem

One row in a device layout: which action to draw and what to label it. The action's own InputActionDefinition.GlyphSources is what determines which devices the item is visible on.

Fields

public InputActionDefinition Action

public string Label

class DeviceLayoutActions

Author-once, use-everywhere list of action + label pairs that device layout views consume. Drop one on a scene GameObject and reference it from each device layout view; each view silently skips items whose action has no source matching its device, so the same list serves gamepad, keyboard, and mouse views.

Properties

public IReadOnlyList<DeviceLayoutActionItem> Items

Methods

public void SetItems(IEnumerable<DeviceLayoutActionItem> items)