Unity-Technologies / AssetGraph

Visual Workflow Automation Tool for Unity.
Other
1.13k stars 209 forks source link

How to use relative path with the shared asset bundle? #99

Closed hiroki-o closed 7 years ago

hiroki-o commented 7 years ago

Original report by mmKokotang (Bitbucket: mmKokotang, ).


I would like to know how to let the asset bundle, shared the same texture with one asset bundle, which the path is not the local path.

Even though I build them at the same time and same path, the asset bundle will point to and other asset bundle with local path.

How can I set it to get the other bundle at the same location? (e.g.: ../Asset/)

hiroki-o commented 7 years ago

Original comment by Hiroki Omae (Bitbucket: [Hiroki Omae](https://bitbucket.org/Hiroki Omae), ).


@mmKokotang It is kind of disturbing, but that "Dependencies" path in manifest is always full path and it will not be used at runtime. when you call AssetBundleManifest.GetAllDependencies() to get dependency bundles, you will just receive asset bundle name.

https://docs.unity3d.com/ScriptReference/AssetBundleManifest.GetAllDependencies.html

hiroki-o commented 7 years ago

Original comment by Hiroki Omae (Bitbucket: [Hiroki Omae](https://bitbucket.org/Hiroki Omae), ).


This is coming from Unity's asset bundle build API - not coming from tool. also it does not affect loading behavior, so please disregard the path.