| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="CameraTexture" inherits="Texture2D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Texture provided by a [CameraFeed]. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This texture gives access to the camera texture provided by a [CameraFeed]. |
| 8 | [b]Note:[/b] Many cameras supply YCbCr images which need to be converted in a shader. |
| 9 | </description> |
| 10 | <tutorials> |
| 11 | </tutorials> |
| 12 | <members> |
| 13 | <member name="camera_feed_id" type="int" setter="set_camera_feed_id" getter="get_camera_feed_id" default="0"> |
| 14 | The ID of the [CameraFeed] for which we want to display the image. |
| 15 | </member> |
| 16 | <member name="camera_is_active" type="bool" setter="set_camera_active" getter="get_camera_active" default="false"> |
| 17 | Convenience property that gives access to the active property of the [CameraFeed]. |
| 18 | </member> |
| 19 | <member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="false" /> |
| 20 | <member name="which_feed" type="int" setter="set_which_feed" getter="get_which_feed" enum="CameraServer.FeedImage" default="0"> |
| 21 | Which image within the [CameraFeed] we want access to, important if the camera image is split in a Y and CbCr component. |
| 22 | </member> |
| 23 | </members> |
| 24 | </class> |