Double clicking newly-added component saves .components and opens script editor
Right now if I want to create a new component, I
- Go to e.g. Behaviors.components
- Press A
- Change its name in the Inspector
- Double click the component to edit it - nothing happens
- Press Ctrl-S to save Behaviors.components
- Double click the component again to open the editor.
I'd like to skip #5 and #6 :)
Do you mean, auto-saving the file?
Sure, or not requiring a save in order to edit the component. Once the user double clicks a component they have expressed the intention to edit it, so that should be the outcome.
Mmm... I don't like to make "hidden" operations. I prefer to show a message to the user: "The component is not compiled yet, do you want to save and compile the components?". If the user agrees, then it saves the components, compiles them, and opens the output file.
Agreed, then they've moved their fingers to the keyboard to type and can just press Enter to confirm
I close this because, in future versions of the editor, I should remove user components. Instead, I encourage using the new script nodes.