Update README.md

This commit is contained in:
Nick 2022-01-05 21:03:45 -05:00 committed by GitHub
parent 5d3be34454
commit 711bf173c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)