LedLayoutAsset
public sealed class LedLayoutAsset : ScriptableObjectReusable normalized layer layout that can position live source textures on an LED canvas.
Fields
Section titled “Fields”
Layers
Section titled “Layers”public List<LedLayoutLayer> LayersReturns
System.Collections.Generic.List{LEDStudio.LedLayoutLayer}
SafeAreaMargin
Section titled “SafeAreaMargin”public float SafeAreaMarginReturns
System.Single
ShowSafeAreaOverlay
Section titled “ShowSafeAreaOverlay”public bool ShowSafeAreaOverlayReturns
System.Boolean
Methods
Section titled “Methods”
AddLayer(LedSourceAsset, string, string)
Section titled “AddLayer(LedSourceAsset, string, string)”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 |
SortLayersByPriority()
Section titled “SortLayersByPriority()”public void SortLayersByPriority()Orders layout layers from lowest to highest priority.
Constructors
Section titled “Constructors”
LedLayoutAsset()
Section titled “LedLayoutAsset()”public LedLayoutAsset()Properties
Section titled “Properties”
SafeAreaRect
Section titled “SafeAreaRect”public Rect SafeAreaRect { get; }Returns
UnityEngine.Rect