From 711bf173c74ec1b96596291ffd4fe39228ef051c Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 5 Jan 2022 21:03:45 -0500 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2e3565e8..a9232456 100644 --- a/README.md +++ b/README.md @@ -329,6 +329,7 @@ You have three options: Load from the scene hierarchy by setting "path", load fr #### Asset Bundles 1. Start up a Unity 2017 project (I use Unity 2017.4.40f1 (64-bit), so if you use something else I can't guarantee it will work). 2. In the root directory create a folder called "Editor". In it create a file called "CreateAssetBundle.cs" with the following code in it: + ``` using UnityEditor; using UnityEngine; @@ -348,6 +349,7 @@ public class CreateAssetBundles } } ``` + 3. Create your object in the Unity scene and save it as a prefab. 4. Add all files used (models, prefabs, textures, materials, etc) to an asset bundle by selecting them and using the drop down in the bottom right. Here I am adding a rover model to my "rss" asset bundle for the Real Solar System add-on. ![setting asset bundle](https://user-images.githubusercontent.com/22628069/147954146-e1d610c0-0336-428f-8b32-bfc01090061c.png)