Unity standard assets ошибка

You will need to download from asset store. Its no longer shipped in the installer it seems.

If you no longer have the standard assets .unitypackage on disk then you will need to download them again directly from the Asset Store. We no longer ship the standard assets in the 2018.2 installer, nor have they moved over to the new Package Manager system at this point in time.

Refer this and this link


Note: It would be better if you download the latest ones from asset store only instead of searching for old assets which may or may not be present on your system.


In case anyone wants to show up the packages in their options besides the Import packages here is the procedure:

  • Go to your editor location typically i.e. C:Program
    FilesUnityEditor.
  • Add Folder named Standard Assets.
  • Copy Standard Assets unity package from path :
    %AppData%/RoamingUnityAsset Store-5.xUnity TechnologiesUnity EssentialsAsset Packs.(I’m doubtful that «Asset Store-5.x» might be present as I have multiple Unity versions installed on my system so do check on for something similer)
  • Place it in Standard Assets folder which you created in Unity Editor.
  • Restart the editor.

.Note: This worked for my Unity 2018.2.17f1 on Windows 10. For other versions of OS, find the saved unity in the following paths :

  • Win 7: %AppData%UnityAsset Store
  • Win XP: C:Documents and SettingsApplication DataUnityAsset
    Store
  • Mac: ~/Library/Unity/Asset Store/

If you are unable to locate Standard Asset package, as an alternative you can search in windows top right corner which will search the file for you and locate if its present.


Edit: As per the 2018.3.7 this hack stopped working to show up packages in editor.

(Reference)

Установил последнюю версию Unity. Загрузил из assetstore.unity3d.com Standard assets. При импортировании сразу в консоли появились две ошибки:

AssetsStandard AssetsUtilityForcedReset.cs(6,27): error CS0619: ‘GUITexture’ is obsolete: ‘GUITexture has been removed. Use UI.Image instead.’

AssetsStandard AssetsUtilitySimpleActivatorMenu.cs(10,16): error CS0619: ‘GUIText’ is obsolete: ‘GUIText has been removed. Use UI.Text instead.’

Скажите что это значит и что нужно сделать чтобы все заработало?

0 / 0 / 0

Регистрация: 25.04.2020

Сообщений: 2

1

26.04.2020, 01:29. Показов 11883. Ответов 3


Студворк — интернет-сервис помощи студентам

Доброго времени суток.
Я только начинаю разбираться с Unity и на днях при импорте Standart Assets у меня возникла проблема.
Сразу после импорта консоль выдаёт ряд ошибок.
Они длинные, поэтому прячу их в спойлер:

Кликните здесь для просмотра всего текста

Ряд жёлтых:
A polygon of AircraftFuselageBody is self-intersecting and has been discarded. (14 строк)
A polygon of AircraftWingsPropellerFlapRight is self-intersecting and has been discarded.
A polygon of AircraftWingsPropellerFlapLeft is self-intersecting and has been discarded.
A polygon of GroundRunway is self-intersecting and has been discarded. (5 строк)
A polygon of GroundObstacles is self-intersecting and has been discarded.

И 2 красные:
«Exception: This is not possible to be called for standalone input. Please check your platform and code where this is called
UnityStandardAssets.CrossPlatformInput.PlatformSpecific.StandaloneInput.SetAxis (System.String name, Single value) (at Assets/Standard Assets/CrossPlatformInput/Scripts/PlatformSpecific/StandaloneInput.cs:69)
UnityStandardAssets.CrossPlatformInput.CrossPlatformInputManager.SetAxis (System.String name, Single value) (at Assets/Standard Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs:163)
UnityStandardAssets.CrossPlatformInput.InputAxisScrollbar.HandleInput (Single value) (at Assets/Standard Assets/CrossPlatformInput/Scripts/InputAxisScrollbar.cs:14)
UnityEngine.Events.InvokableCall`1[System.Single].Invoke (Single args0) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:206)
UnityEngine.Events.UnityEvent`1[System.Single].Invoke (Single arg0) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_1.cs:58)
UnityEngine.UI.Scrollbar.Rebuild (CanvasUpdate executing) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Scrollbar.cs:114)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/CanvasUpdateRegistry.cs:123)
UnityEngine.Canvas:SendWillRenderCanvases()»

