-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add a project setting to make subresources unique when creating new resources #3072
Comments
The reason why this is not the default is because duplicating everything by default would cause a lot of performance issues which would be perceived by the engine newcomers as an issue with the engine rather than a setting they need to tweak. |
See also #1848. I think a better way to solve this is to make the "shared" or "unique" status more obvious in the inspector, like Blender does when displaying the number of users next to each resource. |
I didn't mean for it to be a default setting, but a toggle-able one for those who know the ramifications of turning it on.
This would also be greatly helpful in addition to the ability to have new resources be their own new instances by default (if turned on by the user). |
For the aforementioned reasons, I wouldn't provide an option to do it by default, but we can add a modifier key that you can hold (such as Ctrl) when clicking the New (Resource) button. This would enable Local To Scene automatically on the newly created resource. That said, this wouldn't resolve your particular use case with duplicating labels (since no new resources are being created here, and Local To Scene only works with scene instancing). |
How about a new menu option/key modifier that allows for a duplicate object with unique resources? Although I think the ability to toggle this in the editor somewhere would make this a lot easier (so it could just be switched off for some mass duplication work and switched back on again). |
Also see this related issue: I think the most common and biggest issue is with collision shapes or shape resources in general and animations. We really ought to do something about it. |
I posted my solution in the issue just mentioned but I'll restate it here: |
That's my current biggest issue with Godot. I'm experimenting with procedural deformation and I have a scene with a mesh and a linked script for the physics. It's frustrating that when I have multiple copies of the same scene, they share the same deformed mesh. It would be a great help if Godot can make scenes unique or not with a global setting that makes working much easier in these really special cases where shared resources are an inconvenience. |
Describe the project you are working on
A menu system for a game.
Describe the problem or limitation you are having in your project
I duplicate labels (rather than creating each one from scratch) with Area2D's and collision polygon children to create various clickable options for menus.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
It's frustrating to have to keep selecting each child object and choosing Make Sub-Resources Unique for every collision polygon.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
A simple setting in Preferences that allows every duplicated node to automatically be unique.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No, it would be a Godot setting.
Is there a reason why this should be core and not an add-on in the asset library?
It would be a Godot setting.
The text was updated successfully, but these errors were encountered: