Godot 3 Tutorial– User Interface Development

This video GUI/UI (User Interface) development using the Godot Engine.  The Godot game engine provides a number of UI controls and widgets, in fact, the editor itself is created entirely using them!  In this video, we look at all aspects of crafting a user interface including controls, styles, themes, containers, dialogs, and fonts.

The Video

Assets and Code Samples

The font used in this example is Asimov and can be downloaded for free here.


extends Button

func _on_Button_pressed():
  self.text = "Clicked!"

func _on_Button_mouse_entered():
  self.add_color_override("font_color_hover", Color(0,0,0))


extends Button

func _ready():
  var myTheme = Theme.new()
  myTheme.set_color("font_color","Button", Color(0,0,1))


extends Node

func _ready():
  # The following line wires the cancel button of the dialog to our local function
  # The following commented out line of code displays the dialog modally
  # While this version displays the dialog as a movable popup button
  # The following code would be called if you had a node named AcceptDialog added to your scene already
  #$AcceptDialog.get_label().text = "You OK with this?"
  #This code creates a dialog for displaying text to the end user progammatically
  var diag = AcceptDialog.new()
  diag.get_label().text = "You OK with this?"

func _on_Cancel():

func _on_FileDialog_file_selected( path ):
  print("File selected at " + path)


extends Label

func _ready():
  var font = load("res://myfont.fnt");

The assets used in this example can be downloaded here.

Back to Tutorial Series Homepage

Scroll to Top