gd-dynamic-sound/plugin.gd

14 lines
423 B
GDScript

@tool
extends EditorPlugin
const MIN_MAJOR : int = 4
const MIN_MINOR : int = 6
func _enter_tree() -> void:
var v : Dictionary = Engine.get_version_info()
if v.major < MIN_MAJOR or (v.major == MIN_MAJOR and v.minor < MIN_MINOR):
push_error("gd-dynamic-sound requires Godot %d.%d+ (running %s). Some classes may fail to load or behave incorrectly." % [MIN_MAJOR, MIN_MINOR, v.string])
func _exit_tree() -> void:
pass