Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

CameraManager2D

An asset by Hanz
The page banner background of a mountain and forest
CameraManager2D thumbnail image
CameraManager2D thumbnail image
CameraManager2D thumbnail image
CameraManager2D hero image

Quick Information

0 ratings
CameraManager2D icon image
Hanz
CameraManager2D

Manage actions between multiple Camera2Ds. Switching view made easy.

Supported Engine Version
4.2
Version String
0.1.0-alpha
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

CameraManager2D

Manage switching between multiple Camera2Ds

Usage

  1. Replace Camera2D with our ManagedCamera2D
  2. Add CameraManager2D to your scene
  3. Add your cameras to the CameraManager2D
  4. Use ManagedCamera2D.enabled just like how you use Camera2D.enable

Screenshots

README CameraManager in Editor
Camera manager in Editor
README ManagedCamera2D in Editor
Managed camera in Editor
README Custom nodes added by addon
Custom nodes added by addon
README Camera manager in GDScript
Camera manager in GDScript

API

CameraManager2D

Property Type Description
cameras Array[ManagedCamera2D]

add_camera(camera: ManagedCamera2D) -> int

Add your camera to the manager. Returns the camera index in cameras array.

get_camera(index: int) -> ManagedCamera2D

Get your camera from the manager.

remove_camera(index: int)

Remove your camera from the manager.


ManagedCamera2D

Property Type Description
enabled bool Controls wheter the camera can be active or not.
Once ticked, other cameras in CameraManager2D would be disabled.
cam Camera2D Raw Camera2D

Manage actions between multiple Camera2Ds. Switching view made easy.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
CameraManager2D icon image
Hanz
CameraManager2D

Manage actions between multiple Camera2Ds. Switching view made easy.

Supported Engine Version
4.2
Version String
0.1.0-alpha
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers