Class ImageService
Class ImageService.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.RuntimeState
Syntax
public class ImageService : MonoBehaviour
Fields
frameRender
The frame render
Declaration
public static List<long> frameRender
Field Value
Type | Description |
---|---|
List<Int64> |
Properties
ScreenshotTexture
Gets the screenshot texture.
Declaration
public Texture2D ScreenshotTexture { get; }
Property Value
Type | Description |
---|---|
Texture2D | The screenshot texture. |
Methods
Get(Action<Byte[]>)
Gets the specified callback.
Declaration
public void Get(Action<byte[]> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<Byte[]> | callback | The callback. |
Get(ImageFormat, Int32, Nullable<Vector2Int>, Action<Byte[]>)
Gets the specified format.
Declaration
public void Get(ImageFormat format, int formatQuality, Vector2Int? resolution, Action<byte[]> callback)
Parameters
Type | Name | Description |
---|---|---|
ImageFormat | format | eg: image/jpg |
Int32 | formatQuality | The format quality. |
Nullable<Vector2Int> | resolution | Null defaults to screen resolution |
Action<Byte[]> | callback | The callback. |
LateUpdate()
Lates the update.
Declaration
public void LateUpdate()