cant edit c#

Ok, so i create a new c# script and i select it. it pops up with the lil menu at the side that shows the script in it but how do i edit it? I cant remove the current script or change it. how do i? PS: im new to coding

Apart from the obvious answers, which have already been given, there is a possibility that double-clicking or opening a script does nothing, for example if you didn’t install MonoDevelop along with Unity. So:

  • either run the installer again and make sure MonoDevelop gets installed (highly recommended!)
  • or go to “Edit->Preferences->ExternalTools” and select any text editor (well, not M$ Word or similar…) as “External Script Editor”.

If you double click the icon for the script it should bring up MonoDevelop (or any costum scripting editor).

You cannot edit a script in the editor