Generating Scripts with Unity Menu Item
I am trying to make a menu item to generate scripts. I want this item to show in the “Add Component” menu for game objects. The goal is for the menu item to ask for a string input_text
and generate a script with that name. Then, the script is attached to the game object it was called on if the function was called from the “Add Component” menu. The writing onto the text file is giving me problems.