Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Add an "Add Selected Objects (Recursively)" button #296

Open
johnburnett opened this issue Nov 29, 2022 · 4 comments
Open

Request: Add an "Add Selected Objects (Recursively)" button #296

johnburnett opened this issue Nov 29, 2022 · 4 comments

Comments

@johnburnett
Copy link

johnburnett commented Nov 29, 2022

For large-scale renames across many assets it can be painful to repeatedly add the contents of several folders for batch renaming. An easy solution might be to have a button that adds the current selection and all children to the rename list. For the project panel selection, this would recurse into subfolders, and for the hierarchy panel selection this would recurse into child gameobjects.

I think this would be a straighforward change by adding a new button to MulliganRenamerWindow, and a helper method along the lines of LoadSelectedObjectsDeep. Performance might be such that always having the button always enabled would be good (so that clicking the root Assets folder doesn't try to recusively run ObjectIsValidForRename on all assets in the project).

@edwardrowe
Copy link
Contributor

This is a great idea. I think a checkbox would make sense along the edges of the window somewhere. Easy enough to persist it.

@johnburnett
Copy link
Author

I'm in the middle of implementing this, but had already gone the path of a button. Obviously can change it, but I was thinking as a button because I'd expect this to be a relatively rare thing to do and if you forget to uncheck the checkbox it's a potentially Bad Day as you wait for Unity to add tons of objects inadvertantly?

@edwardrowe
Copy link
Contributor

edwardrowe commented Dec 1, 2022 via email

@edwardrowe
Copy link
Contributor

edwardrowe commented Dec 1, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants