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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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