Godot vérifie si dans la version exportée

if OS.has_feature("standalone"):
    print("Running an exported build.")
else:
    print("Running from the editor.")
Zwazel