Search Unity

Problems with Unity Editor

Discussion in 'Scripting' started by rom, Jul 27, 2006.

  1. rom

    rom

    Joined:
    Jul 2, 2006
    Posts:
    265
    When ever I add Editor Scripts, like TransformSaver, I get an error;

    The type namespace name `UnityEditor` could not be found: Are you missing directive or an assembly reference?

    Any one know how to correct this ?
     
  2. hsparra

    hsparra

    Joined:
    Jul 12, 2005
    Posts:
    750
    I ran into this last night. Unfortunately I do not remember what I did :( At one point I know I closed and reopened Unity. However, I think what fixed it was that I had an error in another script which, when I corrected the syntax error the Editor Script loaded. I would double check the console and make sure you do not have any other errors.
     
  3. Jonathan Czeck

    Jonathan Czeck

    Joined:
    Mar 17, 2005
    Posts:
    1,713
    Did you put the Editor scripts into /Assets/Editor ? That is where they all have to go. Anything that uses the UnityEditor namespace.

    -Jon