Ideas for improving re parenting of orphaned .UID files #11916
OctagonalHexy
started this conversation in
Editor
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was just testing the new releases UID sidecar files and I noticed the engine only responds to orphaned .uid files by throwing a "file not found" error so I'm starting this discussion to propose some ideas for how the engine could help users reconnect orphaned .uid files.
Im thinking the engine could make use of the popup for reconnecting missing resources when opening them in the editor, but instead for re parenting orphaned .uid files.
I was going to suggest the .uid file store the name and path of its connected file, but I just realized that info can be derived from the name and path of the .uid file itself which is technically enough of A hint for the user to manually locate whatever file they just moved.
If you wanted to make this more efficient for cases where lots of files were renamed or somehow moved without their sidecar files, then unique strings selected from the resources themselves could make the process semiautomatic.
It could be class names for gdscript files but shaders don't have non conflicting class names enforced by the engines language server plus there can still be duplicate class names in separate gdscript files even if the engine wont run them properly. Another approach could be to just pull a few lines randomly and use the existing 'find in files' search to try and find the moved files, that way its easier for users to select the missing files from the manual re parenting popup, but these could end up out of date or somehow select a line that happens to be duplicated in multiple other files like part of a license header comment for example.
If you happen to have had an issue with orphaned .uid files and find this discussion please share your experience to better inform how useful a feature like this would be. Were only A few days into 4.4 and its not clear this is even an issue that will happen often.
Beta Was this translation helpful? Give feedback.
All reactions