You’ll need Unity installed with Android build support. Read Get started with Unity on Android for help installing Unity as well as building and deploying to an Android device.
Although the sample application is a project, you will still need to create a blank project to import it into.
Open the Unity Hub
Log in (if you are not already)
Select New Project
Select the 3D (URP) Core template
Enter project name (this will be used as the name of the project folder)
Enter location (path of your project on disk)
Select Create Project
Note that Universal Render Pipeline projects are recommended for mobile applications.
Unity will take a moment to create your new project and build the default assets.
Once Unity has loaded, you will be presented with a template project. You can ignore all of the assets provided by Unity. You will only need to concentrate on the files from the sample project.
Open a web browser
Open the sample project page
You will need to log in (if you haven’t already)
On the asset (Optimizing Collisions with Burst and Neon Intrinsics) page select Add to my assets button
The button will change to Open in Unity. Select it.
A pop-up window will ask to open the asset in Unity. You can do this by selecting the Open Unity Editor button
If Unity fails to open the asset or no pop-up appears, select My Assets button in the top-right of the page:
a. Your assets should appear in a list
b. Find the entry for Optimizing Collisions with Burst and Neon Intrinsics
c. Select Open in Unity button
d. A pop-up will appear as in step 6 above
e. Select Open Unity Editor
The Unity Editor will bring itself to the front and show the Package Manager
You will see the sample project listed and highlighted. Select Download.
Select Import
A warning message will appear because the sample project will replace the project settings in your current project. Since we have only just created this new project, it is fine to overwrite. Select Import.
A further warning may appear as the sample project has additional dependencies which our blank project hasn’t activated yet. Select Install/Upgrade.
The Import Unity Package window will appear. It allows individual files and folders to be imported or ignored. You will need all of the files in the project. Leave all items ticked and select Next.
A second window will open that lists the project settings that will be overwritten. We want the settings from the sample code so leave all items ticked. Select Import.
Once the sample project has been imported, you will see some errors and warnings.
Open File menu and select Build Settings
Select Android from the Platform list
Select Switch Platform
Unity will take a moment to build the assets for the Android platform.
The errors will disappear but some warnings regarding unreachable code will appear. These will be explained later but can be safely ignored for now.
Your scene view will look something like this:
It is worth checking that everything has imported and been built correctly.
Close the Build Settings window
In the Project tab (usually at the bottom in default configurations) you will see the list of asset files.
Open the BurstNeonCollisions folder
Open Scenes folder
Open the scene called SampleScene
Select the Play (triangle) button to launch the program.
The game will launch and you will see an empty environment begin to fill with more and more characters (capsules) over time. It will look something like this:
You will now deploy the sample to your Android device. Your device must already be set up for development. For detailed instructions, read the learning path Get started with Unity on Android .
Open Build Settings from the File menu
Tick the Development Build option
Select Add Open Scenes to add the demo scene to your Scenes in Build list
Plug your Android device into your computer
Once recognized, your device will be listed in the drop-down menu next to Run Device
The screenshot below shows the settings with a Samsung S8 selected as the Run Device
Select Build and Run
Enter a name for the APK (the Android package) and select Save
Unity will take a moment to build the Android version and then automatically deploy it to your connected Android device. Depending on your setup, the build and deployment might take several minutes.