This document is an attempt at mapping Unity C# methods/classes/concepts to the corresponding Godot versions.
Unity and Godot are quite different by nature, but for everything you can do in Unity there's usually a way to do the same in Godot. Hope this can help others!
Unity | Godot |
---|---|
Awake | _EnterTree |
Start | _Ready |
Update | _Process |
OnDestroy | _ExitTree |
Unity | Godot |
---|---|
SerializeField | Export |
ExecuteInEditMode | Tool |
Unity | Godot | Example |
---|---|---|
Editor | EditorInspectorPlugin | |
Texture2D | ImageTexture | Example |
Texture3D | ImageTexture3D | |
ScriptableObject | Resource | |
ScriptedImporter | EditorImportPlugin |
Unity | Godot |
---|---|
UNITY_EDITOR | TOOLS |
UNITY_EDITOR_WIN + UNITY_STANDALONE_WIN | GODOT_WINDOWS |
UNITY_EDITOR_LINUX + UNITY_STANDALONE_LINUX | GODOT_LINUXBSD |
UNITY_EDITOR_OSX + UNITY_STANDALONE_OSX | GODOT_MACOS |