Skip to content

LedLayoutAsset

ClassLEDStudioLEDStudio
public sealed class LedLayoutAsset : ScriptableObject

Reusable normalized layer layout that can position live source textures on an LED canvas.

public List<LedLayoutLayer> Layers

Returns

System.Collections.Generic.List{LEDStudio.LedLayoutLayer}

public float SafeAreaMargin

Returns

System.Single

public bool ShowSafeAreaOverlay

Returns

System.Boolean

public void MarkChanged()

Tells groups that use this layout to pick up layers edited from code.

public void AddLayer(LedSourceAsset source, string name = null, string sourceId = null)

Adds a full-zone source layer with a stable source ID and the next priority.

Parameters

NameType
sourceLEDStudio.LedSourceAsset
nameSystem.String
sourceIdSystem.String
public void SortLayersByPriority()

Orders layout layers from lowest to highest priority.

public LedLayoutAsset()

public Rect SafeAreaRect { get; }

Returns

UnityEngine.Rect

public int Version { get; }

Changes whenever the layout was edited, so groups that use it refresh. Inspector edits and LedLayoutAsset.AddLayer(LedSourceAsset, string, string) update it; call LedLayoutAsset.MarkChanged() after editing LedLayoutAsset.Layers from code.

Returns

System.Int32