![]() ![]() ![]() String assetBundleDirectory = "Assets/AssetBundles" To read more information on AssetBundle assignments and accompanying strategies, see documentation on Preparing Assets for AssetBundlesĬreate a folder called Editor in the Assets folders, and place a script with the following contents in the folder: using UnityEditor Variant names are not required to build the AssetBundles Once you’ve selected or created an AssetBundle name, you can repeat this process for the right hand drop down to assign or create a Variant name, if you desire.For example: AssetBundle name “environment/forest” will create a bundle named forest under an environment sub folder To add sub folders, separate folder names by a “/”. Note that AssetBundle names do support a type of folder structure depending on what you type. Click “New…” to create a new AssetBundle.If none have yet been created, you’ll see a list like that in the image above.Click the left-hand drop down where it says “None” to reveal the currently registered AssetBundle names.The left-hand drop down assigns the AssetBundle while the right-hand drop down assigns the variant.At the bottom of the inspector, you should see a section to assign AssetBundles and Variants:.Select the asset you want to assign to a bundle from your Project View.To assign a given Asset to an AssetBundle, follow these steps: More detailed information about each piece of the workflow can be found in the other pages in this section of documentation. To get started with AssetBundles, follow these steps. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |