Static Methodmigueldeicaza.swiftgodot 0.45.0SwiftGodot
addFeed(_:)
Adds the camera feed
to the camera server.
static func addFeed(_ feed: CameraFeed?)
Other members in extension
Types
enum FeedImage
class Signal1
Signal support.
class Signal2
Signal support.
Type members
static func feeds(
) -> ObjectCollection<CameraFeed> Returns an array of
CameraFeed
s.static func getFeed(index: Int32
) -> CameraFeed? Returns the
CameraFeed
corresponding to the camera with the givenindex
.static func getFeedCount(
) -> Int32 Returns the number of
CameraFeed
s registered.static func removeFeed(CameraFeed?
) Removes the specified camera
feed
.class var godotClassName: StringName
Instance members
var cameraFeedAdded: Signal1
Emitted when a
CameraFeed
is added (e.g. a webcam is plugged in).var cameraFeedRemoved: Signal2
Emitted when a
CameraFeed
is removed (e.g. a webcam is unplugged).