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

Method _create

editor/script/script_editor_plugin.cpp:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100Ref<EditorSyntaxHighlighter> EditorSyntaxHighlighter::_create() const {
101 Ref<EditorSyntaxHighlighter> syntax_highlighter;
102 if (GDVIRTUAL_IS_OVERRIDDEN(_create)) {
103 GDVIRTUAL_CALL(_create, syntax_highlighter);
104 } else {
105 syntax_highlighter.instantiate();
106 if (get_script_instance()) {
107 syntax_highlighter->set_script(get_script_instance()->get_script());
108 }
109 }
110 return syntax_highlighter;
111}
112
113void EditorSyntaxHighlighter::_bind_methods() {
114 ClassDB::bind_method(D_METHOD("_get_edited_resource"), &EditorSyntaxHighlighter::_get_edited_resource);

Callers 1

editMethod · 0.45

Calls 3

instantiateMethod · 0.45
set_scriptMethod · 0.45
get_scriptMethod · 0.45

Tested by

no test coverage detected