# Camera in Godot 4: it is Camera3D now

Camera is called Camera3D in Godot 4, and ClippedCamera is gone in favour of SpringArm3D. In a Godot 4 project, extends Camera fails to parse with Could not find base class "Camera".

Source: https://flockbay.com/godot/camera-in-godot-4/ · Updated 2026-10-30

## What Godot is checking

GDScript resolves the class after extends when the script loads. Camera is not a class in Godot 4, so the script fails to parse and nothing in it runs.

The converter carries Camera to Camera3D and ClippedCamera to Camera3D too. make_current() and the current property select the active camera as before; fov is still in degrees.

## Reproduce it

A Godot 3 script that extends Camera, in a Godot 4 project. The scene is one Node carrying it.

```
extends Camera

func _ready():
	print("ready")

```

## What Godot 4.7.2 prints

```
Godot Engine v4.7.2.stable.mono.official.ed1daf0bf - https://godotengine.org

SCRIPT ERROR: Parse Error: Could not find base class "Camera".
   at: GDScript::reload (res://answers/camera-in-godot-4/repro.gd:1)
ERROR: Failed to load script "res://answers/camera-in-godot-4/repro.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript_resource_format.cpp:46)
```

## Fix it

A Camera3D script that sets its field of view.

```
extends Camera3D

func _ready() -> void:
	fov = 60.0
	print(get_class(), " fov ", fov, ", far ", far)

```

## What the fixed script prints

```
Godot Engine v4.7.2.stable.mono.official.ed1daf0bf - https://godotengine.org

Camera3D fov 60.0, far 4000.0
```

## Run this fix with your agent

Flockbay is the Godot editor with an AI agent built in. Paste this into Flockbay's chat, or into Claude Code or Codex connected to Flockbay over MCP: the agent finds the cause in your project, applies the fix, runs the game headless and reads Godot's output to check it.

```
My Godot project was written for Godot 3 and Godot 4 stops on this: "Parse Error: Could not find base class "Camera".". Port every use to Godot 4. Camera is called Camera3D in Godot 4, and ClippedCamera is gone in favour of SpringArm3D. In a Godot 4 project, extends Camera fails to parse with Could not find base class "Camera". Then run the game headless and check Godot's output for errors.
```

## Verified on Godot 4.7.2

Both scripts on this page were run headless on Godot 4.7.2 (4.7.2.stable.mono.official.ed1daf0bf) on 18 October 2026, and the output above is what Godot printed, unedited.

Where the check lives in Godot's source: [renames_map_3_to_4.cpp line 1465, Camera to Camera3D](https://github.com/godotengine/godot/blob/4.7.2-stable/editor/project_upgrade/renames_map_3_to_4.cpp#L1465), [Camera3D class reference](https://github.com/godotengine/godot/blob/4.7.2-stable/doc/classes/Camera3D.xml).

## Questions

### How do I keep a third-person camera out of walls?

Put the Camera3D under a SpringArm3D, which casts toward the camera and pulls it in when something is in the way.

### What is the 2D camera called?

Camera2D, unchanged, though its current property became enabled with make_current().

Download Flockbay free: Flockbay's agent reads Godot's debugger output and fixes errors like this one in your project, on the official Godot. https://flockbay.com/download/

Related: [ClippedCamera in Godot 4: use a SpringArm3D with a Camera3D](/godot/clippedcamera-in-godot-4/), [SpringArm in Godot 4: it is SpringArm3D now](/godot/springarm-in-godot-4/), [Spatial in Godot 4: Could not find base class "Spatial"](/godot/spatial-in-godot-4/), [Listener in Godot 4: it is AudioListener3D now](/godot/listener-in-godot-4/), [ARVRController in Godot 4: it is XRController3D now](/godot/arvrcontroller-in-godot-4/), [Every verified Godot 4 answer](/godot/), [Does Flockbay change my Godot project?](/docs/does-flockbay-change-my-godot-project/)
