# ScriptEditorService(ロブロックス クラス) > This service is used for interacting with ScriptDocument instances. - URL:https://roblox.minecraft-okinawa.com/reference/classes/ScriptEditorService/ - 公式:https://create.roblox.com/docs/reference/engine/classes/ScriptEditorService - 受け継いでいるクラス:Instance ## メソッド - `ScriptEditorService:DeregisterAutocompleteCallback(name: string): ()`:Removes a previously registered callback with the name name. - `ScriptEditorService:DeregisterScriptAnalysisCallback(name: string): ()`:Removes a previously registered callback with the name name. - `ScriptEditorService:FindScriptDocument(script: LuaSourceContainer): ScriptDocument`:Returns the open ScriptDocument corresponding to the given LuaSourceContainer, or nil if the given script is not open. - `ScriptEditorService:GetEditorSource(script: LuaSourceContainer): string`:Returns the edit-time source for the given script. - `ScriptEditorService:GetScriptDocuments(): List`:Returns an array of the currently open script documents, including the command bar. - `ScriptEditorService:OpenScriptDocumentAsync(script: LuaSourceContainer, options: Dictionary): Tuple`:Requests that a Script Editor open the specified script. Returns (true, nil) if the request succeeds. Returns (false, string) if the request fails, with a string that describes the problem. - `ScriptEditorService:RegisterAutocompleteCallback(name: string, priority: int, callbackFunction: Function): ()`:Registers an autocomplete callback callbackFunction named name with priority priority. - `ScriptEditorService:RegisterScriptAnalysisCallback(name: string, priority: int, callbackFunction: Function): ()`:Registers a Script Analysis callback callbackFunction named name with priority. - `ScriptEditorService:UpdateSourceAsync(script: LuaSourceContainer, callback: Function): ()`:Generates new content from the old script and updates the script editor if it's open, or the Script instance if the script editor is closed. ## イベント - `ScriptEditorService.TextDocumentDidChange(document: ScriptDocument, changesArray: Variant)`:Fires just after a ScriptDocument changes. - `ScriptEditorService.TextDocumentDidClose(oldDocument: ScriptDocument)`:Fires just before a ScriptDocument object is destroyed, which happens right after the script editor closes. - `ScriptEditorService.TextDocumentDidOpen(newDocument: ScriptDocument)`:Fires just after a ScriptDocument object is created and parented to the service, which happens right after the script editor opens. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)