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
- Open Unity (2020+).
- From the top menu select: Window | Asset Store.
- In the new window select the option to “Search Online“.
- Once the Asset Store window is open, search using the keywords “Standard Assets” OR use this link from your browser to access it directly.
- This should open a page with a description of the Standard Assets.
- Once this is done, please click on the button “Open in Unity“.
- At this stage, you may need to log in using your Unity account.
- 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.
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.