You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the error "Parse Error: Identifier "PhantomCamera2D" not declared in the current scope." intermittently when hitting play from the Godot editor. This has been happening more frequently it seems like, especially after updating to the latest version. Sometimes it runs, other times it fails.
When the error occurs, it points to this line (348):
## Called when a [param PhantomCamera] is added to the scene.[br]
## [b]Note:[/b] This can only be called internally from a
## [param PhantomCamera] node.
func pcam_added_to_scene(pcam: Node) -> void:
if is_instance_of(pcam, PhantomCamera2D) or is_instance_of(pcam, PhantomCamera3D): <-- This line
_pcam_list.append(pcam)
if not pcam.tween_on_load:
pcam.set_has_tweened(self, true) # Skips its tween if it has the highest priority on load
_find_pcam_with_highest_priority()
else:
printerr("This function should only be called from PhantomCamera scripts")
Steps to reproduce
I'm really unsure as it seems to happen randomly upon hitting play. I'm not even using PhantomCamera2D in my game.
(Optional) Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
If you have updated the addon from version 0.6.x ⇾ 0.7 within a project, then it's entirely possible that there's some lingering code in one of the hidden Godot directories that hasn't properly updated the name change of phantom_camera_2D to phantom_camera_2d — lowercased “d” at the end. Creating a new project and transferring over the res:// content might solve it then.
If the above doesn't help, would you be able to share a Minimal Reproduction Project (MRP) where that issue happens?
Mainly so I can see what setup and logic could potentially trigger this.
Haven't come across it myself, and there's not much I can do until I can replicate and verify that a fix would work.
Issue description
I'm getting the error "Parse Error: Identifier "PhantomCamera2D" not declared in the current scope." intermittently when hitting play from the Godot editor. This has been happening more frequently it seems like, especially after updating to the latest version. Sometimes it runs, other times it fails.
When the error occurs, it points to this line (348):
Steps to reproduce
I'm really unsure as it seems to happen randomly upon hitting play. I'm not even using PhantomCamera2D in my game.
(Optional) Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: