MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / create_editor

Function create_editor

editor/script/script_text_editor.cpp:2949–2954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2947}
2948
2949static ScriptEditorBase *create_editor(const Ref<Resource> &p_resource) {
2950 if (Object::cast_to<Script>(*p_resource)) {
2951 return memnew(ScriptTextEditor);
2952 }
2953 return nullptr;
2954}
2955
2956void ScriptTextEditor::register_editor() {
2957 ED_SHORTCUT("script_text_editor/move_up", TTRC("Move Up"), KeyModifierMask::ALT | Key::UP);

Callers 1

_notificationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected