Search Unity

Lost reference to unity library

Discussion in 'Editor & General Support' started by Levr01, Jul 2, 2019.

  1. Levr01

    Levr01

    Joined:
    Jun 6, 2017
    Posts:
    26
    When i open my project i see 999+ bugs like :

    error CS0103: The name 'tranform' does not exist in the current context
    error CS0103: The name 'Destroy' does not exist in the current context
    error CS0103: The name 'gameObject' does not exist in the current context

    When i open project file in visual studio i see that - https://ibb.co/pQvDmGS

    "MonoBehaviour could not be found" How get reference to MonoBehaviour ?
     

    Attached Files:

    • Bug.png
      Bug.png
      File size:
      763.4 KB
      Views:
      482
  2. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,151
    Delete the library folder in your project directory.
     
  3. Levr01

    Levr01

    Joined:
    Jun 6, 2017
    Posts:
    26
    thanks for fast answer ! ill try to do it but lost my scene settings and still VS cant understand what is a "gameObject" :(
    I delete a Visual Studio 2019 and try to use visual studio 2017 and 2017 find half MonoBehaviour references but still cant work with "gameObject" :(