Skip to content

LedSyncManager

ClassLEDStudioLEDStudio
public static class LedSyncManager

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

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.

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

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
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
public static void AdvanceAll(float deltaTime)

Advance every registered group’s clock by the given delta.

Parameters

Name Type Description
deltaTime System.Single
public static void Clear()

Remove all registered groups. Use when reloading a scene from code.