«NullReferenceException: Object reference not set to an instance of an object
PauseMenu.OnMenuStatusChange () (at Assets/SampleScenes/Menu/Scripts/PauseMenu.cs:41)
UnityEngine.Events.InvokableCall.Invoke () (at C:/buildslave/unity/build/Runtime/Export/UnityEvent.cs:165)
UnityEngine.Events.UnityEvent`1[System.Boolean].Invoke (Boolean arg0) (at C:/buildslave/unity/build/Runtime/Export/UnityEvent_1.cs:63)
UnityEngine.UI.Toggle.Rebuild (CanvasUpdate executing) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/Toggle.cs:85)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/CanvasUpdateRegistry.cs:123)
UnityEngine.Canvas:SendWillRenderCanvases()»

Сразу уточняю, речь о Standard Assets, скачанных из официального Asset Store, в данный момент на Unity 2017.4.39f1.
Поиск по гуглу ничего не дал, вообще ничего похожего нет(
Может быть, кто-нибудь уже сталкивался с этой проблемой.

Специально проверил, в Unity 2018 часть ошибок сохраняется (жёлтые, про полигоны), а красные исчезают.
В Unity 2019 практически нет проблем (точнее, они легко решились), но, как и в Unity 2018, настолько изменился интерфейс, что с ним очень сложно обращаться…
(А значительная часть обзоров и уроков на более старые версии)

В Unity 2019 у меня было 2 проблемы, привожу их коды ошибок и решения:

Кликните здесь для просмотра всего текста

Первая ошибка:
IndexOutOfRangeException: Index was outside the bounds of the array. VSCodeEditor.ProjectGeneration.<SyncIfNeeded>b__25_0 (System.String asset) (at Library/PackageCache/com.unity.ide.vscode@1.1.4/Editor/ProjectGeneration/ProjectGeneration.cs:175) System.Linq.Enumerable+SelectListIterator`2[TSource,TResult].MoveNext () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0) System.Linq.Enumerable+ConcatIterator`1[TSource].MoveNext () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0) System.Collections.Generic.HashSet`1[T].UnionWith (System.Collections.Generic.IEnumerable`1[T] other) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0) System.Collections.Generic.HashSet`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0) System.Collections.Generic.HashSet`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0) VSCodeEditor.ProjectGeneration.SyncIfNeeded (System.Collections.Generic.List`1[T] affectedFiles, System.String[] reimportedFiles) (at Library/PackageCache/com.unity.ide.vscode@1.1.4/Editor/ProjectGeneration/ProjectGeneration.cs:177) VSCodeEditor.VSCodeScriptEditor.SyncIfNeeded (System.String[] addedFiles, System.String[] deletedFiles, System.String[] movedFiles, System.String[] movedFromFiles, System.String[] importedFiles) (at Library/PackageCache/com.unity.ide.vscode@1.1.4/Editor/VSCodeScriptEditor.cs:139) UnityEditor.CodeEditorProjectSync.PostprocessSyncProject (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromAssetPaths) (at <90d4bcb003fb405fb09241aed2f178aa>:0) UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at <90d4bcb003fb405fb09241aed2f178aa>:0)
Решилась с помощью:
Window —> Package Manager —> Visual Studio Code Editor —> See all wersions —> Обновить до 1.2.0 —> Перезагрузить Unity.

И вторая:
AssetsStandard AssetsUtilitySimpleActivatorMenu.cs(12,16): error CS0619: ‘GUIText’ is obsolete: ‘GUIText has been removed. Use UI.Text instead.’
Здесь нужно было дописать «using UnityEngine.UI;» и поменять «GUIText» на «Text».



0



Why You Need To Read This Post

Since Unity 2019, the Standard Assets are no longer part of the Application, and instead, if you are trying to import them, you probably ran into compiling issues, making these assets impossible to use. This is the reason why I have created this post that will guide you step-by-step through the process of importing and fixing the Standard Assets even if you use Unity 2020+, so that you are able to use them in your project and, as a result, save you the time and the headaches.

What You Will Achieve After Completing These Steps

So after completing this short tutorial, you should be able to:

  • Import the Standard Assets.
  • Fix the Standard Assets (no coding involved).
  • Use the Standard Assets.

Installing the Standard Assets

  1. Open Unity (2020+).
  2. From the top menu select: Window | Asset Store.
  3. In the new window select the option to “Search Online“.
  4. Once the Asset Store window is open, search using the keywords “Standard Assets” OR use this link from your browser to access it directly.
  5. This should open a page with a description of the Standard Assets.

  1. Once this is done, please click on the button “Open in Unity“.
  2. At this stage, you may need to log in using your Unity account.
  3. Once you are logged in, you will be asked to import the Standard Assets, and you can agree by pressing the “Import Button“.

Fixing the Standard Assets (30 seconds)

At this stage you should have imported the Standard Assets (there should be a folder called Standard Assets in the Project view), but, and it is when the trouble usually starts with Standard Assets and Unity 2020+, you may have errors displayed in the Console window, that prevent you from using them; thankfully, we will apply a quick fix that will make it possible to get around this issue and use the Standard Assets easily.

  • Please download this zip file. This package includes modified files that will ensure that your Standard Assets Work. If you are a little bit curious, this files are SimpleActivatorMenu.cs, Forcedreset.cs, and CrossPlatformInputInitialize.cs.)
  • Please Open Unity.
  • From the top menu please select: Assets | Import Package | Custom Package.
  • Navigate to where you have saved the file that you have previously downloaded (i.e., StandardAssetsFix.unitypackage) and select it.
  • A new window will appear; please click on the button labeled “Import” so that the project can be updated.

That’s it!

Using The Standard Assets (Test)

At this stage, your Standard Assets should be fixed and you can follow the next steps to check that the Standard Assets are working:

  • In Unity, create a new Box (GameObject | 3D Object Cube ).
  • Using The Inspector (right-hand side of the screen), change its position to (0,0,0) and its scale to (100,1,100).
  • Using the Project window, navigate to the folder Standard Assets | Characters | FirstPersonCharacter | Prefabs.
  • Drag and drop the item FPSController to the Scene view (atop the previous box)
  • Play the Scene (CTRL + P): you should be able to navigate the scene using the mouse and the arrow keys on your keyboard.

>> Want to learn more about Unity, using Free Books: Try these 4 books on 2D games Dev Today.<<


Go to unity_tutorials


r/unity_tutorials


r/unity_tutorials

Tutorials for the Unity game engine! Share a tutorial that’s helped you, or that you’ve created and think will help others!




Members





Online



by

WanderingAsian96



Standard assets error

Hi, Everytime I would import the standard assets of unity in to my project, it would always prompt «all compile errors must be fixed……» I just want to know I would always prompt that, and if there are any ways to fix it. Thank you

  • Unico live не запускается системная ошибка
  • Unic 370 ошибка е11
  • Unic 370 ошибка е09
  • Unhandled exception ошибка 3ds max
  • Unhandled exception occurred see log for details call of chernobyl как исправить ошибку