Search Unity

Error: are you missing a using directive or an assembly reference?

Discussion in 'External Tools' started by sreeksuser, Aug 20, 2019.

  1. sreeksuser

    sreeksuser

    Joined:
    Aug 20, 2019
    Posts:
    2
    I installed unity3D, Andriod SDK and JDK. when I imported the: arcore-unity-sdk-v1.11 including examples . I am getting Error.

    This is in Windows10. JDK is 1.8
    unity version-unity2019.2.1f1

    Assets\GoogleARCore\Examples\CloudAnchors\Scripts\AnchorController.cs(40,10): error CS0246: The type or namespace name 'SyncVarAttribute' could not be found (are you missing a using directive or an assembly reference?)
    Assets\GoogleARCore\Examples\CloudAnchors\Scripts\AnchorController.cs(40,10): error CS0246: The type or namespace name 'SyncVarAttribute' could not be found (are you missing a using directive or an assembly reference?)
    Assets\GoogleARCore\Examples\CloudAnchors\Scripts\AnchorController.cs(40,10): error CS0246: The type or namespace name 'SyncVar' could not be found (are you missing a using directive or an assembly reference?)
    Assets\GoogleARCore\Examples\CloudAnchors\Scripts\LocalPlayerController.cs(46,30): error CS0115: 'LocalPlayerController.OnStartLocalPlayer()': no suitable method found to override


    I tried multiple unity versions same error? am I missing anything.
    I
     
  2. RZKsenia

    RZKsenia

    Joined:
    Aug 16, 2019
    Posts:
    1
    I have the same problem (
     
  3. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    3,626
  4. UrMomDerpThanoFish

    UrMomDerpThanoFish

    Joined:
    Oct 18, 2019
    Posts:
    7
    For me the errors
    Assets\Scripts\Pull.cs(3,21): error CS0246: The type or namespace name 'MonoBehaviour' could not be found (are you missing a using directive or an assembly reference?)
    and
    Assets\Scripts\Pull.cs(6,12): error CS0246: The type or namespace name 'Rigidbody2D' could not be found (are you missing a using directive or an assembly reference?)
    keeps happening, does anyone know why and how to fix it
     
  5. UrMomDerpThanoFish

    UrMomDerpThanoFish

    Joined:
    Oct 18, 2019
    Posts:
    7
    Im also in the latest version of unity
     
  6. MHeru_Art07

    MHeru_Art07

    Joined:
    Nov 7, 2016
    Posts:
    3
    does anyone found a solution for this problem?
     
  7. AntonKovalchuk

    AntonKovalchuk

    Joined:
    Dec 14, 2019
    Posts:
    1
    For me the errors

    Code (CSharp):
    1. Assets\Scripts\TachLineAnimation.cs(16,51): error CS0246: The type or namespace name 'SprintRenderer' could not be found (are you missing a using directive or an assembly reference?)
    2.  
    3. Assets\Scripts\TachLineAnimation.cs(20,18): error CS0103: The name 'Timer' does not exist in the current context
    4.  
    Unity 2018.4.13
     
unityunity