mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Automatically activate camera monitoring when using CameraTexture.
This commit is contained in:
parent
1f56d96cf2
commit
e9e455823e
2 changed files with 7 additions and 1 deletions
|
|
@ -142,7 +142,12 @@ bool CameraTexture::get_camera_active() const {
|
|||
}
|
||||
}
|
||||
|
||||
CameraTexture::CameraTexture() {}
|
||||
CameraTexture::CameraTexture() {
|
||||
// Note: When any CameraTexture is created, we need to automatically activate monitoring
|
||||
// of camera feeds. This may incur a small lag spike, so it may be preferable to
|
||||
// enable it manually before creating the camera texture.
|
||||
CameraServer::get_singleton()->set_monitoring_feeds(true);
|
||||
}
|
||||
|
||||
CameraTexture::~CameraTexture() {
|
||||
if (_texture.is_valid()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue