Search Unity

Create a c# file from a custom editor

Discussion in 'Scripting' started by mylesb, Apr 7, 2011.

  1. mylesb

    mylesb

    Joined:
    Feb 17, 2011
    Posts:
    27
    Hi guys :)
    So I'm creating my own toolset, one of which creates entites at the press of a button. When I press that button I want to create a c# class for that entity. The problem I'm having is that I don't know how to rename the class externally without having to go into the class and changing it manually.

    Is it possible?

    Cheers,
    Myles Blasonato.
     
  2. Marrrk

    Marrrk

    Joined:
    Mar 21, 2011
    Posts:
    1,032
    The class name inside the created file? Do you mean the rename when you change the filename in the file browser window?