Skip to content

LedRenderPipelineGuard

ClassLEDStudioLEDStudio
public static class LedRenderPipelineGuard

Coordinates safe manual camera rendering for edit-mode GPU source and optional backend previews, including Scriptable Render Pipeline initialization recovery.

public static void RepairBeforeManualCameraRender()

Clears stale Scriptable Render Pipeline blitter state before an edit-mode manual camera render when no pipeline is active.

public static void RepairAfterManualCameraRender()

Clears edit-mode blitter state retained after a manual camera render.

public static bool IsPlayingOrChangingPlayMode()

Reports whether runtime playback is active or the editor is entering or leaving Play Mode.

Returns

System.Boolean

public static bool CanRenderEditPreview()

Reports whether the editor has completed its domain reload and is stable enough to render an edit-mode preview.

Returns

System.Boolean

public static bool CanManualCameraRender()

Reports whether manual camera rendering is safe for the current play state and configured render pipeline.

Returns

System.Boolean

Remarks

During Play Mode, a configured Scriptable Render Pipeline must already be initialized. Edit-mode rendering also waits for domain reload completion.