Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

FPS Controller and Standard Assets - script error

Discussion in 'Prefabs' started by odbdl, Apr 16, 2020.

  1. odbdl

    odbdl

    Joined:
    Apr 16, 2020
    Posts:
    1
    Very sorry if this question is not in the right category:
    I'm a beginner using Standard Assets, Unity 2020. Tried using the FPSController (prefab) but keep getting Script error: "associated script cannot be loaded. Fix any compile errors,.."
    I'm seeing this is a standard issue but did not find the solution.
    Thank you for your help.
     
  2. embrain

    embrain

    Joined:
    Mar 12, 2019
    Posts:
    12
    In the status bar (at the bottom of the editor) you will also find the line where the error occurs, tell me the line i tell you whats wrong
     
  3. lord_indigo

    lord_indigo

    Joined:
    May 3, 2020
    Posts:
    1
    Did you ever solved this issue?
    I have the same problem. Which version do you use?
     
  4. Tatertot_Tango

    Tatertot_Tango

    Joined:
    Jun 7, 2020
    Posts:
    1
    I am having the same issue. I am new as well... This is the message i get..

    Assets\Standard Assets\Utility\SimpleActivatorMenu.cs(11,16): error CS0619: 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.'
     
  5. zombies8keagan

    zombies8keagan

    Joined:
    Mar 31, 2020
    Posts:
    1
    I'm having the same issue (also pretty new to this). When I load the script into Visual Studio there are no errors or warnings displayed.

    There are 4 messages though:
    IDE0051 Private member 'FirstPersonController.m_YRotation' is unused.
    IDE0044 Make field Readonly
    IDE0018 Variable declaration can be inlined
    IDE0018 Variable declaration can be inlined
     
  6. Charles_Beauchemin

    Charles_Beauchemin

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    425
    Hi odbdl, if you're a beginner, you should start with a LTS version of Unity. For example, 2019.4 or 2018.4. Unity 2020.1 is in beta and 2020.2 is in alpha.
     
    puzzledpenguin2 likes this.
  7. willgoldstone

    willgoldstone

    Unity Technologies

    Joined:
    Oct 2, 2006
    Posts:
    773
    Hi @odbdl can you confirm which standard assets you're talking about? I believe you're talking about the 2017 edition on the asset store, in which case comment out line 6 of 'ForcedReset.cs' -

    https://gyazo.com/a4d4a313eee2794a7450130dce63f26e

    And lines 10,21, 35 of 'SimpleActivatorMenu.cs' -

    https://gyazo.com/505d28931e9ae577054bc57bb22bda2e

    That'll get you back up and running with those assets in Unity 2020.1. Note this breaks the use of some of the menus in demo scenes but not the prefabs themselves.

    I also recommend you instead take a look at the more recent 2019 Standard Assets we shared here via github -

    https://github.com/Unity-Technologies/Standard-Assets-Characters

    These are still in beta and currently being reworked by our education team who took over the project in December, BUT they do work just fine in 2020.1 Beta 12 (just checked) - just download the zip, open with that version and let unity do the upgrade when it asks.
     
unityunity