LedSyncManager
public static class LedSyncManagerManages sync groups across multiple LEDStudio.LedBoardController instances. Boards that belong to the same group share a single monotonic clock and advance together, so playlists, animated sources, and flicker defects remain phase-locked across boards. Boards register/unregister on enable/disable; LEDStudio.LedSyncDriver advances the shared clock once per frame in both play and edit mode.
Properties
Section titled “Properties”
GroupIds
Section titled “GroupIds”public static IReadOnlyCollection<string> GroupIds { get; }Currently known group ids (read-only snapshot).
Returns
System.Collections.Generic.IReadOnlyCollection{System.String} — No return description is available.
Methods
Section titled “Methods”
Register(LedBoardController, string)
Section titled “Register(LedBoardController, string)”public static void Register(LedBoardController board, string groupId)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
board |
LEDStudio.LedBoardController | |
groupId |
System.String | |
Unregister(LedBoardController, string)
Section titled “Unregister(LedBoardController, string)”public static void Unregister(LedBoardController board, string groupId)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
board |
LEDStudio.LedBoardController | |
groupId |
System.String | |
GetGroupTime(string)
Section titled “GetGroupTime(string)”public static double GetGroupTime(string groupId)Returns the shared clock time for a group, or -1 when the group does not exist. Callers treat -1 as “fall back to local clock”.
Parameters
| Name | Type | Description |
|---|---|---|
groupId |
System.String |
Returns
System.Double — No return description is available.
SetGroupTime(string, double)
Section titled “SetGroupTime(string, double)”public static void SetGroupTime(string groupId, double time)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
groupId |
System.String | |
time |
System.Double | |
AdvanceGroup(string, float)
Section titled “AdvanceGroup(string, float)”public static void AdvanceGroup(string groupId, float deltaTime)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
groupId |
System.String | |
deltaTime |
System.Single | |
AdvanceAll(float)
Section titled “AdvanceAll(float)”public static void AdvanceAll(float deltaTime)Advance every registered group’s clock by the given delta.
Parameters
| Name | Type | Description |
|---|---|---|
deltaTime |
System.Single | |
Clear()
Section titled “Clear()”public static void Clear()Remove all registered groups. Use when reloading a scene from code.