Skip to content

LedBoardElementBinder

ClassLEDStudioLEDStudio
public sealed class LedBoardElementBinder : MonoBehaviour

Binds an authoritative scene LedBoardController to one named LedBoardElement in a runtime UI Toolkit panel.

The panel host is a UnityEngine.UIElements.UIDocument or, on Unity 6.5 or newer, a PanelRenderer.

public void Bind()

Resolves the configured panel, board, and named LED element, then connects the element to the board's runtime controls.

Remarks

An existing binding is cleared when the panel, board, or element cannot be resolved unambiguously.

public void Unbind()

Disconnects the resolved LED element when it is still bound to this component's board.

public LedBoardElementBinder()

public LedBoardElement BoundElement { get; }

Returns

LEDStudio.LedBoardElement

public Component UIPanel { get; set; }

Panel host that contains the target element: a UnityEngine.UIElements.UIDocument or, on Unity 6.5 or newer, a PanelRenderer. When null, the panel host on this GameObject is used.

Returns

UnityEngine.Component

public Component ResolvedUIPanel { get; }

The assigned panel host, or the panel host on this GameObject when none is assigned.

Returns

UnityEngine.Component

public LedBoardController Board { get; set; }

Returns

LEDStudio.LedBoardController

public string ElementName { get; set; }

Returns

System.String