Add project files
This commit is contained in:
commit
ab339c8a2c
81 changed files with 2567 additions and 0 deletions
12
addons/godot-rapier2d/plugin.gd
Normal file
12
addons/godot-rapier2d/plugin.gd
Normal file
|
@ -0,0 +1,12 @@
|
|||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
func _enter_tree():
|
||||
if Engine.is_editor_hint():
|
||||
Engine.set_meta("Rapier2DEditorPlugin", self)
|
||||
var update_tool: Node = load("res://addons/godot-rapier2d/generated/updater/download_update_panel.tscn").instantiate()
|
||||
Engine.get_main_loop().root.call_deferred("add_child", update_tool)
|
||||
|
||||
func _exit_tree():
|
||||
if Engine.has_meta("Rapier2DEditorPlugin"):
|
||||
Engine.remove_meta("Rapier2DEditorPlugin")
|
Reference in a new issue