Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Error with sample Assets

Discussion in 'Editor & General Support' started by DontEatGlue, Jan 30, 2015.

  1. DontEatGlue

    DontEatGlue

    Joined:
    Jan 28, 2015
    Posts:
    1
    Everytime i try to play it says this: Assets/SampleAssets/2D/Scripts/Platformer2DUserControl.cs(2,25): error CS0234: The type or namespace name `CrossPlatformInput' does not exist in the namespace `UnitySampleAssets'. Are you missing an assembly reference?

    Here is a screenshot: upload_2015-1-30_3-52-15.png
     
  2. Rasmus Selsmark

    Rasmus Selsmark

    Joined:
    Mar 13, 2013
    Posts:
    120
    Which version of Unity and where did you get Sample Assets from (installed or Asset Store)? You should probably import the CrossPlatformInput package as well from Assets->Import Package menu.

    /Rasmus
     
  3. Aurore

    Aurore

    Director of Real-Time Learning Unity Technologies

    Joined:
    Aug 1, 2012
    Posts:
    3,106
    Please use a title relevant to your problem. Thanks.
     
  4. lopjop

    lopjop

    Joined:
    Nov 10, 2013
    Posts:
    1
    I'm using Unity 5 and I got the same problem :(
     
  5. Stevepunk

    Stevepunk

    Joined:
    Oct 20, 2013
    Posts:
    205
    Same problem here:

    The type or namespace name `CrossPlatformInput' does not exist in the namespace `UnityStandardAssets'. Are you missing an assembly reference?
     
  6. g-hoot

    g-hoot

    Joined:
    Apr 18, 2015
    Posts:
    69
    I had the same issue. Changed the using statement to "using UnityStandardAssets.CrossPlatformInput;" and all is well.
     
    devdeeplocal likes this.
  7. piyush1011

    piyush1011

    Joined:
    Nov 23, 2016
    Posts:
    7
    Re installe the assets and required asset import
     
    GentleXY likes this.
  8. sebastiansgames

    sebastiansgames

    Joined:
    Mar 25, 2014
    Posts:
    114
    I found that the 'using' path got confused due to the 'Standard Assets' folder having a space in its name. I renamed the folder 'StandardAssets' and this error went away.
     
  9. roger1891

    roger1891

    Joined:
    Oct 16, 2018
    Posts:
    2
    This worked for me. Thanks
     
    WheelOfFortune likes this.
  10. Empereur7

    Empereur7

    Joined:
    Apr 7, 2018
    Posts:
    65
    Error building Player because script had compiler errors
    I do a lot of research on the net but their answer does not bring me the solution, help me please because I have several error building; Assets / StandardAsset / CrossPlatformInput / Scripts / TouchPad.cs (87,26): error CS0246: The type or namespace name `Vector3 'could not be found. Are you missing an assembly reference?

    Capture d’écran 27-12-2018 01.22.47.png
     
  11. andersonmerci

    andersonmerci

    Joined:
    Mar 28, 2018
    Posts:
    1
    [QUOTE = "roger1891, post: 3862636, membro: 2174008"] Isso funcionou para mim. Obrigado [/ QUOTE]
    Resolveu aqui também...

    apenas o espaço
     
  12. randyami

    randyami

    Joined:
    Sep 23, 2020
    Posts:
    4
    This was the problem for sure! Thanks! Will watch for similar problems in the future.
     
  13. Beni_DGB

    Beni_DGB

    Joined:
    Jul 20, 2020
    Posts:
    1
    This worked. Thanks
    sampurasun
     
  14. LZG02

    LZG02

    Joined:
    Nov 28, 2021
    Posts:
    1
    that works