Water2DCfg.gd 186 B

123456789
  1. tool
  2. extends EditorPlugin
  3. func _enter_tree():
  4. add_custom_type("Water2D", "Sprite", preload("Water2D.gd"), preload("water_icon.png"))
  5. func _exit_tree():
  6. remove_custom_type("Water2D")