Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Type or Namespace Error in Unity 2018.1

Discussion in 'Scripting' started by Timbecile76, May 12, 2018.

  1. Timbecile76

    Timbecile76

    Joined:
    Jul 8, 2009
    Posts:
    248
    Hi All,

    I've just upgraded to Unity 2018.1.0b2. Whenever I create a new script now, none of my existing scripts can see it and I get a Type or Namespace error in Visual Basic.

    It hasn't been an issue in the editor as everything plays just find, but when I run a standalone build, the build completely breaks, and after running the debugger with the standalone (windows build) I'm pretty sure this is the culprit.

    Anyone else having a similar issue?
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    whats the actual error message?
     
  3. Timbecile76

    Timbecile76

    Joined:
    Jul 8, 2009
    Posts:
    248
    Error CS0246 The type or namespace name 'MonsterStats' could not be found (are you missing a using directive or an assembly reference?)
     
  4. Timbecile76

    Timbecile76

    Joined:
    Jul 8, 2009
    Posts:
    248