Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ScriptEditorBase
繼承: VBoxContainer < BoxContainer < Container < Control < CanvasItem < Node < Object
用於在 ScriptEditor 中編輯腳本的基礎編輯器。
說明
用於在 ScriptEditor 中編輯腳本的基礎編輯器。不包含文件專案。
方法
void |
add_syntax_highlighter(highlighter: EditorSyntaxHighlighter) |
get_base_editor() const |
訊號
edited_script_changed() 🔗
校驗腳本後發出。
使用者請求特定的文件頁面時發出。
go_to_method(script: Object, method: String) 🔗
使用者請求查看腳本中的指定方法時發出,類似於 request_open_script_at_line。
name_changed() 🔗
校驗腳本後,或者所編輯資源發生更改時發出。
replace_in_files_requested(text: String) 🔗
使用者請求在檔案系統中搜尋與替換文字時發出。
使用者請求本文幫助時發出。
request_open_script_at_line(script: Object, line: int) 🔗
使用者請求查看腳本中的指定行時發出,類似於 go_to_method。
request_save_history() 🔗
使用者進行本文跳轉,並且該條目在同一個腳本中時發出。
request_save_previous_state(state: Dictionary) 🔗
Emitted when the user changes current script or moves caret by 10 or more columns within the same script.
search_in_files_requested(text: String) 🔗
使用者請求在檔案系統中搜索文字時發出。
方法說明
void add_syntax_highlighter(highlighter: EditorSyntaxHighlighter) 🔗
Adds an EditorSyntaxHighlighter to the open script.