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 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

Name Type
source LEDStudio.LedSourceAsset
name System.String
sourceId System.String
public void SortLayersByPriority()

Orders layout layers from lowest to highest priority.

public LedLayoutAsset()

public Rect SafeAreaRect { get; }

Returns

UnityEngine.Rect