Documentation
¶
Overview ¶
Package CameraServer provides methods for working with CameraServer object instances.
Index ¶
- func AddFeed(feed CameraFeed.Instance)
- func Advanced() class
- func Feeds() []CameraFeed.Instance
- func GetFeed(index int) CameraFeed.Instance
- func GetFeedCount() int
- func OnCameraFeedAdded(cb func(id int), flags ...Signal.Flags)
- func OnCameraFeedRemoved(cb func(id int), flags ...Signal.Flags)
- func RemoveFeed(feed CameraFeed.Instance)
- type Extension
- type ID
- type Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFeed ¶
func AddFeed(feed CameraFeed.Instance)
Adds the camera [param feed] to the camera server.
func Advanced ¶
func Advanced() class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
func GetFeed ¶
func GetFeed(index int) CameraFeed.Instance
Returns the [CameraFeed] corresponding to the camera with the given [param index].
func OnCameraFeedAdded ¶
func OnCameraFeedRemoved ¶
func RemoveFeed ¶
func RemoveFeed(feed CameraFeed.Instance)
Removes the specified camera [param feed].
Types ¶
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.CameraServer
The [CameraServer] keeps track of different cameras accessible in Godot. These are external cameras such as webcams or the cameras on your phone. It is notably used to provide AR modules with a video feed from the camera. [b]Note:[/b] This class is currently only implemented on Linux, macOS, and iOS. On other platforms no [CameraFeed]s will be available. To get a [CameraFeed] on iOS, the camera plugin from [url=https://github.com/godotengine/godot-ios-plugins]godot-ios-plugins[/url] is required.