1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Editor: Fix documentation for built-in scripts

This commit is contained in:
Danil Alexeev
2025-05-02 19:22:05 +03:00
parent 1cf573f44d
commit 0a07ae7bf1
6 changed files with 79 additions and 24 deletions

View File

@@ -1963,6 +1963,18 @@ Ref<Resource> SceneState::get_sub_resource(const String &p_path) {
return Ref<Resource>();
}
Vector<Ref<Resource>> SceneState::get_sub_resources() {
const String path_prefix = get_path() + "::";
Vector<Ref<Resource>> sub_resources;
for (const Variant &v : variants) {
const Ref<Resource> &res = v;
if (res.is_valid() && res->get_path().begins_with(path_prefix)) {
sub_resources.push_back(res);
}
}
return sub_resources;
}
//add
int SceneState::add_name(const StringName &p_name) {