IssueRaiser

Add ability to reference subresources and inspect them in filesystem

### Describe the project you are working on Godot ### Describe the problem or limitation you are having in your project Godot users, in one way or another, want to reference subresources from scenes. The most common example of this is being able to reference meshes or materials from imported scenes (GLTF or FBX) directly, like they do in other engines such as Unity. But there are also other cases, such as slicing a texture manually and accessing its sub-atlas textures. ### Describe the feature / enhancement and how it helps to overcome the problem or limitation While this is possible to some degree, it is not to others. Not every resource type makes the built-in subresources easily accessible, as example: * Binary resources (including imported scenes such as FBX or gltf) have easily accessible subresources. * Text resources (such as tscn, scripts, etc) are very inefficient for subresource access because the whole file needs to be parsed until the subresource is found. So, ultimately, this feature would work in _some_ file formats but not others. Or, alternatively, it will work in all file formats but with a warning when you open an inefficient one (like .tscn) that accessing these subresources is very inefficient, hence discouraged (which one should it be?). ### Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams There is an implementation for this feature [here](https://github.com/godotengine/godot/pull/84168), so as you can see It

Posted by reduz on Dec 30, 2023, 1:52 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

github (Software)

Add ability to reference subresources and inspect them in filesystem

reduzDec 30, 2023, 1:52 PM

### Describe the project you are working on Godot ### Describe the problem or limitation you are having in your project Godot users, in one way or another, want to reference subresources from scenes. The most common example of this is being able to reference meshes or materials from imported scenes (GLTF or FBX) directly, like they do in other engines such as Unity. But there are also other cases, such as slicing a texture manually and accessing its sub-atlas textures. ### Describe the feature / enhancement and how it helps to overcome the problem or limitation While this is possible to some degree, it is not to others. Not every resource type makes the built-in subresources easily accessible, as example: * Binary resources (including imported scenes such as FBX or gltf) have easily accessible subresources. * Text resources (such as tscn, scripts, etc) are very inefficient for subresource access because the whole file needs to be parsed until the subresource is found. So, ultimately, this feature would work in _some_ file formats but not others. Or, alternatively, it will work in all file formats but with a warning when you open an inefficient one (like .tscn) that accessing these subresources is very inefficient, hence discouraged (which one should it be?). ### Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams There is an implementation for this feature [here](https://github.com/godotengine/godot/pull/84168), so as you can see It

Comments (0)

No comments yet. Start the discussion.

Comment on this issue