Method CaptureScreenshotFromCurrentView
CaptureScreenshotFromCurrentView(Int32, Int32)
Creates a texture of what the camera is currently looking at
Declaration
Texture2D CaptureScreenshotFromCurrentView(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Width in pixels of the texture |
System.Int32 | height | Height in pixels of the texture |
Returns
Type | Description |
---|---|
Texture2D | The screen shot |