UnityCameraImage
capture an image from the main Unity camera.
UnityCameraImage[camera]
capture an image from the specified Unity camera.
Details
- UnityCameraImage[expr] returns an Image representing the view of a camera in the scene.
- The following options can be specified:
-
ImageSize Automatic display size of the image ImageResolution Automatic the resolution of the image - UnityCameraImage[All] returns the view of all cameras in the current scene.
- UnityCameraImage is Listable.
Examples
open allclose allBasic Examples (2)
Scope (4)
Options (5)
ImageSize (2)
ImageResolution (3)
With ImageResolution -> Automatic, the resolution of the captured image matches the resolution of the Unity Game View:
Set a specific resolution of the captured image:
Specifying both width and height will change what is visible if aspect ratios do not match:
Applications (2)
Text
Wolfram Research (2019), UnityCameraImage, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html.
CMS
Wolfram Language. 2019. "UnityCameraImage." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html.
APA
Wolfram Language. (2019). UnityCameraImage. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html