`UnityEditor' could not be found??? Oo

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

  1. IJM

    IJM

    Member

    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

    Member

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

    TomMars

    New Member

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

    gioworks

    New Member

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

    flaminghairball

    Member

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

    gioworks

    New Member

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