If you want to forgo collecting and/or creating a bunch of assets to import, feel free use the assets included in the starter project download under the TankArenaAllAssets folder. Who is going to step up the plate and take on TankArena? Is it you? Your pet? Your favorite soft toy when you were a kid? Grab a saved photo of them and drag it into the StreamingAssets directory you created in the Project Window. Feel free to drop files directly into the StreamingAssets folder in your Project view so you can quickly test in the Editor as you go.
From the popup Finder window, navigate through Contents\Resources\Data.Īny file or folder you drop into there will be accessible to your game. On a Mac, right-click the player and click Show Package Contents.On a PC, look in the accompanying folder titled _Data.Navigate to where you output the Unity player. Now click on File\Build Settings and ensure the Target Platform is correctly assigned to the platform you are working on. In the assets window, click on Create and add a new folder to your project.
This creates a unique access point for users to add their own files to the game. Unlike Resource folders, this directory remains intact and accessible in the Unity player. Like Resource Folders, a Streaming Assets directory can be created by intuitively creating a folder named StreamingAssets in your project’s assets directory. For example, an extremely rare event or hidden object that’s not seen often is not something you’d want to load 100% of the time. Resource folders are useful for loading assets at runtime that would not normally be part of the scene or associated with a GameObject. You can do this by adding the required assets to a folder named Resources in your assets directory. Unlike Asset bundles, resource folders are baked into the Unity Player as part of the game.
Asset bundles let you deliver the appropriate asset on a per-platform basis while keeping the initial game install size to a minimum.Īsset bundles can contain anything from individual assets to entire scenes, which also makes them ideal for delivering downloadable content (DLC) for your game. Why use asset bundles? When developing cross-platform games, you may need to create more than one texture or model to respect the limitations of the target platform. Generally, you’d host these files on a remote web server for users to access dynamically. Asset BundlesĪsset bundles let you deliver content to your application outside of your Unity build. There are several ways to serve up resources to Unity at runtime, and each method has its place in game development: asset bundles, resource folders, and streaming assets. The game as it stands is a little “meh”, so you’ll add some on-demand assets to let the player customize the game and create some exciting levels.
But be warned - there are a number of obstacles you need to avoid or destroy in order to reach your goal. Your goal is to proceed to the glimmering tower of light that constitutes the target tile. Hit play and you’ll find yourself in a little tank in a little arena. Finally, thanks to my kids who helped create some of the custom content! I’ve been dying for find a use for that tank! The royalty-free music later in the tutorial is from the excellent Bensound. Note: Credit goes to Eric, our venerable Unity Team Leader for the tank model.