ScriptCreateDialog¶
Inherits: ConfirmationDialog < AcceptDialog < WindowDialog < Popup < Control < CanvasItem < Node < Object
类别: 核心
描述¶
这个 ScriptCreateDialog
根据给定脚本语言的给定模板创建脚本文件。标准用法是在调用 Popup.popup 方法。
func _ready():
dialog.config("Node", "res://new_node.gd") # For in-engine types
dialog.config("\"res://base_node.gd\"", "res://derived_node.gd") # For script types
dialog.popup_centered()