Add option to replace "Detach Script" button with "Extend Script" for instances and custom classes #11289
afterlightgames
started this conversation in
Editor
Replies: 2 comments 5 replies
-
I don't think that it's very clear that Assuming there is some support for
I think we should see how much demand there is for this, and how common it is to prefer one or the other in typical workflows. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When working with instanced scenes and custom classes that have scripts attached, I often want to extend the attached script to add functionality to a specific instance or create a subclass that extends it. This happens far more often than wanting to detach the script, however, only the "Detach Script" button is displayed at the top of the dock when these nodes are selected, requiring us to right click the node to reveal the "Extend Script" option.
I propose an option to replace the "Detach Script" button with the "Extend Script" button at the top of the scene tree dock when an instanced scene or custom node with an attached script is selected. It's a small change that would likely be simple to implement yet could improve the user experience as I imagine fewer scenarios where a user needs to detach a script from an instance or custom class instead of extending it, and if they did wish to do so the "Detach Script" option still exists in the context menu and the inspector. At the very least, having both buttons side by side would be a welcome improvement.
Beta Was this translation helpful? Give feedback.
All reactions