1 Star 1 Fork 0

天天编程/godot-docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
class_cameratexture.rst 3.20 KB
一键复制 编辑 原始数据 按行查看 历史
github_url: hide

CameraTexture

Inherits: :ref:`Texture2D<class_Texture2D>` < :ref:`Texture<class_Texture>` < :ref:`Resource<class_Resource>` < :ref:`Reference<class_Reference>` < :ref:`Object<class_Object>`

Texture provided by a :ref:`CameraFeed<class_CameraFeed>`.

Description

This texture gives access to the camera texture provided by a :ref:`CameraFeed<class_CameraFeed>`.

Note: Many cameras supply YCbCr images which need to be converted in a shader.

Properties

:ref:`int<class_int>` :ref:`camera_feed_id<class_CameraTexture_property_camera_feed_id>` 0
:ref:`bool<class_bool>` :ref:`camera_is_active<class_CameraTexture_property_camera_is_active>` false
:ref:`FeedImage<enum_CameraServer_FeedImage>` :ref:`which_feed<class_CameraTexture_property_which_feed>` 0

Property Descriptions

Default 0
Setter set_camera_feed_id(value)
Getter get_camera_feed_id()

The ID of the :ref:`CameraFeed<class_CameraFeed>` for which we want to display the image.


Default false
Setter set_camera_active(value)
Getter get_camera_active()

Convenience property that gives access to the active property of the :ref:`CameraFeed<class_CameraFeed>`.


Default 0
Setter set_which_feed(value)
Getter get_which_feed()

Which image within the :ref:`CameraFeed<class_CameraFeed>` we want access to, important if the camera image is split in a Y and CbCr component.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ttcode-net/godot-docs.git
git@gitee.com:ttcode-net/godot-docs.git
ttcode-net
godot-docs
godot-docs
master

搜索帮助