UnityCameraImage
UnityCameraImage[]
capture an image from the main Unity camera.
UnityCameraImage[camera]
capture an image from the specified Unity camera.
更多信息
- 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.
范例
打开所有单元关闭所有单元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)
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)
文本
Wolfram Research (2017),UnityCameraImage,Wolfram 语言函数,https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html.
CMS
Wolfram 语言. 2017. "UnityCameraImage." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html.
APA
Wolfram 语言. (2017). UnityCameraImage. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/UnityLink/ref/UnityCameraImage.html 年