![]() ![]() Instantiate(prefab, transform.position + (transform.forward * 1), Quaternion.identity) Var prefab = myLoadedAssetBundle.LoadAsset("Cheese2.prefab") Var myLoadedAssetBundle = AssetBundle.LoadFromFile(Path.Combine(Application.streamingAssetsPath, "test2")) ĭebug.Log("Failed to load AssetBundle!") Now it's time to see the script: public void Evoca() Ok, after this i've build the bundle into my folder "StreamingAssets" and has been created some files This is the AssetBundles Browser windows with my Bundle "test2" and all the Assets I've created a prefab called "Cheese2" with some components attachedĪnd i've created a new AssetBundle called "test2"Īfter this i've looked at the AssetBundle Browser and i've saw that the AssetBundle has been configured corretly with all his dependencies (AssetBundles Browser include automatically all the dependencies of the object) ![]() I've installed AssetBundles Browser package into unity for make me easier the creation of AssetBundles. I've a problem with my object contained in the Bundle because it is instancied without textures (materials).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |