You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
-moved script to modules
This commit is contained in:
17
tools/script_plugins/terrain/terrain.gd
Normal file
17
tools/script_plugins/terrain/terrain.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
tool # Always declare as Tool, if it's meant to run in the editor.
|
||||
extends EditorPlugin
|
||||
|
||||
|
||||
func get_name():
|
||||
return "Terrain"
|
||||
|
||||
|
||||
func _init():
|
||||
print("PLUGIN INIT")
|
||||
|
||||
|
||||
func _enter_scene():
|
||||
add_custom_type("Terrain","Spatial",preload("terrain_node.gd"),preload("terrain.png"))
|
||||
|
||||
func _exit_scene():
|
||||
remove_custom_type("Terrain")
|
||||
Reference in New Issue
Block a user