You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user