1. Submit bugs to enter our 5.4 Beta Sweepstakes. Read more about it here.
  2. Unity 5.4 public beta is now available for all users. Grab the build and visit the 5.4 beta forum.
  3. Missing a module? More about the new installer in 5.3 here.
  4. 4.7.1 released for Xcode 7.3 support. Thread here.

`UnityEditor' could not be found??? Oo

Discussion in 'Scripting' started by IJM, Jan 18, 2011.

  1. IJM

    IJM

    Joined:
    Aug 31, 2010
    Messages:
    108
    This is the error in the console:
    The type or namespace name `UnityEditor' could not be found. Are you missing a using directive or an assembly reference?

    I'm using Unity 2.6.1 pro [C#]
     
  2. IJM

    IJM

    Joined:
    Aug 31, 2010
    Messages:
    108
    Oh, I see now.
    It isn't in the "Editor" folder.
     
  3. TomMars

    TomMars

    Joined:
    Dec 24, 2010
    Messages:
    4
    maybe you miss some libraries which you use,add them at the begin:using libraryName;
     
  4. gioworks

    gioworks

    Joined:
    Oct 12, 2011
    Messages:
    138
    I have same problem , can you explain this ?
     
  5. flaminghairball

    flaminghairball

    Joined:
    Jun 12, 2008
    Messages:
    851
    GIOWorks: Create a folder in your Project, name it "Editor", and drag your script into the folder.
     
    Emilian0 likes this.
  6. gioworks

    gioworks

    Joined:
    Oct 12, 2011
    Messages:
    138
    Yes thanks i did it. It works