Skip to content

Commit 0c277af

Browse files
committed
docs(screenshot): tighten ScreenshotCapturer summary
Drop the "Shared by ManageUI.render_ui ... and ScreenshotUtility's editor synchronous-spin path" line. The first sentence already describes the class on its own; naming specific callers in the doc is brittle (goes stale if a call site is added or renamed) and pushed the summary to 4 content lines, over the 1-2 line guidance.
1 parent a697d09 commit 0c277af

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

MCPForUnity/Runtime/Helpers/ScreenshotUtility.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,10 +815,8 @@ private static string GetProjectRootPath()
815815
}
816816

817817
/// <summary>
818-
/// Transient MonoBehaviour that captures the composited frame at end-of-frame via
819-
/// ScreenCapture.CaptureScreenshotAsTexture and invokes a callback. Self-destructs.
820-
/// Shared by ManageUI.render_ui (two-call pending/ready) and ScreenshotUtility's
821-
/// editor synchronous-spin path.
818+
/// Transient MonoBehaviour that yields WaitForEndOfFrame, calls
819+
/// ScreenCapture.CaptureScreenshotAsTexture, invokes the callback, and self-destructs.
822820
/// </summary>
823821
public sealed class ScreenshotCapturer : MonoBehaviour
824822
{

0 commit comments

Comments
 (0)