Add the Screenshot Capture MonoBehaviour to any GameObject for hotkey-driven, no-code screenshots inside a built game.
ScreenshotKitCapture is a MonoBehaviour for no-code captures in builds. Add it via Add Component > ScreenshotKit > Screenshot Capture.
Inspector fields
Field
What it does
Target Camera
Camera to capture. Defaults to Camera.main when empty.
Settings
ScreenshotSettings asset to use. When empty, a Resources ScreenshotKitSettings asset is used, or built-in defaults.
Capture On Hotkey
Poll a hotkey each frame to capture.
Hotkey
The key to poll (default F12), plus optional Require Ctrl / Shift / Alt modifiers.
From script
using DaCruz.ScreenshotKit;using UnityEngine;public class PhotoMode : MonoBehaviour{ public ScreenshotKitCapture capture; void Awake() { capture.OnCaptured += path => Debug.Log($"Saved {path}"); } public void TakePhoto() { string path = capture.Capture(); }}
Capture() returns the saved file path, and OnCaptured fires with the same path after each successful capture (hotkey or scripted).
The built-in hotkey needs the legacy Input Manager. On the new Input System, leave Capture On Hotkey off and call Capture() from your own input action instead.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ScreenshotKit","colors":{"primary":"#FC9712","light":"#FFAB3D","dark":"#E08200"},"favicon":"https://media.brand.dev/3eaeb0c7-8a30-4d73-bd42-28044ced7d33.png","navbar":{"links":[{"href":"https://dacruz.dev","label":"daCruz.dev"}],"primary":{"type":"button","label":"Get it on the Asset Store","href":"https://assetstore.unity.com/preview/356348/1300078"}},"footer":{"socials":{"website":"https://dacruz.dev"}},"search":{"prompt":"Search the ScreenshotKit docs..."},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dacruzdev","hasAudioNarration":false,"actualSubdomain":"dacruzdev","customDomains":[],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-dacruzdev-1549b199","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae95bcf37dad6e4be6c5210:success","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Documentation","count":20},{"language":"default","tag":"Workflows","count":8},{"language":"default","tag":"Runtime API","count":7},{"language":"default","tag":"Configuration","count":5},{"language":"default","tag":"Screenshots","count":4},{"language":"default","tag":"Reference","count":4},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Recording","count":2},{"language":"default","tag":"Overview","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api/runtime-component","slug":"/api/runtime-component","pageMetadata":{"title":"The ScreenshotKitCapture Runtime Component","sidebarTitle":"Runtime Component","description":"Add the Screenshot Capture MonoBehaviour to any GameObject for hotkey-driven, no-code screenshots inside a built game.","href":"/api/runtime-component"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Add the Screenshot Capture MonoBehaviour to any GameObject for hotkey-driven, no-code screenshots inside a built game.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ScreenshotKitCapture`}),` is a `,_jsx(_components.code,{children:`MonoBehaviour`}),` for no-code captures in builds. Add it via `,_jsx(_components.strong,{children:`Add Component > ScreenshotKit > Screenshot Capture`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`inspector-fields`,children:`Inspector fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Target Camera`})}),_jsxs(_components.td,{children:[`Camera to capture. Defaults to `,_jsx(_components.code,{children:`Camera.main`}),` when empty.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Settings`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ScreenshotSettings`}),` asset to use. When empty, a Resources `,_jsx(_components.code,{children:`ScreenshotKitSettings`}),` asset is used, or built-in defaults.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Capture On Hotkey`})}),_jsx(_components.td,{children:`Poll a hotkey each frame to capture.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Hotkey`})}),_jsxs(_components.td,{children:[`The key to poll (default `,_jsx(_components.code,{children:`F12`}),`), plus optional `,_jsx(_components.strong,{children:`Require Ctrl / Shift / Alt`}),` modifiers.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`from-script`,children:`From script`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` DaCruz`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ScreenshotKit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` UnityEngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` PhotoMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` : `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`MonoBehaviour`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ScreenshotKitCapture`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` capture`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Awake`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` capture`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`OnCaptured`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +=`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` path`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Debug`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`$\"Saved `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`path`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` TakePhoto`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` string`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` path`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` capture`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Capture`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Capture()`}),` returns the saved file path, and `,_jsx(_components.code,{children:`OnCaptured`}),` fires with the same path after each successful capture (hotkey or scripted).`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The built-in hotkey needs the legacy Input Manager. On the new Input System, leave `,_jsx(_components.strong,{children:`Capture On Hotkey`}),` off and call `,_jsx(_components.code,{children:`Capture()`}),` from your own input action instead.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`see-also`,children:`See also`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api/capture`,children:`Capture`}),` for the static API this component wraps.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"The ScreenshotKitCapture Runtime Component","sidebarTitle":"Runtime Component","description":"Add the Screenshot Capture MonoBehaviour to any GameObject for hotkey-driven, no-code screenshots inside a built game.","href":"/api/runtime-component"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Inspector fields","slug":"inspector-fields","depth":2,"children":[]},{"title":"From script","slug":"from-script","depth":2,"children":[]},{"title":"See also","slug":"see-also","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"dacruzdev","siteName":"ScreenshotKit","title":"The ScreenshotKitCapture Runtime Component - ScreenshotKit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-23T09:13:26.110Z","originalFileLocation":"api/runtime-component.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add the Screenshot Capture MonoBehaviour to any GameObject for hotkey-driven, no-code screenshots inside a built game.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ScreenshotKit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://media.brand.dev/3eaeb0c7-8a30-4d73-bd42-28044ced7d33.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/3eaeb0c7-8a30-4d73-bd42-28044ced7d33.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/3eaeb0c7-8a30-4d73-bd42-28044ced7d33.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/3eaeb0c7-8a30-4d73-bd42-28044ced7d33.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"The ScreenshotKitCapture Runtime Component - ScreenshotKit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add the Screenshot Capture MonoBehaviour to any GameObject for hotkey-driven, no-code screenshots inside a built game.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ScreenshotKit\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dacruzdev.mintlify.app/api/runtime-component\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dacruzdev.mintlify.site/_mintlify/api/og/v2?division=Screenshots\u0026amp;title=The+ScreenshotKitCapture+Runtime+Component\u0026amp;description=Add+the+Screenshot+Capture+MonoBehaviour+to+any+GameObject+for+hotkey-driven%2C+no-code+screenshots+inside+a+built+game.\u0026amp;theme=6d5064476cb4455435876005\u0026amp;signature=012f6c143caf36c33c2e8e2cd9305bd796877e96a701580ea4d9078d9aea53d2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"The ScreenshotKitCapture Runtime Component - ScreenshotKit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add the Screenshot Capture MonoBehaviour to any GameObject for hotkey-driven, no-code screenshots inside a built game.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dacruzdev.mintlify.site/_mintlify/api/og/v2?division=Screenshots\u0026amp;title=The+ScreenshotKitCapture+Runtime+Component\u0026amp;description=Add+the+Screenshot+Capture+MonoBehaviour+to+any+GameObject+for+hotkey-driven%2C+no-code+screenshots+inside+a+built+game.\u0026amp;theme=6d5064476cb4455435876005\u0026amp;signature=012f6c143caf36c33c2e8e2cd9305bd796877e96a701580ea4d9078d9aea53d2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/dacruzdev/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ScreenshotKit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FC9712\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dacruzdev.mintlify.app/api/runtime-component\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/runtime-component.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dacruzdev.mintlify.app/#organization\",\"name\":\"ScreenshotKit\",\"url\":\"https://dacruzdev.mintlify.app\"},{\"@type\":\"WebSite\",\"@id\":\"https://dacruzdev.mintlify.app#website\",\"name\":\"ScreenshotKit\",\"url\":\"https://dacruzdev.mintlify.app\",\"publisher\":{\"@id\":\"https://dacruzdev.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dacruzdev.mintlify.app/api/runtime-component#webpage\",\"url\":\"https://dacruzdev.mintlify.app/api/runtime-component\",\"name\":\"The ScreenshotKitCapture Runtime Component\",\"description\":\"Add the Screenshot Capture MonoBehaviour to any GameObject for hotkey-driven, no-code screenshots inside a built game.\",\"dateModified\":\"2026-07-23T09:13:26.110Z\",\"isPartOf\":{\"@id\":\"https://dacruzdev.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://dacruzdev.mintlify.app/api/runtime-component#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dacruzdev.mintlify.app/api/runtime-component#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Screenshots\",\"item\":\"https://dacruzdev.mintlify.app/api/capture\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The ScreenshotKitCapture Runtime Component\",\"item\":\"https://dacruzdev.mintlify.app/api/runtime-component\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://dacruzdev.mintlify.app/api/runtime-component#article\",\"headline\":\"The ScreenshotKitCapture Runtime Component\",\"name\":\"The ScreenshotKitCapture Runtime Component\",\"description\":\"Add the Screenshot Capture MonoBehaviour to any GameObject for hotkey-driven, no-code screenshots inside a built game.\",\"url\":\"https://dacruzdev.mintlify.app/api/runtime-component\",\"mainEntityOfPage\":{\"@id\":\"https://dacruzdev.mintlify.app/api/runtime-component#webpage\"},\"dateModified\":\"2026-07-23T09:13:26.110Z\",\"publisher\":{\"@id\":\"https://dacruzdev.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://dacruzdev.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ScreenshotKit\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ScreenshotKit\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/runtime-component.md","siteName":"ScreenshotKit","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open-lines","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Runtime API","icon":"code","groups":[{"group":"Overview","pages":[{"title":"ScreenshotKit Runtime API Overview","sidebarTitle":"Overview","href":"/api/overview"}]},{"group":"Screenshots","pages":[{"title":"Single-Frame Screenshot Capture in ScreenshotKit","sidebarTitle":"Capture","href":"/api/capture"},{"title":"Transparent Background Capture in ScreenshotKit","sidebarTitle":"Transparent Capture","href":"/api/transparent-capture"},{"title":"Cryptomatte and AOV Capture with Mattes in ScreenshotKit","sidebarTitle":"Capture with Mattes","description":"Render a beauty shot plus every enabled AOV pass in one call with CaptureWithMattes, or request individual matte textures via CryptomatteCapture.","href":"/api/capture-with-mattes"},{"title":"The ScreenshotKitCapture Runtime Component","sidebarTitle":"Runtime Component","href":"/api/runtime-component"}]},{"group":"Recording","pages":[{"title":"Animated GIF Recording with GifRecorder in ScreenshotKit","sidebarTitle":"GifRecorder","description":"Record and encode animated GIFs at runtime using the GifRecorder singleton: configure frame rate, quality, and palette, and wire up encoding events.","href":"/api/gif-recorder"},{"title":"Image Sequence Recording with SequenceRecorder in ScreenshotKit","sidebarTitle":"SequenceRecorder","href":"/api/sequence-recorder"}]}]}]},"basePath":"","title":"The ScreenshotKitCapture Runtime Component - ScreenshotKit","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}