Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
Mise à niveau de Godot 4.3 vers Godot 4.4
Pour la plupart des jeux et applications fabriqués en 4.3, il devrait être relativement sûr de migrer en 4.4. Cette page a l'intention de couvrir tout ce dont vous avez besoin de faire attention à lors de la migration de votre projet.
Changements incompatibles
Si vous migrez de la 4.3 à la 4.4, les changements cassants énumérés ici pourraient vous affecter. Les changements sont regroupés par zones/systèmes.
This article indicates whether each breaking change affects GDScript and whether the C# breaking change is binary compatible or source compatible:
Binary compatible - Existing binaries will load and execute successfully without recompilation, and the run-time behavior won't change.
Compatible source - Le code source compilera avec succès sans changement lors de la mise à niveau de Godot.
Core
Modifications |
Compatible GDScript |
Compatible binaire C# |
Compatible source C# |
Intégré |
|---|---|---|---|---|
FileAccess |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
OS |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
La méthode |
❌ |
✔️ |
✔️ |
|
RegEx |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
La méthode |
✔️ |
✔️ |
✔️ |
|
Semaphores |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
TranslationServer |
||||
La méthode |
✔️ |
✔️ |
✔️ |
Exporte les annotations
Avertissement
The behavior of @export_file changed in Godot 4.4. When assigning a new value
from the Inspector, the path is now stored and returned as a uid:// reference
instead of the traditional res:// path(GH-97912). This is a breaking change and may
cause issues if you're expecting res://-based paths in scripts or serialized
files.
For example, exported arrays of files may now contain a mix of uid:// and
res:// paths, especially if they were partially edited in the Inspector.
Dans la version 4.4, le seul moyen de garder le format res:// format est d'éditer manuellement les fichiers .tscn ou .tres dans un éditeur de texte. À partir de Godot 4.5, une nouvelle annotation @export_file_path peut être utilisée pour garder explicitement l'ancien comportement et exporter des chemins res:// bruts.
Nœuds GUI
Modifications |
Compatible GDScript |
Compatible binaire C# |
Compatible source C# |
Intégré |
|---|---|---|---|---|
RichTextLabel |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
La méthode |
✔️ |
✔️ |
✔️ |
|
GraphEdit |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
Le signal |
❌ |
❌ |
❌ |
Physique
Modifications |
Compatible GDScript |
Compatible binaire C# |
Compatible source C# |
Intégré |
|---|---|---|---|---|
SoftBody3D |
||||
La méthode |
✔️ |
✔️ |
✔️ |
Rendu
Modifications |
Compatible GDScript |
Compatible binaire C# |
Compatible source C# |
Intégré |
|---|---|---|---|---|
CPUParticles2D |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
CPUParticles3D |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
GPUParticles2D |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
GPUParticles3D |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
RenderingDevice |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
La méthode |
❌ |
✔️ |
✔️ |
|
La méthode |
✔️ |
✔️ |
✔️ |
|
La méthode |
✔️ |
✔️ |
✔️ |
|
La méthode |
✔️ |
✔️ |
✔️ |
|
RenderingServer |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
Shader |
||||
La méthode |
✔️ |
❌ |
❌ |
|
La méthode |
✔️ |
❌ |
✔️ |
|
VisualShaderNodeCubemap |
||||
La propriété |
✔️ |
❌ |
❌ |
|
VisualShaderNodeTexture2DArray |
||||
La propriété |
✔️ |
❌ |
❌ |
Note
En C#, l'énumération RenderingDevice.StorageBufferUsage casse la compatibilité en raison de la façon dont le générateur de liaisons détecte le préfixe enum. De nouveaux membres ont été ajoutés dans GH-100062 à l’énumération, ce qui a forcé les membres de l'énumération à être renommés.
Extensions pour l'éditeur
Modifications |
Compatible GDScript |
Compatible binaire C# |
Compatible source C# |
Intégré |
|---|---|---|---|---|
EditorInterface |
||||
La méthode |
✔️ |
✔️ |
✔️ |
|
La méthode |
✔️ |
✔️ |
✔️ |
|
La méthode |
✔️ |
✔️ |
✔️ |
|
EditorSceneFormatImporter |
||||
Méthode |
❌ |
❌ |
❌ |
|
EditorTranslationParserPlugin |
||||
La méthode |
❌ |
❌ |
❌ |
Note
La méthode _get_import_flags n'était jamais utilisée par le moteur. Elle a été supprimée malgré la rupture de compatibilité car il n'y a aucun moyen pour les utilisateurs de s'appuyer sur ce comportement affectant le moteur.
Changements de comportement
Core
Note
The Curve resource now enforces its value range, so min_value and max_value need to be changed
if any of the points fall outside of the default [0, 1] range.
Rendu
Note
The VisualShaderNodeVec4Constant shader node had its input type changed to Vector4. Users need to
recreate the values in their constants.
CSG
Note
The CSG implementation now uses Emmett Lalish's Manifold library (GH-94321).
The new implementation is more consistent with manifold definitions and fixes a number of bugs and stability
issues. As a result, non-manifold meshes are no longer supported. You can use MeshInstance3D for
rendering non-manifold geometry, such as quads or planes.
Android
Note
Les événements de capteur Android ne sont plus activés par défaut (GH-94799). Les projets qui utilisent des événements de capteurs peuvent leur activer selon les besoins dans les paramètres de projet sous Périphériques d'entrée > Capteurs.