LedBoardGroup
public sealed class LedBoardGroup : MonoBehaviourSupervisor component for multi-panel LED configurations.
Composes content into a single master RenderTexture at the combined
resolution of all child panels (with gap pixels for bezels), then
slices it and injects each child's portion via
LEDStudio.LedBoardController.SetGroupOverride(UnityEngine.RenderTexture).
Children retain independent defects, materials, emitter rendering.
Methods
Section titled “Methods”
SetPanelArrangement(LedPanelArrangement, float)
Section titled “SetPanelArrangement(LedPanelArrangement, float)”public void SetPanelArrangement(LedPanelArrangement arrangement, float gapMeters)Selects how the direct child panels are placed and spaces them by gapMeters.
Parameters
| Name | Type |
|---|---|
arrangement | LEDStudio.LedPanelArrangement |
gapMeters | System.Single |
ArrangePanels()
Section titled “ArrangePanels()”public bool ArrangePanels()Repositions the direct child panels for the current arrangement and gap. Call it after changing panel sizes or frames from script; the editor follows such changes automatically outside Play Mode. Returns whether any panel moved.
Returns
System.Boolean
Rebuild()
Section titled “Rebuild()”public void Rebuild()Full rebuild: discover children, compute master resolution, allocate RTs, setup sources, inject overrides. Safe to call repeatedly (idempotent after cleanup).
CaptureSpatialLayout()
Section titled “CaptureSpatialLayout()”public void CaptureSpatialLayout()Maps the Spatial canvas from the current panel positions. Call it after rearranging panels from code while the mapping is locked.
SetGroupLayout(LedGroupLayout)
Section titled “SetGroupLayout(LedGroupLayout)”public void SetGroupLayout(LedGroupLayout layout)Changes how child panels share the group canvas and rebuilds the group.
Parameters
| Name | Type |
|---|---|
layout | LEDStudio.LedGroupLayout |
Constructors
Section titled “Constructors”
LedBoardGroup()
Section titled “LedBoardGroup()”public LedBoardGroup()Properties
Section titled “Properties”
PanelArrangement
Section titled “PanelArrangement”public LedPanelArrangement PanelArrangement { get; }How the group places its direct child panels.
Returns
LEDStudio.LedPanelArrangement
PanelGapMeters
Section titled “PanelGapMeters”public float PanelGapMeters { get; }Distance between neighbouring panel housings in meters.
Returns
System.Single
PanelCount
Section titled “PanelCount”public int PanelCount { get; }Number of discovered child panels.
Returns
System.Int32
MasterTexture
Section titled “MasterTexture”public RenderTexture MasterTexture { get; }The combined master RenderTexture (read-only, for editor preview).
Returns
UnityEngine.RenderTexture
MasterResolution
Section titled “MasterResolution”public Vector2Int MasterResolution { get; }Master resolution including gap pixels.
Returns
UnityEngine.Vector2Int
GroupLayout
Section titled “GroupLayout”public LedGroupLayout GroupLayout { get; }Current group layout mode.
Returns
LEDStudio.LedGroupLayout
GridSize
Section titled “GridSize”public Vector2Int GridSize { get; }Current grid size (only meaningful when layout is Grid).
Returns
UnityEngine.Vector2Int
GapPixels
Section titled “GapPixels”public int GapPixels { get; }Gap pixels between panels.
Returns
System.Int32
ChildBoards
Section titled “ChildBoards”public IReadOnlyList<LedBoardController> ChildBoards { get; }Discovered child board controllers (read-only).
Returns
System.Collections.Generic.IReadOnlyList{LEDStudio.LedBoardController}
SliceUVs
Section titled “SliceUVs”public IReadOnlyList<Rect> SliceUVs { get; }Per-child UV slice rects into the master RT.
Returns
System.Collections.Generic.IReadOnlyList{UnityEngine.Rect}
SpatialMapping
Section titled “SpatialMapping”public LedSpatialMapping SpatialMapping { get; set; }How Spatial panels take their part of the shared canvas.
Returns
LEDStudio.LedSpatialMapping
IsSpatialMappingLocked
Section titled “IsSpatialMappingLocked”public bool IsSpatialMappingLocked { get; }True while panels keep their part of the canvas regardless of how they move, rotate or scale.
Returns
System.Boolean