Skip to content

Manager Autoload

Amethyst-szs edited this page Dec 8, 2023 · 6 revisions

Config Settings

This plugin comes bundled with an autoload/singleton called CameraActionManager which mainly serves as a backend to handle various parts of the different nodes. It provides several configuration options. These settings can be modified through code or through the scene tree's Remote tab while the application is running.

config_show_active_cam: A debugging tool that will display the currently active camera's box and limits in-game, super useful for testing and perfecting your cameras!

config_shake_strength: A float value from 0 to 1 applied as a factor to camera shake strength. It is highly recommended to allow the player to modify this value and adjust the strength of camera shakes for themselves. Many people experience motion sickness or struggle with camera shake in general, accessibility is key!

config_update_mode: Controls if the CameraActions update Camera2Ds in the _process() or _physics_process() functions. Make sure this works for your game to prevent jittery movement.

config_override_cam: By default, CameraActions will target the active camera in the main viewport. You can manually specify a camera with this setting.

Signals

The manager is also a global place for signals about camera updates, detailed below:

action_started(action: CameraAction): Emitted when a new action starts, includes the activated action as a parameter.

action_ended(action: CameraAction): Emitted when the active action ends, includes the now disabled action as a parameter.

highest_priority_changed(priority: PriorityType): Emitted when the highest priority level changes, includes the new priority as a parameter.

Clone this wiki locally