Begin a Unity-to-Godot migration with one playable scene that includes input, movement, data, and UI. Rebuild that loop in Godot, check its export, and use what you learn to plan the remaining systems.
Start With a Slice, Not a Port
- Choose one playable Unity scene with a real gameplay loop.
- List every prefab, script, ScriptableObject, input binding, UI canvas, and physics layer the slice uses.
- Mark each item as rebuild, replace, defer, or delete before writing Godot code.
- Recreate the slice with Godot scenes and Resources instead of mirroring Unity folders exactly.
Translate GameObjects Into Scene Boundaries
A Unity prefab often becomes a Godot scene, but the boundary should be based on ownership, not on the original asset file. A player scene owns movement nodes, collision, visuals, and local signals. The level scene owns placement, spawning, and high-level connections. UI scenes own their own Control tree and receive data through signals or explicit method calls.
Player GameObject
- Rigidbody2D
- Collider2D
- SpriteRenderer
- PlayerController.cs
- Health.csPlayer.tscn
- CharacterBody2D (player.gd)
- CollisionShape2D
- Sprite2D
- Health (Node, health.gd)
HUD.tscn
- CanvasLayer
- HealthBar (ProgressBar)Convert MonoBehaviours by Responsibility
A single Unity GameObject can collect unrelated scripts over time. When moving to Godot, split by responsibility. Movement belongs near the CharacterBody node. Data definitions belong in Resources. Global coordination belongs in an autoload only when it truly needs to survive scene changes. The script below reads four actions: create move_left, move_right, move_up, and move_down in Project > Project Settings > Input Map first.
extends CharacterBody2D
@export var speed := 220.0
func _physics_process(delta: float) -> void:
var input := Input.get_vector("move_left", "move_right", "move_up", "move_down")
velocity = input * speed
move_and_slide()Replace ScriptableObjects With Resources
Unity ScriptableObjects usually map to Godot Resources when they describe reusable data: item stats, enemy tuning, ability definitions, dialogue entries, and level settings. Keep behavior in scripts attached to scenes unless the data object genuinely needs helper methods.
extends Resource
class_name WeaponStats
@export var display_name := "Practice Sword"
@export var damage := 12
@export var cooldown := 0.35
@export var knockback := 140.0Rebuild These Systems in Order
- Input actions: name movement and interaction actions before writing player code.
- Scene ownership: decide which scene owns spawning, UI updates, and score changes.
- Physics layers: rebuild collisions intentionally instead of copying Unity layer numbers.
- Data Resources: convert the smallest ScriptableObject set needed by the slice.
- Signals: replace broad object references with explicit events where ownership crosses scene boundaries.
What to Delete Instead of Port
Migration is a chance to remove Unity-specific glue. Editor-only helper scripts, old manager singletons, abandoned prefab variants, and workaround code for packages you are not bringing over should not be rewritten. If a system exists only because the old Unity architecture needed it, treat it as suspect.
Proof That the Slice Is Ready
A first migration slice is ready when it can run from a clean Godot project, accept input through named actions, load its tuning data from Resources, update UI without hard-coded global references, and explain its scene ownership in one short diagram. After that, the rest of the project has a pattern to follow.
Verification notes
Sources and revision context
Compiled in Godot 4.7.2. 2 scripts from this article compiled without errors. They were not run.
Godot 4.7 · Scene, resource, and project mapping checked against the 4.7 best-practices and resource docs; prefab behaviour checked against the Unity Manual
Updated November 26, 2026: the movement script names its four Input Map actions, and the Godot scene sketch keeps the health script and puts the health bar in a HUD scene. Updated September 8, 2026. Clarified porting steps and removed unsupported time and productivity claims. The 2 complete scripts in this article were loaded and compiled without errors by Godot 4.7.2.stable.steam.ed1daf0bf on 2026-11-26. Compiling is not running: this checks syntax, class names, and signatures, not behavior.
- Project organization Godot Engine documentation
- Resources Godot Engine documentation
- Nodes and scene instances Godot Engine documentation
- Prefabs Unity Manual
