C# 클래스 Microsoft.MixedReality.Toolkit.Utilities.Editor.ScreenshotUtility

Utility class to aide in taking screenshots via menu items and public APIs. Screenshots can be capture at various resolutions and with the current camera's clear color or a transparent clear color for use in easy post compositing of images.
파일 보기 프로젝트 열기: danielfranze/HighscoreAR

공개 메소드들

메소드 설명
CaptureScreenshot ( string path, int superSize = 1, bool transparentClearColor = false, Camera camera = null ) : bool

Captures a screenshot with the current main camera's clear color.

GetScreenshotDirectory ( ) : string

Gets a directory which is safe for saving screenshots.

GetScreenshotPath ( ) : string

Gets a unique screenshot path with a file name based on date and time.

비공개 메소드들

메소드 설명
CaptureScreenshot1x ( ) : void
CaptureScreenshot1xAlphaComposite ( ) : void
CaptureScreenshot2x ( ) : void
CaptureScreenshot2xAlphaComposite ( ) : void
CaptureScreenshot4x ( ) : void
CaptureScreenshot4xAlphaComposite ( ) : void

메소드 상세

CaptureScreenshot() 공개 정적인 메소드

Captures a screenshot with the current main camera's clear color.
public static CaptureScreenshot ( string path, int superSize = 1, bool transparentClearColor = false, Camera camera = null ) : bool
path string The path to save the screenshot to.
superSize int The multiplication factor to apply to the native resolution.
transparentClearColor bool True if the captured screenshot should have a transparent clear color. Which can be used for screenshot overlays.
camera Camera The optional camera to take the screenshot from.
리턴 bool

GetScreenshotDirectory() 공개 정적인 메소드

Gets a directory which is safe for saving screenshots.
public static GetScreenshotDirectory ( ) : string
리턴 string

GetScreenshotPath() 공개 정적인 메소드

Gets a unique screenshot path with a file name based on date and time.
public static GetScreenshotPath ( ) : string
리턴 string