I’m working in the Unity Input System, and I’m using the Generate C# Class button found in the inspector of the .inputactions file. I’d like to add a button to the Input Actions Editor itself, this button serve to create a new C# script tailored to fit my preferred input action setup. It would be responsible for a single Action Map, so I’d like to add it to the Editor so that I can select an action map in the left column, and then somewhere else there would be a button for “Generate C# Class” and the button would generate the class specifically for that Action Map. It would have the interface already, as well as events for each action within the action map already laid out.
Overall, this would save me time whenever I start a new project so I wouldn’t need to make 3 or more new ones each time since each project would have multiple maps. Ultimately, the button could go somewhere else, but I would have a strong preference for putting it on the Input Action Editor itself so that I can just click the button immediately after making any adjustments to the input actions.
Apologies if this is an easy question, or an impossible task. I’m not familiar with writing custom editors for the Unity Editor itself, I’ve only written buttons for the inspector panel. If it possible to make edits, all I’m looking for is to add a button, and make the button call a function. I know how to do the rest. Just not familiar with editor stuff.
Thanks!