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

Method edit_foreign_resource

editor/editor_node.cpp:4886–4889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4884}
4885
4886void EditorNode::edit_foreign_resource(Ref<Resource> p_resource) {
4887 load_scene(p_resource->get_path().get_slice("::", 0));
4888 callable_mp(InspectorDock::get_singleton(), &InspectorDock::edit_resource).call_deferred(p_resource);
4889}
4890
4891bool EditorNode::is_resource_read_only(Ref<Resource> p_resource, bool p_foreign_resources_are_writable) {
4892 ERR_FAIL_COND_V(p_resource.is_null(), false);

Callers

nothing calls this directly

Calls 3

get_sliceMethod · 0.80
get_pathMethod · 0.45
call_deferredMethod · 0.45

Tested by

no test coverage detected