capture an image from the main Unity camera.
UnityCameraImage[camera]
capture an image from the specified Unity camera.


UnityCameraImage
capture an image from the main Unity camera.
UnityCameraImage[camera]
capture an image from the specified Unity camera.
Details and Options
- 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 all close 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)
Related Guides
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
BibTeX
@misc{reference.wolfram_2025_unitycameraimage, author="Wolfram Research", title="{UnityCameraImage}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html}", note=[Accessed: 17-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_unitycameraimage, organization={Wolfram Research}, title={UnityCameraImage}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html}, note=[Accessed: 17-August-2025]}