Search Unity

Can't find classes like ScreenCapture or Rigidbody2D

Discussion in 'Editor & General Support' started by TRS_ZueStra, Aug 15, 2019.

  1. TRS_ZueStra

    TRS_ZueStra

    Joined:
    Mar 6, 2019
    Posts:
    9
    Hi everyone,

    I have a weird situation. I can't find some classes in the UnityEngine namespace. For example, the classes ScreenCapture and Rigidbody2D are not available in the C# script. But when I move the scripts into the Editor folder they're accessible again. The scripts are located in /Assets/Scripts but it doesn't make any difference when I move them into other Assets subfolders - except the Editor folder.
    I'm using a MacBook, Unity 2019.1.10f1 but I already updated it to the latest 2019.1 version (2019.1.14f1) and Visual Studio Community for Mac 8.2.3. I'm working on an AR app for iOS with AR Foundation and LWRP if this matters.
    Does anybody have an idea how I can get the access to those classes again? I attached a screenshot showing the issue.

    Thank a lot so far and cheers,
    Thiemo
     

    Attached Files:

  2. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    I recommend closing your project and deleting your Library folder (and Temp folder if it exists), as well as any ".csproj" or ".sln" files you have in the project folder, then reopen the project.
     
  3. TRS_ZueStra

    TRS_ZueStra

    Joined:
    Mar 6, 2019
    Posts:
    9
    Thanks for the reply. Unfortunately, the problem still appears.
     
  4. Enough-Patience

    Enough-Patience

    Joined:
    Oct 13, 2020
    Posts:
    1
    Hi i have The same issu did you solve it ?