Skip to content

LedBoardElementBinder

ClassLEDStudioLEDStudio
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("LED Studio/UI Toolkit LED Board Binder")]
public sealed class LedBoardElementBinder : MonoBehaviour

Binds an authoritative scene LEDStudio.LedBoardController to one named LEDStudio.LedBoardElement in a UI Toolkit document.

public void Bind()

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

Remarks

An existing binding is cleared when the document, 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 UIDocument Document { get; set; }

Returns

UnityEngine.UIElements.UIDocument

public LedBoardController Board { get; set; }

Returns

LEDStudio.LedBoardController

public string ElementName { get; set; }

Returns

System.String