Skip to content

Phantom Camera Manager

Is a singleton that runs in the background and manages the addon's nodes. It allows for referencing all instances of PCams and PCamHosts within a scene and can be accessed directly from any script using the PhantomCameraManager class name.

Methods

phantom_camera_2ds

Type: Array[PhantomCamera2D]

Default: null

Contains all the PCam2Ds in the current scene.


Getter

Array[PhantomCamera2D] get_phantom_camera_2ds()

Example
gdscript
PhantomCameraManager.get_phantom_camera_2ds()

phantom_camera_3ds

Type: Array

Default: null

Contains all the PCam3Ds in the current scene.

Note

This has purposely not been strongly typed in order to support _disable_3d export templates.


Getter

Array get_phantom_camera_3ds()

Example
gdscript
PhantomCameraManager.get_phantom_camera_3ds()

phantom_camera_hosts

Type: Array[PhantomCameraHosts]

Default: null

Contains all the PCamHosts in the current scene.


Getter

Array[PhantomCameraHosts] get_phantom_camera_hosts()

Example
gdscript
PhantomCameraManager.get_phantom_camera_hosts()