Skip to content

DeviceLayoutViewBase

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

class DeviceLayoutViewBase

Non-generic MonoBehaviour hook so components like LineRouter can find and notify any concrete device layout view via GetComponents<DeviceLayoutViewBase>(). Concrete views derive from the generic DeviceLayoutView{TGlyph} or from this class directly (e.g. DeviceLayoutListView). Also owns the device-connection plumbing shared by every view: any view enabled in the scene automatically rebuilds when a device is added or removed at runtime.

Methods

protected virtual void OnEnable()

protected virtual void OnDisable()

protected abstract void Rebuild()

public void RequestRebuild()

protected static bool IsDeviceConnected(DeviceType device)

True when device is currently connected. In edit mode (no running UPSInput) always returns true so scene authors can preview the layout without needing hardware plugged in.