Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR GDSCRIPT

godot exit func

# Use "return"

func _ready():
    if some_condition:
        print("true")
    else:
        return # breaks execution of the entire function
    print("test")
Source by godotengine.org #
 
PREVIOUS NEXT
Tagged: #godot #exit #func
ADD COMMENT
Topic
Name
9+8 =