Search Unity

@script ExecuteInEditMode() in c#?

Discussion in 'Scripting' started by ratamorph, Mar 4, 2008.

  1. ratamorph

    ratamorph

    Joined:
    Sep 2, 2007
    Posts:
    458
    How do I use this statement in C#?
     
  2. jeremyace

    jeremyace

    Joined:
    Oct 12, 2005
    Posts:
    1,661
    Code (csharp):
    1.  
    2. [ExecuteInEditMode]
    3.  
    Put it above the class you want to execute.

    -Jeremy
     
  3. ratamorph

    ratamorph

    Joined:
    Sep 2, 2007
    Posts:
    458
    nice, thanks man!