UnityLink`
UnityLink`

UnityCameraImage

UnityCameraImage[]

capture an image from the main Unity camera.

UnityCameraImage[camera]

capture an image from the specified Unity camera.

Details

Examples

open allclose all

Basic Examples  (2)

Load the Unity Link:

Open a Unity project:

Capture an image from the main camera:

Scope  (4)

Capture an image from the main camera:

Capture an image from a specified camera:

Capture images from all cameras in the current scene:

UnityCameraImage is Listable:

Options  (5)

ImageSize  (2)

Set the displayed size of an image:

Specifying both width and height will add white space if aspect ratios do not match:

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)

Show the Unity Game View in realtime while in Play mode:

Take pictures from different viewpoints in the scene:

Neat Examples  (1)

Show the camera's view with different fields of view:

Wolfram Research (2019), UnityCameraImage, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html.

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_2022_unitycameraimage, author="Wolfram Research", title="{UnityCameraImage}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html}", note=[Accessed: 23-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2022_unitycameraimage, organization={Wolfram Research}, title={UnityCameraImage}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html}, note=[Accessed: 23-December-2024 ]}