Merge pull request #92280 from dalexeev/editor-fix-built-in-script-documentation

Editor: Fix documentation for built-in scripts
This commit is contained in:
Thaddeus Crews
2025-06-18 18:14:09 -05:00
6 changed files with 79 additions and 24 deletions

View File

@@ -1970,6 +1970,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) {