├── .gitignore ├── README.txt ├── apk └── unity5assetbundleDemo.apk ├── player └── test.apk └── unity5_assetbundle-demo ├── AssetBundles └── Android │ ├── Android │ ├── Android.manifest │ ├── cube.unity3d.manifest │ ├── cubewithscript.unity3d.manifest │ ├── folder1st │ └── folder2nd │ │ └── folder3rd.unity3d.manifest │ ├── material.unity3d.manifest │ ├── scene.unity3d.manifest │ ├── texture.unity3d.manifest │ └── variants │ ├── myassets.hd │ ├── myassets.hd.manifest │ ├── myassets.sd │ ├── myassets.sd.manifest │ └── variant-scene.unity3d.manifest ├── Assets ├── Editor.meta ├── Editor │ ├── RunMoreUnity.cs │ └── RunMoreUnity.cs.meta ├── MyServerData.meta ├── MyServerData │ ├── AssetBundles.meta │ └── AssetBundles │ │ ├── Folder1st.meta │ │ ├── Folder1st │ │ ├── Folder2nd.meta │ │ └── Folder2nd │ │ │ ├── Folder3rd.meta │ │ │ ├── Folder3rd │ │ │ ├── my_12345_prefab.prefab │ │ │ ├── my_12345_prefab.prefab.meta │ │ │ ├── my_67890_prefab.prefab │ │ │ ├── my_67890_prefab.prefab.meta │ │ │ ├── temp_12345_prefab 1.prefab │ │ │ └── temp_12345_prefab 1.prefab.meta │ │ │ └── temp_1234.meta │ │ ├── Folder1st2.meta │ │ └── Folder1st2 │ │ ├── Folder2nd2.meta │ │ └── Folder2nd2 │ │ └── Folder3rd2.meta ├── ScriptsForAssetBundleSystem.meta └── ScriptsForAssetBundleSystem │ ├── AssetBundleLoadOperation.cs │ ├── AssetBundleLoadOperation.cs.meta │ ├── AssetBundleManager.cs │ ├── AssetBundleManager.cs.meta │ ├── AssetScript.meta │ ├── AssetScript │ ├── Rolling.cs │ └── Rolling.cs.meta │ ├── BaseLoader.cs │ ├── BaseLoader.cs.meta │ ├── Editor.meta │ ├── Editor │ ├── AssetbundlesMenuItems.cs │ ├── AssetbundlesMenuItems.cs.meta │ ├── BuildScript.cs │ ├── BuildScript.cs.meta │ ├── Directory_Have_Re_caller.cs │ ├── Directory_Have_Re_caller.cs.meta │ ├── NamedFolderToAssetBundleNameRenamer.cs │ └── NamedFolderToAssetBundleNameRenamer.cs.meta │ ├── ScriptsForDemo.meta │ ├── ScriptsForDemo │ ├── LoadAssets.cs │ ├── LoadAssets.cs.meta │ ├── LoadScenes.cs │ ├── LoadScenes.cs.meta │ ├── LoadVariants.cs │ └── LoadVariants.cs.meta │ ├── TestAssets.meta │ ├── TestAssets │ ├── CuBeUnityLogoAndroidETC1.pkm │ ├── CuBeUnityLogoAndroidETC1.pkm.meta │ ├── CuBeUnityLogoAndroidETC1.tps │ ├── CuBeUnityLogoAndroidETC1.tps.meta │ ├── CuBeUnityLogoAndroidETC1.tpsheet │ ├── CuBeUnityLogoAndroidETC1.tpsheet.meta │ ├── Cube.prefab │ ├── Cube.prefab.meta │ ├── CubeMyMaterial.mat │ ├── CubeMyMaterial.mat.meta │ ├── CubeUnityLogo.png │ ├── CubeUnityLogo.png.meta │ ├── CubeWithScript.prefab │ ├── CubeWithScript.prefab.meta │ ├── VariantTest.meta │ ├── VariantTest │ │ ├── MyAssets HD.meta │ │ ├── MyAssets HD │ │ │ ├── myTexture.png │ │ │ ├── myTexture.png.meta │ │ │ ├── someMaterial.mat │ │ │ └── someMaterial.mat.meta │ │ ├── MyAssets SD.meta │ │ ├── MyAssets SD │ │ │ ├── myTexture.png │ │ │ ├── myTexture.png.meta │ │ │ ├── someMaterial.mat │ │ │ └── someMaterial.mat.meta │ │ ├── variant-scene.unity │ │ └── variant-scene.unity.meta │ ├── testScene.unity │ └── testScene.unity.meta │ ├── TestScenes.meta │ └── TestScenes │ ├── AssetLoader.unity │ ├── AssetLoader.unity.meta │ ├── AssetLoaderWithScript.unity │ ├── AssetLoaderWithScript.unity.meta │ ├── SceneLoader.unity │ ├── SceneLoader.unity.meta │ ├── VariantLoader.unity │ └── VariantLoader.unity.meta └── ProjectSettings ├── AudioManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset └── TimeManager.asset /.gitignore: -------------------------------------------------------------------------------- 1 | # ---------------[ Unity generated ]------------------ # 2 | [Ll]ibrary/ 3 | [Tt]emp/ 4 | [Oo]bj/ 5 | UnityGenerated/ 6 | 7 | # ----[ Visual Studio / MonoDevelop generated ]------- # 8 | 9 | ExportedObj/ 10 | *.svd 11 | *.userprefs 12 | *.csproj 13 | *.pidb 14 | *.suo 15 | *.sln 16 | *.user 17 | *.unityproj 18 | *.booproj 19 | 20 | # -------------[ OS generated ]------------------------ # 21 | .DS_Store 22 | .DS_Store? 23 | ._* 24 | .Spotlight-V100 25 | .Trashes 26 | Icon? 27 | ehthumbs.db 28 | Thumbs.db 29 | 30 | # ============ # 31 | # for others # 32 | # ============ # 33 | 34 | *.log #log files, for some plugins 35 | *.pyc #python bytecode cache, for some plugins. 36 | sysinfo.txt #Unity3D Generated File On Crash Reports 37 | # -------------[ Build ]------------------------ # 38 | *.html 39 | *.unity3d -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | AssetBundle 5.0のデモでは、我々は新しいAssetBundleシステムで何ができるかを実証します。 2 | このデモを実行するには、Unityの5.0ベータ版21以上にしてください。 3 | 4 | 説明: 5 | 1。 6 | 7 | TestScenesフォルダの下の3シーンがそこにいます: 8 | 9 | 1。 10 |  AssetLoader.unityがAssetBundleから通常のアセットをロードする方法を示し、LoadAssets.csスクリプトを参照してください。 11 | 2。 12 | SceneLoader.unityがAssetBundleからシーンをロードする方法を示し、LoadScenes.csスクリプトを参照してください。 13 | 3。 14 | 15 |  VariantLoader.unityバリアントAssetBundleをロードする方法を示し、LoadVariants.csスクリプトを参照してください。 16 | 我々は、仮想資産と同じ結果を達成するためにAssetBundleバリアントを使用しています。デモでは、我々が構築します 17 | 1.「My Assets HD "フォルダ "variant/myassets.hd" AssetBundleへ。 18 | 2.「My Assets SD」フォルダ "variant/myassets.hd" AssetBundleへ。 19 | 3. "variants/variant-scene.unity3d”のなかに”variant-scene.unity" に実際に複合的にAssetBundleに依存するAssetBundleです。 20 | 21 | アセットは正確にこれらのフォルダに一致していることを確認してください。 22 | これらの二つの変種AssetBundles内のオブジェクトは、パイプラインを構築Unityが確保されている全く同じ内部IDを持つことになりますので、 23 | 別のバリアント拡張のAssetBundlesで任意にスイッチアウトすることができます。 24 | ここでは、ファイル拡張子「HD」と「SD」は、私たちがバリアントを呼んでいるものです。あなたはLoadVariants.cs上にあるアクティブなバリアントを変更することができます。 25 | また、アクティブな変形例によれば、正しいAssetBundleを解決する方法を確認するために)AssetBundleManager.RemapVariantName(を参照してください。 26 | リマインダー:AssetBundle変異体は、エディタのシミュレーションと互換性がありません。 27 | 28 | 2。 29 | 30 | 自動的に依存AssetBundlesをダウンロード 31 | 新しいビルドシステムでは、AssetBundles間の依存性は、単一のマニフェストAssetBundleで追跡されます。だから、実行時にすべての依存関係を取得することができ、ベースURLに自動的にすべての依存関係をダウンロードしてください。 32 | 詳細については、デモでAssetBundleManager.LoadDependencies()を確認してください。 33 | 34 | 3。 35 | 36 | AssetBundlesメニューの下の3メニュー項目がそこにいます: 37 | 1。 38 |  エディタでAssetBundleシミュレーションを制御するために使用される「AssetBundlesをシミュレート」。 39 | エディタプレイモードでは、実際にそれらを構築​​することなく、AssetBundlesをシミュレートすることができます。 40 | 2。 41 |  単にBuildPipeline.BuildAssetBundlesを呼び出す」AssetBundlesの構築」()AssetBundle UIから設定されているAssetBundlesを構築するために、詳細についてはBuildScript.BuildAssetBundles()を確認します。 42 | 3。 43 | StreamingAssetsフォルダにAssetBundlesその後、詳細についてはBuildScript.BuildPlayer()をチェックし、ビルド設定に応じてプレイヤーデータを構築するコピー」プレーヤーの構築」。 44 | 45 | 4。 46 | ローディングAssetBundleとその依存関係の取りAssetBundleManagerクラスは、それが含まれています: 47 | 1。 48 | 初期化() 49 | AssetBundleマニフェストオブジェクトを初期化します。 50 | 2。 51 | LoadAssetAsync() 52 | 与えられたAssetBundleからのアセットをロードし、すべての依存関係を処理します。 53 | 3。 54 | LoadLevelAsync() 55 | 与えられたAssetBundleから与えられたシーンをロードし、すべての依存関係を処理します。 56 | 4。 57 | LoadDependencies() 58 | 指定されたAssetBundleためのすべての依存AssetBundlesをロードします。 59 | 5。 60 | BaseDownloadingURL 61 | 依存関係を自動ダウンロードするために使用されるベースのダウンロードURLを設定します。 62 | 6。 63 | SimulateAssetBundleInEditor 64 | エディタプレイモードでAssetBundleをシミュレートする場合に設定します。 65 | 7。 66 | バリアント 67 | 活性な変異体を設定します。 68 | 8。 69 | RemapVariantName() 70 | 71 | アクティブな変形による正しいAssetBundleを解決します。 72 | 73 | 5。 74 | 資産\ ScriptsForAssetBundleSystemフォルダの下のスクリプトは、プロジェクトのために有用である可能性があります。独自のプロジェクトに統合/コピーすること自由に感じてください。 75 | 76 | 77 | ————————————————————————————————————————— 78 | 79 | Demo for AssetBundle 5.0 to demonstrate what we can do in the new AssetBundle system. 80 | Please base on Unity 5.0 beta 21 or above to run this demo. 81 | 82 | Descriptions: 83 | 1. 84 | 85 | There're 3 scenes under TestScenes folder: 86 | 87 | 88 | 1. 89 | 90 | AssetLoader.unity demonstrates how to load a normal asset from AssetBundle, please refer to LoadAssets.cs script. 91 | 2. 92 | 93 | SceneLoader.unity demonstrates how to load a scene from AssetBundle, please refer to LoadScenes.cs script. 94 | 3. 95 | 96 | VariantLoader.unity demonstrates how to load variant AssetBundle, please refer to LoadVariants.cs script. 97 | We use AssetBundle variants to achieve the same result as virtual assets. In the demo, we build 98 | 1. "My Assets HD" folder into "variant/myassets.hd" AssetBundle. 99 | 2. "My Assets SD" folder into "variant/myassets.sd" AssetBundle. 100 | 3. "variant-scene.unity" into "variants/variant-scene.unity3d" AssetBundle which actually depends on variant AssetBundle. 101 | Please make sure the assets exactly match in these folders. 102 | The objects in these two variant AssetBundles will have the exactly same internal IDs which is ensured by Unity build pipeline, so they can be switched out arbitrarily with AssetBundles of different variant extensions. 103 | Here the file extension "hd" and "sd" are what we call variants. You can change the active variant which is on LoadVariants.cs. 104 | Please also refer to AssetBundleManager.RemapVariantName() to see how to resolve the correct AssetBundle according to the active variant. 105 | Reminder: AssetBundle variant is not compatible with the Editor simulation. 106 | 107 | 2. 108 | 109 | Download dependent AssetBundles automatically 110 | In the new build system, the dependencies between AssetBundles are tracked in the single manifest AssetBundle. So you can get all the dependencies at runtime, and download all the dependencies automatically with a base url. 111 | Please check AssetBundleManager.LoadDependencies() in the demo for more details. 112 | 113 | 3. 114 | 115 | There're 3 menu items under the AssetBundles menu: 116 | 1. 117 | "Simulate AssetBundles" which is used to control AssetBundle simulation in the Editor. 118 | In Editor play mode, you can simulate the AssetBundles without actually building them. 119 | 2. 120 | "Build AssetBundles" which simply calls BuildPipeline.BuildAssetBundles() to build the AssetBundles which are set from the AssetBundle UI, check BuildScript.BuildAssetBundles() for details. 121 | 3. 122 | "Build Player" which copies the AssetBundles to StreamingAssets folder then build the player data according to the build settings, check BuildScript.BuildPlayer() for details. 123 | 124 | 4. 125 | AssetBundleManager class which takes of loading AssetBundle and its dependencies, it contains: 126 | 1. 127 | Initialize() 128 | Initialize the AssetBundle manifest object. 129 | 2. 130 | LoadAssetAsync() 131 | Load a given asset from a given AssetBundle and handle all the dependencies. 132 | 3. 133 | LoadLevelAsync() 134 | Load a given scene from a given AssetBundle and handle all the dependencies. 135 | 4. 136 | LoadDependencies() 137 | Load all the dependent AssetBundles for a given AssetBundle. 138 | 5. 139 | BaseDownloadingURL 140 | Set the base downloading url which is used for dependencies automatic downloading. 141 | 6. 142 | SimulateAssetBundleInEditor 143 | Set if simulating AssetBundle in Editor play mode. 144 | 7. 145 | Variants 146 | Set the active variant. 147 | 8. 148 | RemapVariantName() 149 | 150 | Resolve the correct AssetBundle according to the active variant. 151 | 152 | 5. 153 | The scripts under Assets\ScriptsForAssetBundleSystem folder could be useful for your project. Please feel free to copy/integrate into your own projects. 154 | -------------------------------------------------------------------------------- /apk/unity5assetbundleDemo.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whaison/Unity-5.0-AssetBundle-Demo/5b376400092c7fa6b1d970053374ca7cd61a42a3/apk/unity5assetbundleDemo.apk -------------------------------------------------------------------------------- /player/test.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whaison/Unity-5.0-AssetBundle-Demo/5b376400092c7fa6b1d970053374ca7cd61a42a3/player/test.apk -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/Android: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whaison/Unity-5.0-AssetBundle-Demo/5b376400092c7fa6b1d970053374ca7cd61a42a3/unity5_assetbundle-demo/AssetBundles/Android/Android -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/Android.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | AssetBundleManifest: 3 | AssetBundleInfos: 4 | Info_0: 5 | Name: scene.unity3d 6 | Dependencies: 7 | Dependency_0: material.unity3d 8 | Info_1: 9 | Name: variants/myassets.hd 10 | Dependencies: {} 11 | Info_2: 12 | Name: variants/variant-scene.unity3d 13 | Dependencies: 14 | Dependency_0: variants/myassets.hd 15 | Info_3: 16 | Name: variants/myassets.sd 17 | Dependencies: {} 18 | Info_4: 19 | Name: texture.unity3d 20 | Dependencies: {} 21 | Info_5: 22 | Name: cube.unity3d 23 | Dependencies: 24 | Dependency_0: material.unity3d 25 | Info_6: 26 | Name: material.unity3d 27 | Dependencies: 28 | Dependency_0: texture.unity3d 29 | Info_7: 30 | Name: cubewithscript.unity3d 31 | Dependencies: 32 | Dependency_0: material.unity3d 33 | Info_8: 34 | Name: folder1st/folder2nd/folder3rd.unity3d 35 | Dependencies: {} 36 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/cube.unity3d.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | CRC: 1037251002 3 | Hashes: 4 | AssetFileHash: 5 | serializedVersion: 2 6 | Hash: c6ba12ccdf08ca5da8109c31c12c12e9 7 | TypeTreeHash: 8 | serializedVersion: 2 9 | Hash: ae8012009ff397452da9ade1b0cd0af0 10 | HashAppended: 0 11 | ClassTypes: 12 | - Class: 1 13 | Script: {instanceID: 0} 14 | - Class: 4 15 | Script: {instanceID: 0} 16 | - Class: 21 17 | Script: {instanceID: 0} 18 | - Class: 23 19 | Script: {instanceID: 0} 20 | - Class: 33 21 | Script: {instanceID: 0} 22 | - Class: 43 23 | Script: {instanceID: 0} 24 | - Class: 65 25 | Script: {instanceID: 0} 26 | - Class: 114 27 | Script: {fileID: 11500000, guid: acb94a638aad44053bdd37e18a289495, type: 3} 28 | - Class: 115 29 | Script: {instanceID: 0} 30 | Assets: 31 | - Assets/ScriptsForAssetBundleSystem/TestAssets/Cube.prefab 32 | Dependencies: 33 | - AssetBundles/Android/material.unity3d 34 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/cubewithscript.unity3d.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | CRC: 4232850080 3 | Hashes: 4 | AssetFileHash: 5 | serializedVersion: 2 6 | Hash: 15811d4963c4b9c8020768462720a784 7 | TypeTreeHash: 8 | serializedVersion: 2 9 | Hash: ae8012009ff397452da9ade1b0cd0af0 10 | HashAppended: 0 11 | ClassTypes: 12 | - Class: 1 13 | Script: {instanceID: 0} 14 | - Class: 4 15 | Script: {instanceID: 0} 16 | - Class: 21 17 | Script: {instanceID: 0} 18 | - Class: 23 19 | Script: {instanceID: 0} 20 | - Class: 33 21 | Script: {instanceID: 0} 22 | - Class: 43 23 | Script: {instanceID: 0} 24 | - Class: 65 25 | Script: {instanceID: 0} 26 | - Class: 114 27 | Script: {fileID: 11500000, guid: acb94a638aad44053bdd37e18a289495, type: 3} 28 | - Class: 115 29 | Script: {instanceID: 0} 30 | Assets: 31 | - Assets/ScriptsForAssetBundleSystem/TestAssets/CubeWithScript.prefab 32 | Dependencies: 33 | - AssetBundles/Android/material.unity3d 34 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/folder1st/folder2nd/folder3rd.unity3d.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | CRC: 4247302661 3 | Hashes: 4 | AssetFileHash: 5 | serializedVersion: 2 6 | Hash: 91c2f5fbb27e588dfed069189842af42 7 | TypeTreeHash: 8 | serializedVersion: 2 9 | Hash: ba8399fbd4f97ea7fdbfc7e7ee37de55 10 | HashAppended: 0 11 | ClassTypes: 12 | - Class: 1 13 | Script: {instanceID: 0} 14 | - Class: 4 15 | Script: {instanceID: 0} 16 | - Class: 20 17 | Script: {instanceID: 0} 18 | - Class: 81 19 | Script: {instanceID: 0} 20 | - Class: 92 21 | Script: {instanceID: 0} 22 | - Class: 124 23 | Script: {instanceID: 0} 24 | Assets: 25 | - Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_67890_prefab.prefab 26 | - Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_12345_prefab.prefab 27 | Dependencies: [] 28 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/material.unity3d.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | CRC: 375588613 3 | Hashes: 4 | AssetFileHash: 5 | serializedVersion: 2 6 | Hash: c5000e47f9b74932045172a06801861a 7 | TypeTreeHash: 8 | serializedVersion: 2 9 | Hash: 687e69b670cde8559d26fe8b3eca4d21 10 | HashAppended: 0 11 | ClassTypes: 12 | - Class: 21 13 | Script: {instanceID: 0} 14 | - Class: 28 15 | Script: {instanceID: 0} 16 | - Class: 48 17 | Script: {instanceID: 0} 18 | Assets: 19 | - Assets/ScriptsForAssetBundleSystem/TestAssets/CubeMyMaterial.mat 20 | Dependencies: 21 | - AssetBundles/Android/texture.unity3d 22 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/scene.unity3d.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | CRC: 3654406546 3 | Hashes: 4 | AssetFileHash: 5 | serializedVersion: 2 6 | Hash: 6f1c8296dcdf8db4fee2ef66d5028df6 7 | TypeTreeHash: 8 | serializedVersion: 2 9 | Hash: a4d8bce77b6f666cef897f93afa9d0ba 10 | HashAppended: 0 11 | ClassTypes: 12 | - Class: 1 13 | Script: {instanceID: 0} 14 | - Class: 4 15 | Script: {instanceID: 0} 16 | - Class: 20 17 | Script: {instanceID: 0} 18 | - Class: 21 19 | Script: {instanceID: 0} 20 | - Class: 23 21 | Script: {instanceID: 0} 22 | - Class: 28 23 | Script: {instanceID: 0} 24 | - Class: 33 25 | Script: {instanceID: 0} 26 | - Class: 43 27 | Script: {instanceID: 0} 28 | - Class: 48 29 | Script: {instanceID: 0} 30 | - Class: 92 31 | Script: {instanceID: 0} 32 | - Class: 104 33 | Script: {instanceID: 0} 34 | - Class: 124 35 | Script: {instanceID: 0} 36 | - Class: 127 37 | Script: {instanceID: 0} 38 | - Class: 135 39 | Script: {instanceID: 0} 40 | - Class: 157 41 | Script: {instanceID: 0} 42 | Assets: 43 | - Assets/ScriptsForAssetBundleSystem/TestAssets/testScene.unity 44 | Dependencies: 45 | - AssetBundles/Android/material.unity3d 46 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/texture.unity3d.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | CRC: 3499372304 3 | Hashes: 4 | AssetFileHash: 5 | serializedVersion: 2 6 | Hash: 96f684d90d6bb8599e43cd5dd194d058 7 | TypeTreeHash: 8 | serializedVersion: 2 9 | Hash: 0fd99c5e9ad8f0f80da6ba03142e9c82 10 | HashAppended: 0 11 | ClassTypes: 12 | - Class: 28 13 | Script: {instanceID: 0} 14 | Assets: 15 | - Assets/ScriptsForAssetBundleSystem/TestAssets/CubeUnityLogo.png 16 | Dependencies: [] 17 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/variants/myassets.hd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whaison/Unity-5.0-AssetBundle-Demo/5b376400092c7fa6b1d970053374ca7cd61a42a3/unity5_assetbundle-demo/AssetBundles/Android/variants/myassets.hd -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/variants/myassets.hd.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | CRC: 1384558616 3 | Hashes: 4 | AssetFileHash: 5 | serializedVersion: 2 6 | Hash: 5f8768e3f9318ebc1d639ef8d79579f9 7 | TypeTreeHash: 8 | serializedVersion: 2 9 | Hash: 7c5253b0627195a3216b29674c9402bf 10 | HashAppended: 0 11 | ClassTypes: 12 | - Class: 21 13 | Script: {instanceID: 0} 14 | - Class: 28 15 | Script: {instanceID: 0} 16 | - Class: 48 17 | Script: {instanceID: 0} 18 | - Class: 213 19 | Script: {instanceID: 0} 20 | Assets: 21 | - Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets HD/someMaterial.mat 22 | - Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets HD/myTexture.png 23 | Dependencies: [] 24 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/variants/myassets.sd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whaison/Unity-5.0-AssetBundle-Demo/5b376400092c7fa6b1d970053374ca7cd61a42a3/unity5_assetbundle-demo/AssetBundles/Android/variants/myassets.sd -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/variants/myassets.sd.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | CRC: 1205414814 3 | Hashes: 4 | AssetFileHash: 5 | serializedVersion: 2 6 | Hash: 7eff70a2d67d05644169b1328106f617 7 | TypeTreeHash: 8 | serializedVersion: 2 9 | Hash: 7c5253b0627195a3216b29674c9402bf 10 | HashAppended: 0 11 | ClassTypes: 12 | - Class: 21 13 | Script: {instanceID: 0} 14 | - Class: 28 15 | Script: {instanceID: 0} 16 | - Class: 48 17 | Script: {instanceID: 0} 18 | - Class: 213 19 | Script: {instanceID: 0} 20 | Assets: 21 | - Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets SD/myTexture.png 22 | - Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets SD/someMaterial.mat 23 | Dependencies: [] 24 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/AssetBundles/Android/variants/variant-scene.unity3d.manifest: -------------------------------------------------------------------------------- 1 | ManifestFileVersion: 0 2 | CRC: 3376597776 3 | Hashes: 4 | AssetFileHash: 5 | serializedVersion: 2 6 | Hash: 8e496e51b9415c6845b205c895df9f4c 7 | TypeTreeHash: 8 | serializedVersion: 2 9 | Hash: 2f7ac837ed7b448f7f09984460427788 10 | HashAppended: 0 11 | ClassTypes: 12 | - Class: 1 13 | Script: {instanceID: 0} 14 | - Class: 4 15 | Script: {instanceID: 0} 16 | - Class: 20 17 | Script: {instanceID: 0} 18 | - Class: 21 19 | Script: {instanceID: 0} 20 | - Class: 23 21 | Script: {instanceID: 0} 22 | - Class: 28 23 | Script: {instanceID: 0} 24 | - Class: 33 25 | Script: {instanceID: 0} 26 | - Class: 43 27 | Script: {instanceID: 0} 28 | - Class: 48 29 | Script: {instanceID: 0} 30 | - Class: 65 31 | Script: {instanceID: 0} 32 | - Class: 92 33 | Script: {instanceID: 0} 34 | - Class: 104 35 | Script: {instanceID: 0} 36 | - Class: 108 37 | Script: {instanceID: 0} 38 | - Class: 124 39 | Script: {instanceID: 0} 40 | - Class: 127 41 | Script: {instanceID: 0} 42 | - Class: 157 43 | Script: {instanceID: 0} 44 | - Class: 212 45 | Script: {instanceID: 0} 46 | - Class: 213 47 | Script: {instanceID: 0} 48 | Assets: 49 | - Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/variant-scene.unity 50 | Dependencies: 51 | - AssetBundles/Android/variants/myassets.hd 52 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8f09401ea5bf4368aa3e12ee7b54c0a 3 | folderAsset: yes 4 | timeCreated: 1440822233 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/Editor/RunMoreUnity.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using UnityEditor; 3 | 4 | public class RunMoreUnity { 5 | 6 | #if UNITY_EDITOR_OSX 7 | 8 | [MenuItem("File/Start One More Unity")] 9 | private static void StartNewUnity() { 10 | var p = new ProcessStartInfo(); 11 | //p.FileName = "/Applications/Unity/Unity.app/Contents/MacOS/Unity"; 12 | p.FileName = "/Applications/Unity5.1.2f1/Unity5.1.2f1.app/Contents/MacOS/Unity"; 13 | ///Applications/Unity5.1.2f1/Unity5.1.2f1.app 14 | p.UseShellExecute = true; 15 | p.CreateNoWindow = true; 16 | Process.Start(p); 17 | } 18 | 19 | #endif 20 | } -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/Editor/RunMoreUnity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f9ca020a14974d59a1f1d99ba69c4ed 3 | timeCreated: 1440822241 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d98777de699c3403b96d7aadcd78da3e 3 | folderAsset: yes 4 | timeCreated: 1440824129 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f32c1c7454744647ba48b1409035490 3 | folderAsset: yes 4 | timeCreated: 1440824084 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb52aef962b014c248c568bede8798a2 3 | folderAsset: yes 4 | timeCreated: 1440826945 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e516bf1c29de4b65a3e05451def15f9 3 | folderAsset: yes 4 | timeCreated: 1440826950 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 668f17a35699d4d70a4d535c80f4c84e 3 | folderAsset: yes 4 | timeCreated: 1440826961 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_12345_prefab.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &107252 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 496758} 11 | - 20: {fileID: 2003028} 12 | - 92: {fileID: 9290618} 13 | - 124: {fileID: 12460096} 14 | - 81: {fileID: 8103476} 15 | m_Layer: 0 16 | m_Name: my_12345_prefab 17 | m_TagString: MainCamera 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &496758 23 | Transform: 24 | m_ObjectHideFlags: 1 25 | m_PrefabParentObject: {fileID: 0} 26 | m_PrefabInternal: {fileID: 100100000} 27 | m_GameObject: {fileID: 107252} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 1, z: -10} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | --- !u!20 &2003028 35 | Camera: 36 | m_ObjectHideFlags: 1 37 | m_PrefabParentObject: {fileID: 0} 38 | m_PrefabInternal: {fileID: 100100000} 39 | m_GameObject: {fileID: 107252} 40 | m_Enabled: 1 41 | serializedVersion: 2 42 | m_ClearFlags: 1 43 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 44 | m_NormalizedViewPortRect: 45 | serializedVersion: 2 46 | x: 0 47 | y: 0 48 | width: 1 49 | height: 1 50 | near clip plane: .300000012 51 | far clip plane: 1000 52 | field of view: 60 53 | orthographic: 0 54 | orthographic size: 5 55 | m_Depth: -1 56 | m_CullingMask: 57 | serializedVersion: 2 58 | m_Bits: 4294967295 59 | m_RenderingPath: -1 60 | m_TargetTexture: {fileID: 0} 61 | m_TargetDisplay: 0 62 | m_HDR: 0 63 | m_OcclusionCulling: 1 64 | m_StereoConvergence: 10 65 | m_StereoSeparation: .0219999999 66 | m_StereoMirrorMode: 0 67 | --- !u!81 &8103476 68 | AudioListener: 69 | m_ObjectHideFlags: 1 70 | m_PrefabParentObject: {fileID: 0} 71 | m_PrefabInternal: {fileID: 100100000} 72 | m_GameObject: {fileID: 107252} 73 | m_Enabled: 1 74 | --- !u!92 &9290618 75 | Behaviour: 76 | m_ObjectHideFlags: 1 77 | m_PrefabParentObject: {fileID: 0} 78 | m_PrefabInternal: {fileID: 100100000} 79 | m_GameObject: {fileID: 107252} 80 | m_Enabled: 1 81 | --- !u!124 &12460096 82 | Behaviour: 83 | m_ObjectHideFlags: 1 84 | m_PrefabParentObject: {fileID: 0} 85 | m_PrefabInternal: {fileID: 100100000} 86 | m_GameObject: {fileID: 107252} 87 | m_Enabled: 1 88 | --- !u!1001 &100100000 89 | Prefab: 90 | m_ObjectHideFlags: 1 91 | serializedVersion: 2 92 | m_Modification: 93 | m_TransformParent: {fileID: 0} 94 | m_Modifications: [] 95 | m_RemovedComponents: [] 96 | m_ParentPrefab: {fileID: 0} 97 | m_RootGameObject: {fileID: 107252} 98 | m_IsPrefabParent: 1 99 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_12345_prefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a330a88fe011449ffbc48db64a4d36a5 3 | timeCreated: 1440828211 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: folder1st/folder2nd/folder3rd.unity3d 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_67890_prefab.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &107252 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 496758} 11 | - 20: {fileID: 2003028} 12 | - 92: {fileID: 9290618} 13 | - 124: {fileID: 12460096} 14 | - 81: {fileID: 8103476} 15 | m_Layer: 0 16 | m_Name: my_67890_prefab 17 | m_TagString: MainCamera 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &496758 23 | Transform: 24 | m_ObjectHideFlags: 1 25 | m_PrefabParentObject: {fileID: 0} 26 | m_PrefabInternal: {fileID: 100100000} 27 | m_GameObject: {fileID: 107252} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 1, z: -10} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | --- !u!20 &2003028 35 | Camera: 36 | m_ObjectHideFlags: 1 37 | m_PrefabParentObject: {fileID: 0} 38 | m_PrefabInternal: {fileID: 100100000} 39 | m_GameObject: {fileID: 107252} 40 | m_Enabled: 1 41 | serializedVersion: 2 42 | m_ClearFlags: 1 43 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 44 | m_NormalizedViewPortRect: 45 | serializedVersion: 2 46 | x: 0 47 | y: 0 48 | width: 1 49 | height: 1 50 | near clip plane: .300000012 51 | far clip plane: 1000 52 | field of view: 60 53 | orthographic: 0 54 | orthographic size: 5 55 | m_Depth: -1 56 | m_CullingMask: 57 | serializedVersion: 2 58 | m_Bits: 4294967295 59 | m_RenderingPath: -1 60 | m_TargetTexture: {fileID: 0} 61 | m_TargetDisplay: 0 62 | m_HDR: 0 63 | m_OcclusionCulling: 1 64 | m_StereoConvergence: 10 65 | m_StereoSeparation: .0219999999 66 | m_StereoMirrorMode: 0 67 | --- !u!81 &8103476 68 | AudioListener: 69 | m_ObjectHideFlags: 1 70 | m_PrefabParentObject: {fileID: 0} 71 | m_PrefabInternal: {fileID: 100100000} 72 | m_GameObject: {fileID: 107252} 73 | m_Enabled: 1 74 | --- !u!92 &9290618 75 | Behaviour: 76 | m_ObjectHideFlags: 1 77 | m_PrefabParentObject: {fileID: 0} 78 | m_PrefabInternal: {fileID: 100100000} 79 | m_GameObject: {fileID: 107252} 80 | m_Enabled: 1 81 | --- !u!124 &12460096 82 | Behaviour: 83 | m_ObjectHideFlags: 1 84 | m_PrefabParentObject: {fileID: 0} 85 | m_PrefabInternal: {fileID: 100100000} 86 | m_GameObject: {fileID: 107252} 87 | m_Enabled: 1 88 | --- !u!1001 &100100000 89 | Prefab: 90 | m_ObjectHideFlags: 1 91 | serializedVersion: 2 92 | m_Modification: 93 | m_TransformParent: {fileID: 0} 94 | m_Modifications: [] 95 | m_RemovedComponents: [] 96 | m_ParentPrefab: {fileID: 0} 97 | m_RootGameObject: {fileID: 107252} 98 | m_IsPrefabParent: 1 99 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_67890_prefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b6bf2baeb8e141518748687701a21e4 3 | timeCreated: 1440836702 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: folder1st/folder2nd/folder3rd.unity3d 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/temp_12345_prefab 1.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &107252 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 496758} 11 | - 20: {fileID: 2003028} 12 | - 92: {fileID: 9290618} 13 | - 124: {fileID: 12460096} 14 | - 81: {fileID: 8103476} 15 | m_Layer: 0 16 | m_Name: temp_12345_prefab 1 17 | m_TagString: MainCamera 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &496758 23 | Transform: 24 | m_ObjectHideFlags: 1 25 | m_PrefabParentObject: {fileID: 0} 26 | m_PrefabInternal: {fileID: 100100000} 27 | m_GameObject: {fileID: 107252} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 1, z: -10} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | --- !u!20 &2003028 35 | Camera: 36 | m_ObjectHideFlags: 1 37 | m_PrefabParentObject: {fileID: 0} 38 | m_PrefabInternal: {fileID: 100100000} 39 | m_GameObject: {fileID: 107252} 40 | m_Enabled: 1 41 | serializedVersion: 2 42 | m_ClearFlags: 1 43 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 44 | m_NormalizedViewPortRect: 45 | serializedVersion: 2 46 | x: 0 47 | y: 0 48 | width: 1 49 | height: 1 50 | near clip plane: .300000012 51 | far clip plane: 1000 52 | field of view: 60 53 | orthographic: 0 54 | orthographic size: 5 55 | m_Depth: -1 56 | m_CullingMask: 57 | serializedVersion: 2 58 | m_Bits: 4294967295 59 | m_RenderingPath: -1 60 | m_TargetTexture: {fileID: 0} 61 | m_TargetDisplay: 0 62 | m_HDR: 0 63 | m_OcclusionCulling: 1 64 | m_StereoConvergence: 10 65 | m_StereoSeparation: .0219999999 66 | m_StereoMirrorMode: 0 67 | --- !u!81 &8103476 68 | AudioListener: 69 | m_ObjectHideFlags: 1 70 | m_PrefabParentObject: {fileID: 0} 71 | m_PrefabInternal: {fileID: 100100000} 72 | m_GameObject: {fileID: 107252} 73 | m_Enabled: 1 74 | --- !u!92 &9290618 75 | Behaviour: 76 | m_ObjectHideFlags: 1 77 | m_PrefabParentObject: {fileID: 0} 78 | m_PrefabInternal: {fileID: 100100000} 79 | m_GameObject: {fileID: 107252} 80 | m_Enabled: 1 81 | --- !u!124 &12460096 82 | Behaviour: 83 | m_ObjectHideFlags: 1 84 | m_PrefabParentObject: {fileID: 0} 85 | m_PrefabInternal: {fileID: 100100000} 86 | m_GameObject: {fileID: 107252} 87 | m_Enabled: 1 88 | --- !u!1001 &100100000 89 | Prefab: 90 | m_ObjectHideFlags: 1 91 | serializedVersion: 2 92 | m_Modification: 93 | m_TransformParent: {fileID: 0} 94 | m_Modifications: [] 95 | m_RemovedComponents: [] 96 | m_ParentPrefab: {fileID: 0} 97 | m_RootGameObject: {fileID: 107252} 98 | m_IsPrefabParent: 1 99 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/temp_12345_prefab 1.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb05da1332d8342c78c8bee26f570ee2 3 | timeCreated: 1440836030 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/temp_1234.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 450f94d5bdb89442d8b8dc14b8af40e4 3 | folderAsset: yes 4 | timeCreated: 1440835086 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st2.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d02a5931229840de9549ac7029cc194 3 | folderAsset: yes 4 | timeCreated: 1440828007 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st2/Folder2nd2.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4fc3086ceeac4552bb80d41275445c9 3 | folderAsset: yes 4 | timeCreated: 1440828007 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st2/Folder2nd2/Folder3rd2.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43174507240c5419c908d6e1280fc94c 3 | folderAsset: yes 4 | timeCreated: 1440828007 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16b9db68922196f40a29bb93e010a129 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/AssetBundleLoadOperation.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public abstract class AssetBundleLoadOperation : IEnumerator 5 | { 6 | public object Current 7 | { 8 | get 9 | { 10 | return null; 11 | } 12 | } 13 | public bool MoveNext() 14 | { 15 | return !IsDone(); 16 | } 17 | 18 | public void Reset() 19 | { 20 | } 21 | 22 | abstract public bool Update (); 23 | 24 | abstract public bool IsDone (); 25 | } 26 | 27 | public class AssetBundleLoadLevelSimulationOperation : AssetBundleLoadOperation 28 | { 29 | public AssetBundleLoadLevelSimulationOperation () 30 | { 31 | } 32 | 33 | public override bool Update () 34 | { 35 | return false; 36 | } 37 | 38 | public override bool IsDone () 39 | { 40 | return true; 41 | } 42 | } 43 | 44 | public class AssetBundleLoadLevelOperation : AssetBundleLoadOperation 45 | { 46 | protected string m_AssetBundleName; 47 | protected string m_LevelName; 48 | protected bool m_IsAdditive; 49 | protected string m_DownloadingError; 50 | protected AsyncOperation m_Request; 51 | 52 | public AssetBundleLoadLevelOperation (string assetbundleName, string levelName, bool isAdditive) 53 | { 54 | m_AssetBundleName = assetbundleName; 55 | m_LevelName = levelName; 56 | m_IsAdditive = isAdditive; 57 | } 58 | 59 | public override bool Update () 60 | { 61 | if (m_Request != null) 62 | return false; 63 | 64 | //LoadedAssetBundle bundle = AssetBundleManager.Instance.ABM_01_GetLoadedAssetBundle (m_AssetBundleName, out m_DownloadingError); 65 | LoadedAssetBundle bundle = AssetBundleManager.Instance.ABM_01_GetLoadedAssetBundle(m_AssetBundleName,out m_DownloadingError); 66 | if (bundle != null) 67 | { 68 | if (m_IsAdditive) 69 | m_Request = Application.LoadLevelAdditiveAsync (m_LevelName); 70 | else 71 | m_Request = Application.LoadLevelAsync (m_LevelName); 72 | return false; 73 | } 74 | else 75 | return true; 76 | } 77 | 78 | public override bool IsDone () 79 | { 80 | // Return if meeting downloading error. 81 | // m_DownloadingError might come from the dependency downloading. 82 | if (m_Request == null && m_DownloadingError != null) 83 | { 84 | Debug.LogError(m_DownloadingError); 85 | return true; 86 | } 87 | 88 | return m_Request != null && m_Request.isDone; 89 | } 90 | } 91 | 92 | public abstract class AssetBundleLoadAssetOperation : AssetBundleLoadOperation 93 | { 94 | public abstract T GetAsset() where T : UnityEngine.Object; 95 | } 96 | 97 | public class AssetBundleLoadAssetOperationSimulation : AssetBundleLoadAssetOperation 98 | { 99 | Object m_SimulatedObject; 100 | 101 | public AssetBundleLoadAssetOperationSimulation (Object simulatedObject) 102 | { 103 | m_SimulatedObject = simulatedObject; 104 | } 105 | 106 | public override T GetAsset() 107 | { 108 | return m_SimulatedObject as T; 109 | } 110 | 111 | public override bool Update () 112 | { 113 | return false; 114 | } 115 | 116 | public override bool IsDone () 117 | { 118 | return true; 119 | } 120 | } 121 | 122 | public class AssetBundleLoadAssetOperationFull : AssetBundleLoadAssetOperation 123 | { 124 | protected string m_AssetBundleName; 125 | protected string m_AssetName; 126 | protected string m_DownloadingError; 127 | protected System.Type m_Type; 128 | protected AssetBundleRequest m_Request = null; 129 | 130 | public AssetBundleLoadAssetOperationFull (string bundleName, string assetName, System.Type type) 131 | { 132 | m_AssetBundleName = bundleName; 133 | m_AssetName = assetName; 134 | m_Type = type; 135 | } 136 | 137 | public override T GetAsset() 138 | { 139 | if (m_Request != null && m_Request.isDone) 140 | return m_Request.asset as T; 141 | else 142 | return null; 143 | } 144 | 145 | // Returns true if more Update calls are required. 146 | public override bool Update () 147 | { 148 | if (m_Request != null) 149 | return false; 150 | 151 | LoadedAssetBundle bundle = AssetBundleManager.Instance.ABM_01_GetLoadedAssetBundle (m_AssetBundleName, out m_DownloadingError); 152 | if (bundle != null) 153 | { 154 | m_Request = bundle.m_AssetBundle.LoadAssetAsync (m_AssetName, m_Type); 155 | //ABM_10_LoadAssetAsync 156 | return false; 157 | } 158 | else 159 | { 160 | return true; 161 | } 162 | } 163 | 164 | public override bool IsDone () 165 | { 166 | // Return if meeting downloading error. 167 | // m_DownloadingError might come from the dependency downloading. 168 | if (m_Request == null && m_DownloadingError != null) 169 | { 170 | Debug.LogError(m_DownloadingError); 171 | return true; 172 | } 173 | 174 | return m_Request != null && m_Request.isDone; 175 | } 176 | } 177 | 178 | public class AssetBundleLoadManifestOperation : AssetBundleLoadAssetOperationFull 179 | { 180 | public AssetBundleLoadManifestOperation (string bundleName, string assetName, System.Type type) 181 | : base(bundleName, assetName, type) 182 | { 183 | } 184 | 185 | public override bool Update () 186 | { 187 | base.Update(); 188 | 189 | if (m_Request != null && m_Request.isDone) 190 | { 191 | AssetBundleManager.AssetBundleManifestObject = GetAsset(); 192 | return false; 193 | } 194 | else 195 | return true; 196 | } 197 | } 198 | 199 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/AssetBundleLoadOperation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c487cbb6e41638c48ad9675dcfafb3ce 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/AssetBundleManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | #if UNITY_EDITOR 3 | using UnityEditor; 4 | #endif 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | 8 | /* 9 | In this demo, we demonstrate: 10 | 1. Automatic asset bundle dependency resolving & loading. 11 | It shows how to use the manifest assetbundle like how to get the dependencies etc. 12 | 2. Automatic unloading of asset bundles (When an asset bundle or a dependency thereof is no longer needed, the asset bundle is unloaded) 13 | 3. Editor simulation. A bool defines if we load asset bundles from the project or are actually using asset bundles(doesn't work with assetbundle variants for now.) 14 | With this, you can player in editor mode without actually building the assetBundles. 15 | 4. Optional setup where to download all asset bundles 16 | 5. Build pipeline build postprocessor, integration so that building a player builds the asset bundles and puts them into the player data (Default implmenetation for loading assetbundles from disk on any platform) 17 | 6. Use WWW.LoadFromCacheOrDownload and feed 128 bit hash to it when downloading via web 18 | You can get the hash from the manifest assetbundle. 19 | 7. AssetBundle variants. A prioritized list of variants that should be used if the asset bundle with that variant exists, first variant in the list is the most preferred etc. 20 | 21 | このデモでは、実証します: 22 | 1。 23 | 自動アセットバンドルの依存関係の解決&ロード。 24 | これは、依存関係などを取得する方法の様子とマニフェストassetbundleを使用する方法を示しています 25 | 26 | 2。 27 | アセットバンドルの自動アンロード(アセットバンドルまたはその依存関係が不要になった場合、アセットバンドルがアンロードします) 28 | 29 | 3。 30 | エディタシミュレーション。我々はプロジェクトからアセットバンドルをロードしたり、実際にアセットバンドルを使用している場合はブール値を定義し(今のassetbundleバリアントでは動作しません。) 31 | これにより、実際にassetBundlesを構築することなく、エディタモードでプレイすることができます。 32 | 33 | 4。 34 | ここで、すべてのアセットバンドルをダウンロードするには、オプションのセットアップ 35 | が必要です 36 | 5。 37 | プレイヤーを構築する(任意のプラットフォーム上のディスクからassetbundlesをロードするためのデフォルトimplmenetation)アセットバンドルを構築し、プレイヤーデータにそれらを置くように、パイプラインのビルドポストプロセッサ、統合を構築 38 | 39 | 6。 40 | WWW.LoadFromCacheOrDownloadを使用し、Web経由でダウンロードするときに、それに128ビットのハッシュを養います 41 | あなたはマニフェストassetbundleからハッシュを得ることができます。 42 | 43 | 7。 44 | AssetBundleの複合体。その例にアセットバンドルがリストの最初の複合体が最も好ましいなどで、存在する場合に使用されるべきである複合体の優先順位リスト 45 | 46 | */ 47 | 48 | // Loaded assetBundle contains the references count which can be used to unload dependent assetBundles automatically. 49 | public class LoadedAssetBundle 50 | { 51 | public AssetBundle m_AssetBundle; 52 | public int m_ReferencedCount; 53 | 54 | public LoadedAssetBundle(AssetBundle assetBundle) 55 | { 56 | Debug.Log ("---------------------LoadedAssetBundle-(assetBundle="+assetBundle+")----------------"); 57 | m_AssetBundle = assetBundle; 58 | m_ReferencedCount = 1; 59 | } 60 | } 61 | 62 | // Class takes care of loading assetBundle and its dependencies automatically, loading variants automatically. 63 | public class AssetBundleManager : MonoBehaviour 64 | { 65 | static string m_BaseDownloadingURL = ""; 66 | static string[] m_Variants = { }; 67 | static AssetBundleManifest m_AssetBundleManifest = null; 68 | #if UNITY_EDITOR 69 | static int m_SimulateAssetBundleInEditor = -1; 70 | const string kSimulateAssetBundles = "SimulateAssetBundles"; 71 | #endif 72 | 73 | static Dictionary m_LoadedAssetBundles = new Dictionary (); 74 | static Dictionary m_DownloadingWWWs = new Dictionary (); 75 | static Dictionary m_DownloadingErrors = new Dictionary (); 76 | static List m_InProgressOperations = new List (); 77 | static Dictionary m_Dependencies = new Dictionary (); 78 | 79 | 80 | #region Singleton 81 | private static AssetBundleManager instance = null; 82 | 83 | public static AssetBundleManager Instance { 84 | get { 85 | if (instance == null) { 86 | instance = FindObjectOfType (); 87 | } 88 | return instance; 89 | } 90 | } 91 | #endregion 92 | 93 | void Awake () 94 | { 95 | if (this != Instance) { 96 | Destroy (this.gameObject); 97 | return; 98 | } 99 | 100 | } 101 | 102 | 103 | // The base downloading url which is used to generate the full downloading url with the assetBundle names. 104 | public static string BaseDownloadingURL 105 | { 106 | get { return m_BaseDownloadingURL; } 107 | set { m_BaseDownloadingURL = value; 108 | Debug.Log ("----------ABM_001----------set-BaseDownloadingURL-(BaseDownloadingURL="+BaseDownloadingURL+")----------------"); 109 | } 110 | } 111 | 112 | // Variants which is used to define the active variants. 113 | public static string[] Variants 114 | { 115 | get { return m_Variants; } 116 | set { m_Variants = value; 117 | Debug.Log ("-----------ABM_002---------set-m_Variants-(m_Variants="+m_Variants+")----------------"); 118 | } 119 | } 120 | 121 | // AssetBundleManifest object which can be used to load the dependecies and check suitable assetBundle variants. 122 | public static AssetBundleManifest AssetBundleManifestObject 123 | { 124 | set {m_AssetBundleManifest = value; 125 | Debug.Log ("---------ABM_003-----------set-m_AssetBundleManifest-(m_AssetBundleManifest="+m_AssetBundleManifest+")----------------"); 126 | } 127 | } 128 | 129 | #if UNITY_EDITOR 130 | // Flag to indicate if we want to simulate assetBundles in Editor without building them actually. 131 | public static bool ABM_00_SimulateAssetBundleInEditor 132 | { 133 | get 134 | { 135 | if (m_SimulateAssetBundleInEditor == -1) 136 | m_SimulateAssetBundleInEditor = EditorPrefs.GetBool(kSimulateAssetBundles, true) ? 1 : 0; 137 | 138 | return m_SimulateAssetBundleInEditor != 0; 139 | } 140 | set 141 | { 142 | int newValue = value ? 1 : 0; 143 | if (newValue != m_SimulateAssetBundleInEditor) 144 | { 145 | 146 | m_SimulateAssetBundleInEditor = newValue; 147 | EditorPrefs.SetBool(kSimulateAssetBundles, value); 148 | Debug.Log ("--------------------set-SimulateAssetBundleInEditor-(kSimulateAssetBundles="+kSimulateAssetBundles+")----------------"); 149 | 150 | } 151 | } 152 | } 153 | #endif 154 | 155 | // Get loaded AssetBundle, only return vaild object when all the dependencies are downloaded successfully. 156 | public LoadedAssetBundle ABM_01_GetLoadedAssetBundle (string assetBundleName, out string error) 157 | { 158 | Debug.Log ("--------------------ABM_01_GetLoadedAssetBundle-(assetBundleName="+assetBundleName+" error=)----------------"); 159 | if (m_DownloadingErrors.TryGetValue (assetBundleName, out error)) { 160 | return null; 161 | Debug.Log ("--------------------ABM_01_GetLoadedAssetBundle-(assetBundleName="+assetBundleName+" error=)----------------"); 162 | } 163 | LoadedAssetBundle bundle = null; 164 | m_LoadedAssetBundles.TryGetValue(assetBundleName, out bundle); 165 | if (bundle == null) { 166 | return null; 167 | Debug.Log ("--------------------ABM_01_GetLoadedAssetBundle-(assetBundleName="+assetBundleName+" bundle="+bundle+")----------------"); 168 | } 169 | // No dependencies are recorded, only the bundle itself is required. 170 | string[] dependencies = null; 171 | if (!m_Dependencies.TryGetValue (assetBundleName, out dependencies)) { 172 | return bundle; 173 | Debug.Log ("--------------------ABM_01_GetLoadedAssetBundle-(assetBundleName=" + assetBundleName + " dependencies=" + dependencies + ")----------------"); 174 | } 175 | // Make sure all dependencies are loaded 176 | foreach(var dependency in dependencies) 177 | { 178 | if (m_DownloadingErrors.TryGetValue(assetBundleName, out error) ) 179 | return bundle; 180 | Debug.Log ("---------ABM_01_GetLoadedAssetBundle for-(assetBundleName=" + assetBundleName + " error=" + error + ")----------------"); 181 | // Wait all the dependent assetBundles being loaded. 182 | LoadedAssetBundle dependentBundle; 183 | m_LoadedAssetBundles.TryGetValue(dependency, out dependentBundle); 184 | if (dependentBundle == null) 185 | { 186 | return null; 187 | Debug.Log ("---------ABM_01_GetLoadedAssetBundle for-(dependency=" + dependency + " dependentBundle=" + dependentBundle + ")----------------"); 188 | } 189 | } 190 | Debug.Log ("-----OK----ABM_01_GetLoadedAssetBundle for-(bundle=" + bundle + ")----------------"); 191 | return bundle; 192 | } 193 | 194 | // Load AssetBundleManifest. 195 | public AssetBundleLoadManifestOperation ABM_02_Initialize (string manifestAssetBundleName) 196 | { 197 | var go = new GameObject("AssetBundleManager", typeof(AssetBundleManager)); 198 | DontDestroyOnLoad(go); 199 | Debug.Log ("---------ABM_02_Initialize manifestAssetBundleName=" + manifestAssetBundleName + " go= "+go+ "----------------"); 200 | /* 201 | #if UNITY_EDITOR 202 | // If we're in Editor simulation mode, we don't need the manifest assetBundle. 203 | if (ABM_00_SimulateAssetBundleInEditor) 204 | { 205 | Debug.Log ("---------ABM_02_Initialize ABM_00_SimulateAssetBundleInEditor=" + ABM_00_SimulateAssetBundleInEditor + ")----------------"); 206 | return null; 207 | } 208 | #endif 209 | */ 210 | ABM_03_LoadAssetBundle(manifestAssetBundleName, true); 211 | var operation = new AssetBundleLoadManifestOperation (manifestAssetBundleName, "AssetBundleManifest", typeof(AssetBundleManifest)); 212 | m_InProgressOperations.Add (operation); 213 | return operation; 214 | Debug.Log ("---------ABM_02_Initialize operation=" + operation + ")----------------"); 215 | } 216 | 217 | // Load AssetBundle and its dependencies. 218 | static protected void ABM_03_LoadAssetBundle(string assetBundleName, bool isLoadingAssetBundleManifest = false) 219 | { 220 | /* 221 | #if UNITY_EDITOR 222 | // If we're in Editor simulation mode, we don't have to really load the assetBundle and its dependencies. 223 | if (ABM_00_SimulateAssetBundleInEditor){ 224 | Debug.Log("----------ABM_03_LoadAssetBundle-----------------assetBundleName = "+assetBundleName+"--isLoadingAssetBundleManifest= "+isLoadingAssetBundleManifest+"--------------------"); 225 | return; 226 | } 227 | 228 | #endif 229 | */ 230 | if (!isLoadingAssetBundleManifest) { 231 | assetBundleName = ABM_04_RemapVariantName (assetBundleName); 232 | Debug.Log("----------ABM_03_LoadAssetBundle--------------RemapVariantName(---assetBundleName = "+assetBundleName+")--isLoadingAssetBundleManifest= "+isLoadingAssetBundleManifest+"--------------------"); 233 | } 234 | // Check if the assetBundle has already been processed. 235 | Debug.Log("----------ABM_03_LoadAssetBundle----------------->>>>>>> ABM_05_LoadAssetBundleInternal--------------"); 236 | bool isAlreadyProcessed = ABM_05_LoadAssetBundleInternal(assetBundleName, isLoadingAssetBundleManifest); 237 | Debug.Log("----------ABM_03_LoadAssetBundle-----------------assetBundleName = "+assetBundleName+"--isLoadingAssetBundleManifest= "+isLoadingAssetBundleManifest+"-----isAlreadyProcessed ="+isAlreadyProcessed+"---------------"); 238 | // Load dependencies. 239 | if (!isAlreadyProcessed && !isLoadingAssetBundleManifest) { 240 | Debug.Log ("----------ABM_03_LoadAssetBundle----------------->>>>>>> ABM_06_LoadDependencies--------------"); 241 | ABM_06_LoadDependencies (assetBundleName); 242 | } 243 | } 244 | 245 | // Remaps the asset bundle name to the best fitting asset bundle variant. 246 | static protected string ABM_04_RemapVariantName(string assetBundleName) 247 | { 248 | Debug.Log("----------ABM_04_RemapVariantName-----------------assetBundleName = "+assetBundleName+"---"); 249 | string[] bundlesWithVariant = m_AssetBundleManifest.GetAllAssetBundlesWithVariant(); 250 | 251 | // If the asset bundle doesn't have variant, simply return. 252 | if (System.Array.IndexOf(bundlesWithVariant, assetBundleName) < 0 ) 253 | 254 | return assetBundleName; 255 | 256 | string[] split = assetBundleName.Split('.'); 257 | 258 | int bestFit = int.MaxValue; 259 | int bestFitIndex = -1; 260 | // Loop all the assetBundles with variant to find the best fit variant assetBundle. 261 | Debug.Log("----------ABM_04_RemapVariantName-----------------assetBundleName = "+assetBundleName+"---bundlesWithVariant.Length= "+bundlesWithVariant.Length); 262 | for (int i = 0; i < bundlesWithVariant.Length; i++) 263 | { 264 | string[] curSplit = bundlesWithVariant[i].Split('.'); 265 | if (curSplit[0] != split[0]) 266 | continue; 267 | 268 | int found = System.Array.IndexOf(m_Variants, curSplit[1]); 269 | if (found != -1 && found < bestFit) 270 | { 271 | bestFit = found; 272 | bestFitIndex = i; 273 | } 274 | } 275 | 276 | 277 | if (bestFitIndex != -1) 278 | 279 | return bundlesWithVariant[bestFitIndex]; 280 | else 281 | Debug.Log("----------ABM_04_RemapVariantName-----------------assetBundleName = "+assetBundleName+"---"); 282 | return assetBundleName; 283 | } 284 | 285 | // Where we actuall call WWW to download the assetBundle. 286 | static protected bool ABM_05_LoadAssetBundleInternal (string assetBundleName, bool isLoadingAssetBundleManifest) 287 | { 288 | Debug.Log ("------------ABM_05_LoadAssetBundleInternal----------------------LoadFromCacheOrDownload--------------------- assetBundleName="+assetBundleName); 289 | // Already loaded. 290 | LoadedAssetBundle bundle = null; 291 | m_LoadedAssetBundles.TryGetValue(assetBundleName, out bundle); 292 | if (bundle != null) 293 | { 294 | bundle.m_ReferencedCount++; 295 | return true; 296 | } 297 | 298 | // @TODO: Do we need to consider the referenced count of WWWs? 299 | // In the demo, we never have duplicate WWWs as we wait LoadAssetAsync()/LoadLevelAsync() to be finished before calling another LoadAssetAsync()/LoadLevelAsync(). 300 | // But in the real case, users can call LoadAssetAsync()/LoadLevelAsync() several times then wait them to be finished which might have duplicate WWWs. 301 | if (m_DownloadingWWWs.ContainsKey(assetBundleName) ) 302 | return true; 303 | 304 | WWW download = null; 305 | string url = m_BaseDownloadingURL + assetBundleName; 306 | Debug.Log ("------------ABM_05_LoadAssetBundleInternal----------------------LoadFromCacheOrDownload--------------------- url="+url); 307 | // For manifest assetbundle, always download it as we don't have hash for it. 308 | if (isLoadingAssetBundleManifest) 309 | download = new WWW(url); 310 | else 311 | download = WWW.LoadFromCacheOrDownload(url, m_AssetBundleManifest.GetAssetBundleHash(assetBundleName), 0); 312 | 313 | m_DownloadingWWWs.Add(assetBundleName, download); 314 | 315 | return false; 316 | } 317 | 318 | // Where we get all the dependencies and load them all. 319 | static protected void ABM_06_LoadDependencies(string assetBundleName) 320 | { 321 | if (m_AssetBundleManifest == null) 322 | { 323 | Debug.LogError("--------------ABM_06_LoadDependencies----------AssetBundleManager.Instance.ABM_02_Initialize()を呼び出すことによってAssetBundleManifestを初期化してください。assetBundleName="+assetBundleName); 324 | //AssetBundleManager.Instance.ABM_02_Initialize (assetBundleName); 325 | return; 326 | } 327 | 328 | // Get dependecies from the AssetBundleManifest object.. 329 | string[] dependencies = m_AssetBundleManifest.GetAllDependencies(assetBundleName); 330 | if (dependencies.Length == 0) { 331 | Debug.Log ("------------ABM_06_LoadDependencies----------------------dependencies.Length=" + dependencies.Length); 332 | return; 333 | } 334 | for (int i = 0; i < dependencies.Length; i++) { 335 | dependencies [i] = ABM_04_RemapVariantName (dependencies [i]); 336 | Debug.Log ("------------ABM_06_LoadDependencies--------->>>>ABM_04_RemapVariantName-------------dependencies [i] ="+dependencies [i] ); 337 | } 338 | // Record and load all dependencies. 339 | m_Dependencies.Add(assetBundleName, dependencies); 340 | for (int i = 0; i < dependencies.Length; i++) { 341 | 342 | ABM_05_LoadAssetBundleInternal (dependencies [i], false); 343 | Debug.Log ("------------ABM_06_LoadDependencies---------->>>ABM_05_LoadAssetBundleInternal------------dependencies [i] ="+dependencies [i] ); 344 | } 345 | return; 346 | } 347 | 348 | // Unload assetbundle and its dependencies. 349 | public void ABM_07_UnloadAssetBundle(string assetBundleName) 350 | { 351 | #if UNITY_EDITOR 352 | // If we're in Editor simulation mode, we don't have to load the manifest assetBundle. 353 | if (ABM_00_SimulateAssetBundleInEditor) 354 | Debug.Log ("------------ABM_00_SimulateAssetBundleInEditor----------------------assetBundleName ="+assetBundleName ); 355 | return; 356 | #endif 357 | 358 | //Debug.Log(m_LoadedAssetBundles.Count + " assetbundle(s) in memory before unloading " + assetBundleName); 359 | 360 | ABM_09_UnloadAssetBundleInternal(assetBundleName); 361 | ABM_08_UnloadDependencies(assetBundleName); 362 | 363 | //Debug.Log(m_LoadedAssetBundles.Count + " assetbundle(s) in memory after unloading " + assetBundleName); 364 | } 365 | 366 | static protected void ABM_08_UnloadDependencies(string assetBundleName) 367 | { 368 | string[] dependencies = null; 369 | if (!m_Dependencies.TryGetValue(assetBundleName, out dependencies) ) 370 | Debug.Log ("------------ABM_08_UnloadDependencies----------------------assetBundleName ="+assetBundleName ); 371 | return; 372 | 373 | // Loop dependencies. 374 | foreach(var dependency in dependencies) 375 | { 376 | Debug.Log ("------------ABM_08_UnloadDependencies----------------------dependency ="+dependency ); 377 | ABM_09_UnloadAssetBundleInternal(dependency); 378 | } 379 | 380 | m_Dependencies.Remove(assetBundleName); 381 | } 382 | 383 | static protected void ABM_09_UnloadAssetBundleInternal(string assetBundleName) 384 | { 385 | Debug.Log ("------------ABM_09_UnloadAssetBundleInternal----------------------assetBundleName ="+assetBundleName ); 386 | string error; 387 | LoadedAssetBundle bundle = AssetBundleManager.Instance.ABM_01_GetLoadedAssetBundle(assetBundleName, out error); 388 | if (bundle == null) 389 | Debug.Log ("------------ABM_09_UnloadAssetBundleInternal----------------------bundle ="+bundle ); 390 | return; 391 | 392 | if (--bundle.m_ReferencedCount == 0) 393 | { 394 | bundle.m_AssetBundle.Unload(false); 395 | m_LoadedAssetBundles.Remove(assetBundleName); 396 | //Debug.Log("AssetBundle " + assetBundleName + " has been unloaded successfully"); 397 | } 398 | } 399 | 400 | void Update() 401 | { 402 | // Collect all the finished WWWs. 403 | var keysToRemove = new List(); 404 | foreach (var keyValue in m_DownloadingWWWs) 405 | { 406 | WWW download = keyValue.Value; 407 | 408 | // If downloading fails. 409 | if (download.error != null) 410 | { 411 | m_DownloadingErrors.Add(keyValue.Key, download.error); 412 | keysToRemove.Add(keyValue.Key); 413 | continue; 414 | } 415 | 416 | // If downloading succeeds. 417 | if(download.isDone) 418 | { 419 | Debug.Log ("------------Update----------------------download.isDone ="+download.isDone ); 420 | //Debug.Log("Downloading " + keyValue.Key + " is done at frame " + Time.frameCount); 421 | m_LoadedAssetBundles.Add(keyValue.Key, new LoadedAssetBundle(download.assetBundle) ); 422 | keysToRemove.Add(keyValue.Key); 423 | } 424 | } 425 | 426 | // Remove the finished WWWs. 427 | foreach( var key in keysToRemove) 428 | { 429 | Debug.Log ("------------Update----------------------key ="+key ); 430 | WWW download = m_DownloadingWWWs[key]; 431 | m_DownloadingWWWs.Remove(key); 432 | download.Dispose(); 433 | } 434 | 435 | // Update all in progress operations 436 | for (int i=0;i ()="+request.GetAsset ()); 127 | // Get the asset. 128 | GameObject prefab = request.GetAsset (); 129 | Debug.Log(assetName + (prefab == null ? " isn't" : " is")+ " loaded successfully at frame " + Time.frameCount ); 130 | 131 | if (prefab != null) 132 | Debug.Log(" ---------------BaceLoader.cs----------------- Instantiate prefab="+prefab); 133 | GameObject.Instantiate(prefab); 134 | //instanceRef=GameObject.Instantiate(prefab); 135 | } 136 | protected IEnumerator LoadToInstance (string assetBundleName, string assetName ) 137 | { 138 | 139 | Debug.Log("-------BaceLoader.cs---------Start to load " + assetName + " at frame " + Time.frameCount); 140 | 141 | // Load asset from assetBundle. 142 | AssetBundleLoadAssetOperation request = AssetBundleManager.Instance.ABM_10_LoadAssetAsync(assetBundleName, assetName, typeof(GameObject) ); 143 | if (request == null) 144 | yield break; 145 | yield return StartCoroutine(request); 146 | 147 | Debug.Log(" -----------BaceLoader.cs------------request= "+request+"--- request.GetAsset ()="+request.GetAsset ()); 148 | // Get the asset. 149 | GameObject prefab = request.GetAsset (); 150 | Debug.Log(assetName + (prefab == null ? " isn't" : " is")+ " loaded successfully at frame " + Time.frameCount ); 151 | 152 | if (prefab != null) 153 | Debug.Log(" ---------------BaceLoader.cs----------------- Instantiate prefab="+prefab); 154 | 155 | //GameObject.Instantiate(prefab); 156 | GameObject instanceRef=GameObject.Instantiate(prefab); 157 | instanceRef.transform.position = new Vector3 (-10000, -10000, 0); 158 | ////http://qiita.com/chiepomme/items/2bccc5c6f5b803df8e57 3. IEnumerator#Current を使用する 159 | yield return instanceRef; 160 | //instanceRef=GameObject.Instantiate(prefab); 161 | } 162 | 163 | protected IEnumerator LoadLevel (string assetBundleName, string levelName, bool isAdditive) 164 | { 165 | Debug.Log("-------BaceLoader.cs--------Start to load scene " + levelName + " at frame " + Time.frameCount); 166 | 167 | // Load level from assetBundle. 168 | AssetBundleLoadOperation request = AssetBundleManager.LoadLevelAsync(assetBundleName, levelName, isAdditive); 169 | if (request == null) 170 | yield break; 171 | yield return StartCoroutine(request); 172 | 173 | // This log will only be output when loading level additively. 174 | Debug.Log("-------BaceLoader.cs--------Finish loading scene " + levelName + " at frame " + Time.frameCount); 175 | } 176 | 177 | // Update is called once per frame 178 | protected void Update () { 179 | } 180 | } 181 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/BaseLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5af1b4ecc04c7a47a200586a9005249 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97ef61f52fb784b1d909dc27218ad049 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/Editor/AssetbundlesMenuItems.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Collections; 4 | 5 | public class AssetbundlesMenuItems 6 | { 7 | const string kSimulateAssetBundlesMenu = "AssetBundles/Simulate AssetBundles"; 8 | 9 | [MenuItem(kSimulateAssetBundlesMenu)] 10 | public static void ToggleSimulateAssetBundle () 11 | { 12 | AssetBundleManager.ABM_00_SimulateAssetBundleInEditor = !AssetBundleManager.ABM_00_SimulateAssetBundleInEditor; 13 | } 14 | 15 | [MenuItem(kSimulateAssetBundlesMenu, true)] 16 | public static bool ToggleSimulateAssetBundleValidate () 17 | { 18 | Menu.SetChecked(kSimulateAssetBundlesMenu, AssetBundleManager.ABM_00_SimulateAssetBundleInEditor); 19 | return true; 20 | } 21 | 22 | [MenuItem ("AssetBundles/Build AssetBundles")] 23 | static public void BuildAssetBundles () 24 | { 25 | BuildScript.BuildAssetBundles(); 26 | } 27 | 28 | [MenuItem ("AssetBundles/Build Player")] 29 | static void BuildPlayer () 30 | { 31 | BuildScript.BuildPlayer(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/Editor/AssetbundlesMenuItems.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0906f670aa52147688cf79b1e471f36d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/Editor/BuildScript.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using UnityEditor.Callbacks; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | using System.IO; 7 | 8 | public class BuildScript 9 | { 10 | const string kAssetBundlesOutputPath = "AssetBundles"; 11 | 12 | public static void BuildAssetBundles() 13 | { 14 | // Choose the output path according to the build target. 15 | string outputPath = Path.Combine(kAssetBundlesOutputPath, BaseLoader.GetPlatformFolderForAssetBundles(EditorUserBuildSettings.activeBuildTarget) ); 16 | if (!Directory.Exists(outputPath) ) 17 | Directory.CreateDirectory (outputPath); 18 | 19 | BuildPipeline.BuildAssetBundles (outputPath, 0, EditorUserBuildSettings.activeBuildTarget); 20 | } 21 | 22 | public static void BuildPlayer() 23 | { 24 | var outputPath = EditorUtility.SaveFolderPanel("Choose Location of the Built Game", "", ""); 25 | if (outputPath.Length == 0) 26 | return; 27 | 28 | string[] levels = GetLevelsFromBuildSettings(); 29 | if (levels.Length == 0) 30 | { 31 | Debug.Log("Nothing to build."); 32 | return; 33 | } 34 | 35 | string targetName = GetBuildTargetName(EditorUserBuildSettings.activeBuildTarget); 36 | if (targetName == null) 37 | return; 38 | 39 | // Build and copy AssetBundles. 40 | BuildScript.BuildAssetBundles(); 41 | //BuildScript.CopyAssetBundlesTo(Path.Combine(Application.streamingAssetsPath, kAssetBundlesOutputPath) ); 42 | 43 | BuildOptions option = EditorUserBuildSettings.development ? BuildOptions.Development : BuildOptions.None; 44 | BuildPipeline.BuildPlayer(levels, outputPath + targetName, EditorUserBuildSettings.activeBuildTarget, option); 45 | } 46 | 47 | public static string GetBuildTargetName(BuildTarget target) 48 | { 49 | switch(target) 50 | { 51 | case BuildTarget.Android : 52 | return "/test.apk"; 53 | case BuildTarget.StandaloneWindows: 54 | case BuildTarget.StandaloneWindows64: 55 | return "/test.exe"; 56 | case BuildTarget.StandaloneOSXIntel: 57 | case BuildTarget.StandaloneOSXIntel64: 58 | case BuildTarget.StandaloneOSXUniversal: 59 | return "/test.app"; 60 | case BuildTarget.WebPlayer: 61 | case BuildTarget.WebPlayerStreamed: 62 | return ""; 63 | // Add more build targets for your own. 64 | default: 65 | Debug.Log("Target not implemented."); 66 | return null; 67 | } 68 | } 69 | 70 | static void CopyAssetBundlesTo(string outputPath) 71 | { 72 | // Clear streaming assets folder. 73 | FileUtil.DeleteFileOrDirectory(Application.streamingAssetsPath); 74 | Directory.CreateDirectory(outputPath); 75 | 76 | string outputFolder = BaseLoader.GetPlatformFolderForAssetBundles(EditorUserBuildSettings.activeBuildTarget); 77 | 78 | // Setup the source folder for assetbundles. 79 | var source = Path.Combine(Path.Combine(System.Environment.CurrentDirectory, kAssetBundlesOutputPath), outputFolder); 80 | if (!System.IO.Directory.Exists(source) ) 81 | Debug.Log("No assetBundle output folder, try to build the assetBundles first."); 82 | 83 | // Setup the destination folder for assetbundles. 84 | var destination = System.IO.Path.Combine(outputPath, outputFolder); 85 | if (System.IO.Directory.Exists(destination) ) 86 | FileUtil.DeleteFileOrDirectory(destination); 87 | 88 | FileUtil.CopyFileOrDirectory(source, destination); 89 | } 90 | 91 | static string[] GetLevelsFromBuildSettings() 92 | { 93 | List levels = new List(); 94 | for(int i = 0 ; i < EditorBuildSettings.scenes.Length; ++i) 95 | { 96 | if (EditorBuildSettings.scenes[i].enabled) 97 | levels.Add(EditorBuildSettings.scenes[i].path); 98 | } 99 | 100 | return levels.ToArray(); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/Editor/BuildScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f19ef23648157ec49ab02b99bee74403 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/Editor/Directory_Have_Re_caller.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System; 4 | using System.IO; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | public class Directory_Have_Re_caller { 8 | 9 | public static List OutOfContentsFolderList; 10 | public static List OutOfContentsExtentionList; 11 | public static List OutOfContentsList; 12 | 13 | 14 | public static List HDfilePassNameList; 15 | 16 | /// 17 | /// ########################################################## 18 | /// --------------------------------------------------------------------------------------------------- 19 | /// "HDpath" folder ReCalling .. folder tree under of folder . 探すフォルダパス 再帰して中身のフォルダまで下ります。 20 | /// --------------------------------------------------------------------------------------------------- 21 | /// "OutOfFolderList" is Out Of Contents Folder List. for example add("temp") Un Call "temp_1234folderdir". 除外フォルダ名 22 | /// --------------------------------------------------------------------------------------------------- 23 | /// "OutOfFolderList" is Out Of Contents Extention List. for example add("txt") Un Add "1234567.txt".除外拡張子 24 | /// --------------------------------------------------------------------------------------------------- 25 | /// "OutOfList" is Out Of Contents List. for example add("temp") Un Add "temp_1234.txt".除外ファイル名 26 | /// ########################################################## 27 | /// 28 | /// 29 | /// HDpath.にどこのフォルダ以下か? 30 | /// Out of Contens folder list. 31 | /// Out of Contens extention list. 32 | /// Out Contens Name of list. 33 | 34 | 35 | 36 | 37 | public static List Directory_Have_Re_callStart(string HDpath,List OutOfFolderList,ListOutOfExtentionList,ListOutOfList) 38 | { 39 | 40 | 41 | Debug.Log ("////////////////////////////////////////////////////////////////////////////"); 42 | Debug.Log ("////////////////////////再帰呼び出し はじめ///////////////////////////////////"); 43 | Debug.Log ("////////////////////////////////////////////////////////////////////////////"); 44 | OutOfContentsFolderList= new List (); 45 | if (OutOfFolderList != null) { 46 | OutOfContentsFolderList = OutOfFolderList; 47 | } 48 | OutOfContentsExtentionList= new List (); 49 | if (OutOfExtentionList != null) { 50 | OutOfContentsExtentionList = OutOfExtentionList; 51 | } 52 | OutOfContentsList= new List (); 53 | if (OutOfList != null) { 54 | OutOfContentsList = OutOfList; 55 | } 56 | 57 | 58 | 59 | HDfilePassNameList = new List (); 60 | Directory_Have_Re_call(HDpath); 61 | Debug.Log ("////////////////////////////////////////////////////////////////////////////"); 62 | Debug.Log ("////////////////////////再帰呼び出し おわり///////////////////////////////////"); 63 | Debug.Log ("////////////////////////////////////////////////////////////////////////////"); 64 | return HDfilePassNameList; 65 | } 66 | public static void Directory_Have_Re_call(string dir) 67 | { 68 | 69 | string[] files = Directory.GetFiles(dir); 70 | foreach (string f in files) { 71 | bool CheckOK; 72 | 73 | CheckOK=CheckFileName(f); 74 | 75 | if (CheckOK == true) { 76 | //TextAssetList.Add (t); 77 | Debug.Log("Directory_Have_Re_call ファイル追加します!!f="+f); 78 | //fileNameList.Add (fileName); 79 | HDfilePassNameList.Add (f); 80 | } 81 | 82 | } 83 | 84 | string[] dirs = Directory.GetDirectories(dir); 85 | foreach (string d in dirs) { 86 | 87 | 88 | bool CheckOK = false; 89 | CheckOK = CheckDirName (d); 90 | 91 | if (CheckOK == true) { 92 | Debug.Log ("Directory_Have_Re_call ディレクトリ追従します!!d=" + d); 93 | Directory_Have_Re_call (d); 94 | } else { 95 | Debug.Log ("Directory_Have_Re_call ディレクトリd=" + d+ " ######### フォルダー再帰から除外します。"); 96 | } 97 | 98 | 99 | } 100 | } 101 | public static bool CheckFileName(string f){ 102 | bool CheckOK=true; 103 | string[] filepassNameExArr= f.Split("."[0]); 104 | 105 | string Extention=filepassNameExArr [filepassNameExArr.Length - 1]; 106 | //Debug.Log ("Extention="+Extention); 107 | 108 | string[] filepassNameArr= f.Split("/"[0]); 109 | 110 | string fileName=filepassNameArr [filepassNameArr.Length - 1]; 111 | 112 | 113 | //除外する拡張子 114 | for(int i = 0; i < OutOfContentsExtentionList.Count; i++) 115 | { 116 | int CheckStrLength=OutOfContentsExtentionList [i].Length; 117 | //string nowCheckStr=fileName.Substring(0,CheckStrLength); 118 | //Debug.Log ("nowCheckStr="+nowCheckStr); 119 | 120 | //Debug.Log ("ディレクトリチェック OutOfContentsList ["+i+"]="+OutOfContentsList [i]+" と nowCheckStr="+nowCheckStr); 121 | if (Extention == OutOfContentsExtentionList [i]) { 122 | Debug.Log ("------------------------------除外する拡張子ファイル発見+"+Extention+" fileName="+fileName); 123 | CheckOK = false; 124 | } else { 125 | //CheckOK = true; 126 | } 127 | //Debug.Log("OutOfContentsFolderList: " + i); 128 | } 129 | //除外するファイル名 130 | for(int i = 0; i < OutOfContentsList.Count; i++) 131 | { 132 | int CheckStrLength=OutOfContentsList [i].Length; 133 | string nowCheckStr=fileName.Substring(0,CheckStrLength); 134 | //Debug.Log ("nowCheckStr="+nowCheckStr); 135 | 136 | //Debug.Log ("ディレクトリチェック OutOfContentsList ["+i+"]="+OutOfContentsList [i]+" と nowCheckStr="+nowCheckStr); 137 | if (nowCheckStr == OutOfContentsList [i]) { 138 | Debug.Log ("------------------------------除外するファイル発見+"+nowCheckStr+" fileName="+fileName); 139 | CheckOK = false; 140 | } else { 141 | //CheckOK = true; 142 | } 143 | //Debug.Log("OutOfContentsFolderList: " + i); 144 | } 145 | 146 | return CheckOK; 147 | } 148 | //public static List OutOfContentsFolderList; 149 | //public static List OutOfContentsExtentionList; 150 | //public static List OutOfContentsList; 151 | 152 | public static bool CheckDirName(string d){ 153 | bool CheckOK = true; 154 | string[] dirpassNameArr= d.Split("/"[0]); 155 | 156 | string dirName=dirpassNameArr [dirpassNameArr.Length - 1]; 157 | 158 | 159 | string tempCheckStr=dirName.Substring(0,4); 160 | 161 | 162 | 163 | //OutOfContentsFolderList.Count 164 | //除外するフォルダー 165 | for(int i = 0; i < OutOfContentsFolderList.Count; i++) 166 | { 167 | int CheckStrLength=OutOfContentsFolderList [i].Length; 168 | string nowCheckStr=dirName.Substring(0,CheckStrLength); 169 | //Debug.Log ("nowCheckStr="+nowCheckStr); 170 | 171 | //Debug.Log ("ディレクトリチェック OutOfContentsFolderList ["+i+"]="+OutOfContentsFolderList [i]+" と nowCheckStr="+nowCheckStr); 172 | if (nowCheckStr == OutOfContentsFolderList [i]) { 173 | Debug.Log ("------------------------------除外するフォルダ発見+"+nowCheckStr+" dirName="+dirName); 174 | CheckOK = false; 175 | } else { 176 | //CheckOK = true; 177 | } 178 | //Debug.Log("OutOfContentsFolderList: " + i); 179 | } 180 | 181 | 182 | return CheckOK; 183 | } 184 | } 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/Editor/Directory_Have_Re_caller.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99762ee4b98934934b8cca2f4e2eb2db 3 | timeCreated: 1440825542 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/Editor/NamedFolderToAssetBundleNameRenamer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System.IO; 6 | 7 | public class NamedFolderToAssetBundleNameRenamer:EditorWindow 8 | { 9 | const string kAssetBundlesOutputPath = "AssetBundles"; 10 | 11 | void OnGUI () 12 | { 13 | GUILayout.Label ("NamedFolderToAssetBundleNameRenamer V0.1.1", EditorStyles.boldLabel); 14 | GUILayout.Space (10f); 15 | //csvAsset = EditorGUILayout.ObjectField ("CSV Text", csvAsset, typeof(TextAsset), false) as TextAsset; 16 | GUILayout.Label ("AssetBundle Top Dir", EditorStyles.label); 17 | myAssetBundleTopDir=GUILayout.TextArea (myAssetBundleTopDir, GUILayout.Width (240f)); 18 | //if (csvAsset == null) { 19 | // GUILayout.Label ("Set CSV Data. Extension need .txt"); 20 | //} 21 | GUILayout.Space (10f); 22 | //modelAsset = EditorGUILayout.ObjectField ("3D Model", modelAsset, typeof(GameObject), false) as GameObject; 23 | //if (modelAsset == null) { 24 | // GUILayout.Label ("Set FBX or other 3D model object."); 25 | //} 26 | GUILayout.Space (20f); 27 | if (GUILayout.Button ("Set AssetBundleName", GUILayout.Width (240f))) { 28 | DirToReCallDirAndSetAssetBundleName (); 29 | } 30 | } 31 | 32 | public static List HDfilePassNameList; 33 | 34 | public static List OutOfContentsFolderList; 35 | public static List OutOfContentsExtentionList; 36 | public static List OutOfContentsList; 37 | 38 | public void DirToReCallDirAndSetAssetBundleName(){ 39 | 40 | HDfilePassNameList = new List (); 41 | 42 | //OutOfContents= 43 | OutOfContentsFolderList= new List (); 44 | OutOfContentsFolderList.Add ("temp"); 45 | OutOfContentsExtentionList= new List (); 46 | OutOfContentsExtentionList.Add ("meta"); 47 | OutOfContentsList= new List (); 48 | OutOfContentsList.Add ("temp"); 49 | 50 | Debug.Log("DirToReCallDirAndSetAssetBundleName()--------------------------------------再帰start--------------------"); 51 | HDfilePassNameList=Directory_Have_Re_caller.Directory_Have_Re_callStart (HDAssetBundleTopDir,OutOfContentsFolderList,OutOfContentsExtentionList,OutOfContentsList); 52 | Debug.Log("DirToReCallDirAndSetAssetBundleName()----------------------------------------再帰end------------------"); 53 | Debug.Log("DirToReCallDirAndSetAssetBundleName() .HDfilePassNameList.Count="+HDfilePassNameList.Count); 54 | 55 | 56 | for(int i = 0; i < HDfilePassNameList.Count; i++) 57 | { 58 | Debug.Log("HDfilePassNameList["+i+"]="+HDfilePassNameList[i]); 59 | //HDfilePassNameList[0]=Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_12345_prefab.prefab 60 | //HDfilePassNameList[1]=Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_67890_prefab.prefab 61 | //HDfilePassNameList[0]=/works/UnityProject/Unity-5.0-AssetBundle-Demo/unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_12345_prefab.prefab 62 | //HDfilePassNameList[1]=/works/UnityProject/Unity-5.0-AssetBundle-Demo/unity5_assetbundle-demo/Assets/MyServerData/AssetBundles/Folder1st/Folder2nd/Folder3rd/my_67890_prefab.prefab 63 | 64 | string AssetPath; 65 | string AssetBundleName; 66 | 67 | AssetPath = "Assets"+HDfilePassNameList[i].Replace(Application.dataPath, ""); 68 | Debug.Log("AssetPath="+AssetPath); 69 | AssetBundleName = HDfilePassNameList[i].Replace(HDAssetBundleTopDir, ""); 70 | /// AssetBundleName=Folder1st/Folder2nd/Folder3rd/my_67890_prefab.prefab 71 | string[] filepassNameArr= AssetBundleName.Split("/"[0]); 72 | 73 | string tempPass=""; 74 | for(int d = 0; d < filepassNameArr.Length;d++) 75 | { 76 | if (d < filepassNameArr.Length - 1) { 77 | tempPass = tempPass + filepassNameArr [d]; 78 | } 79 | if (d < filepassNameArr.Length-2) { 80 | 81 | tempPass = tempPass + "/"; 82 | } 83 | } 84 | AssetBundleName = tempPass; 85 | AssetBundleName = AssetBundleName+".unity3d"; 86 | Debug.Log("AssetBundleName="+AssetBundleName); 87 | 88 | /////////////////////////////////////// 89 | AssetBundleNameChengeOneFile (AssetPath, AssetBundleName); 90 | //////////////////////////////////////// 91 | 92 | } 93 | } 94 | 95 | 96 | 97 | // アセットバンドル化するフォルダの設置場所 98 | private static string myAssetBundleTopDir="/MyServerData/AssetBundles/"; 99 | private static string HDAssetBundleTopDir = Application.dataPath+myAssetBundleTopDir; // ※大文字小文字は区別される 100 | private static string AssetBundleTopDir = "Assets"+myAssetBundleTopDir; // ※大文字小文字は区別される 101 | 102 | [MenuItem( "Tools/AssetBundles/Build AssetBundles" )] 103 | public static void BuildAssetBundles() 104 | { 105 | // Choose the output path according to the build target. 106 | string outputPath = Path.Combine(kAssetBundlesOutputPath, GetPlatformFolderForAssetBundles(EditorUserBuildSettings.activeBuildTarget) ); 107 | if (!Directory.Exists(outputPath) ) 108 | Directory.CreateDirectory (outputPath); 109 | 110 | BuildPipeline.BuildAssetBundles (outputPath, 0, EditorUserBuildSettings.activeBuildTarget); 111 | } 112 | #if UNITY_EDITOR 113 | public static string GetPlatformFolderForAssetBundles(BuildTarget target) 114 | { 115 | switch(target) 116 | { 117 | case BuildTarget.Android: 118 | return "Android"; 119 | case BuildTarget.iOS: 120 | return "iOS"; 121 | case BuildTarget.WebPlayer: 122 | return "WebPlayer"; 123 | case BuildTarget.StandaloneWindows: 124 | case BuildTarget.StandaloneWindows64: 125 | return "Windows"; 126 | case BuildTarget.StandaloneOSXIntel: 127 | case BuildTarget.StandaloneOSXIntel64: 128 | case BuildTarget.StandaloneOSXUniversal: 129 | return "OSX"; 130 | // Add more build targets for your own. 131 | // If you add more targets, don't forget to add the same platforms to GetPlatformFolderForAssetBundles(RuntimePlatform) function. 132 | default: 133 | return null; 134 | } 135 | } 136 | #endif 137 | 138 | /* 139 | public static void BuildAssetBundles() 140 | { 141 | // Choose the output path according to the build target. 142 | string outputPath = Path .Combine(kAssetBundlesOutputPath, ""); 143 | if (!Directory.Exists (outputPath)) { 144 | Directory.CreateDirectory (outputPath); 145 | } 146 | 147 | BuildPipeline.BuildAssetBundles(outputPath, BuildAssetBundleOptions.None, EditorUserBuildSettings.activeBuildTarget); 148 | } 149 | */ 150 | 151 | public void AssetBundleNameChengeOneFile(string AssetPath,string AssetBundleName){ 152 | 153 | //var path = AssetDatabase.GetAssetPath(obj); 154 | // AssetImporterも取得 155 | AssetImporter importer = AssetImporter.GetAtPath(AssetPath); 156 | 157 | string myAssetBundleName = AssetBundleName.ToLower(); 158 | 159 | importer.assetBundleName = myAssetBundleName; 160 | importer.assetBundleVariant = ""; 161 | } 162 | /* 163 | private static void SetAssetName(Object obj) 164 | { 165 | var path = AssetDatabase.GetAssetPath(obj); 166 | // AssetImporterも取得 167 | AssetImporter importer = AssetImporter.GetAtPath(path); 168 | 169 | if (path.IndexOf ("Resources/") >= 0) { 170 | return; 171 | } 172 | 173 | string abname = path.Replace(assetTopDir, ""); 174 | int idx = abname.LastIndexOf('.' ); 175 | if (idx != -1) 176 | { 177 | abname = abname.Substring(0, idx) + ".unity3d"; 178 | } 179 | else 180 | { 181 | abname = path; 182 | } 183 | importer.assetBundleName = abname; 184 | importer.assetBundleVariant = ""; 185 | 186 | } 187 | */ 188 | 189 | 190 | //[MenuItem( "Assets/Set Assetbundle name" )] 191 | public static void SelectionAsset() 192 | { 193 | // Build the resource file from the active selection. 194 | Object[] selection = Selection.GetFiltered(typeof( Object), SelectionMode .DeepAssets); 195 | 196 | foreach (var obj in selection) 197 | { 198 | //SetAssetName(obj); 199 | } 200 | 201 | } 202 | 203 | 204 | 205 | //////////////////////////////////////////////////////////////////////////////// 206 | 207 | #region Static 208 | /// 209 | /// Open the tool window 210 | /// 211 | [MenuItem("Tools/AssetBundles/NamedFolderToAssetBundleNameRenamer")] 212 | static public void OpenWindow () 213 | { 214 | EditorWindow.GetWindow (true, "Model Animation Splitter With AnimeController", true); 215 | } 216 | #endregion 217 | } -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/Editor/NamedFolderToAssetBundleNameRenamer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1212a968ef45741768231f7e19f3fe26 3 | timeCreated: 1440821640 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/ScriptsForDemo.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c132caf4068124a54b567c6b2220a917 3 | folderAsset: yes 4 | timeCreated: 1422365828 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/ScriptsForDemo/LoadAssets.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class LoadAssets : BaseLoader { 5 | 6 | public string assetBundleName = "cubewithscript.unity3d"; 7 | public string assetName = "cubewithscript"; 8 | System.Object instanceRef; 9 | GameObject instanceGameObject=new GameObject(); 10 | // Use this for initialization 11 | IEnumerator Start () { 12 | 13 | yield return StartCoroutine(Initialize() ); 14 | 15 | // Load asset. 16 | yield return StartCoroutine(Load (assetBundleName, assetName) ); 17 | 18 | // Unload assetBundles. 19 | AssetBundleManager.Instance.ABM_07_UnloadAssetBundle(assetBundleName); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/ScriptsForDemo/LoadAssets.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fdbd7a29d2d518942b7af8c0a583c7d6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/ScriptsForDemo/LoadScenes.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class LoadScenes : BaseLoader { 5 | 6 | public string sceneAssetBundle = "scene.unity3d"; 7 | public string sceneName = "testScene"; 8 | 9 | public bool loadLevelAdditive = true; 10 | 11 | // Use this for initialization 12 | IEnumerator Start () { 13 | 14 | yield return StartCoroutine(Initialize() ); 15 | 16 | // Load level. 17 | yield return StartCoroutine(LoadLevel (sceneAssetBundle, sceneName, loadLevelAdditive) ); 18 | 19 | // Unload assetBundles. 20 | AssetBundleManager.Instance.ABM_07_UnloadAssetBundle(sceneAssetBundle); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/ScriptsForDemo/LoadScenes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ed085a901b1ce34c871a02024743a09 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/ScriptsForDemo/LoadVariants.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class LoadVariants : BaseLoader { 5 | 6 | public string variantSceneAssetBundle = "variants/variant-scene.unity3d"; 7 | public string variantSceneName = "variant-scene"; 8 | public string[] activeVariants = {"hd"}; 9 | 10 | // Use this for initialization 11 | IEnumerator Start () { 12 | 13 | yield return StartCoroutine(Initialize() ); 14 | 15 | // Set active variants. 16 | AssetBundleManager.Variants = activeVariants; 17 | 18 | // Load variant level which depends on variants. 19 | yield return StartCoroutine(LoadLevel (variantSceneAssetBundle, variantSceneName, true) ); 20 | 21 | // Unload assetBundles. 22 | AssetBundleManager.Instance.ABM_07_UnloadAssetBundle(variantSceneAssetBundle); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/ScriptsForDemo/LoadVariants.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d32ab3df764b1e94c882a2fbce6f996d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8592f3cb2bfa5824a86755c69e362621 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CuBeUnityLogoAndroidETC1.pkm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whaison/Unity-5.0-AssetBundle-Demo/5b376400092c7fa6b1d970053374ca7cd61a42a3/unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CuBeUnityLogoAndroidETC1.pkm -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CuBeUnityLogoAndroidETC1.pkm.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d9ec164bdb8748c8b5a14ae6e917348 3 | timeCreated: 1440821103 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CuBeUnityLogoAndroidETC1.tps: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | fileFormatVersion 5 | 3 6 | texturePackerVersion 7 | 3.9.2 8 | fileName 9 | /works/UnityProject/Unity-5.0-AssetBundle-Demo/unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CuBeUnityLogoAndroidETC1.tps 10 | autoSDSettings 11 | 12 | 13 | scale 14 | 1 15 | extension 16 | 17 | spriteFilter 18 | 19 | acceptFractionalValues 20 | 21 | maxTextureSize 22 | 23 | width 24 | -1 25 | height 26 | -1 27 | 28 | 29 | 30 | allowRotation 31 | 32 | premultiplyAlpha 33 | 34 | shapeDebug 35 | 36 | dpi 37 | 72 38 | dataFormat 39 | unity-texture2d 40 | textureFileName 41 | 42 | flipPVR 43 | 44 | pvrCompressionQuality 45 | PVR_QUALITY_VERY_LOW 46 | atfCompressData 47 | 48 | mipMapMinSize 49 | 32768 50 | etc1CompressionQuality 51 | ETC1_QUALITY_LOW_PERCEPTUAL 52 | dxtCompressionMode 53 | DXT_PERCEPTUAL 54 | jxrColorFormat 55 | JXR_YUV444 56 | jxrTrimFlexBits 57 | 0 58 | jxrCompressionLevel 59 | 0 60 | ditherType 61 | FloydSteinberg 62 | backgroundColor 63 | 0 64 | libGdx 65 | 66 | filtering 67 | 68 | x 69 | Linear 70 | y 71 | Linear 72 | 73 | 74 | shapePadding 75 | 2 76 | jpgQuality 77 | 80 78 | pngOptimizationLevel 79 | 1 80 | webpQualityLevel 81 | 101 82 | textureSubPath 83 | 84 | textureFormat 85 | pkm 86 | borderPadding 87 | 2 88 | maxTextureSize 89 | 90 | width 91 | 512 92 | height 93 | 512 94 | 95 | fixedTextureSize 96 | 97 | width 98 | -1 99 | height 100 | -1 101 | 102 | reduceBorderArtifacts 103 | 104 | algorithmSettings 105 | 106 | algorithm 107 | MaxRects 108 | freeSizeMode 109 | Best 110 | sizeConstraints 111 | POT 112 | forceSquared 113 | 114 | forceWordAligned 115 | 116 | maxRects 117 | 118 | heuristic 119 | Best 120 | 121 | basic 122 | 123 | sortBy 124 | Best 125 | order 126 | Ascending 127 | 128 | 129 | andEngine 130 | 131 | minFilter 132 | Linear 133 | packageName 134 | Texture 135 | wrap 136 | 137 | s 138 | Clamp 139 | t 140 | Clamp 141 | 142 | magFilter 143 | MagLinear 144 | 145 | dataFileNames 146 | 147 | datafile 148 | 149 | name 150 | CuBeUnityLogoAndroidETC1.tpsheet 151 | 152 | 153 | multiPack 154 | 155 | forceIdenticalLayout 156 | 157 | outputFormat 158 | ETC1 159 | contentProtection 160 | 161 | key 162 | 163 | 164 | autoAliasEnabled 165 | 166 | trimSpriteNames 167 | 168 | prependSmartFolderName 169 | 170 | cleanTransparentPixels 171 | 172 | globalSpriteSettings 173 | 174 | scale 175 | 1 176 | scaleMode 177 | Smooth 178 | innerPadding 179 | 0 180 | extrude 181 | 0 182 | trimThreshold 183 | 1 184 | trimMode 185 | CropKeepPos 186 | heuristicMask 187 | 188 | pivotPoint 189 | Center 190 | 191 | fileList 192 | 193 | CubeUnityLogo.png 194 | 195 | ignoreFileList 196 | 197 | replaceList 198 | 199 | ignoredWarnings 200 | 201 | commonDivisorX 202 | 1 203 | commonDivisorY 204 | 1 205 | packNormalMaps 206 | 207 | autodetectNormalMaps 208 | 209 | normalMapFilter 210 | 211 | normalMapSuffix 212 | 213 | normalMapSheetFileName 214 | 215 | 216 | 217 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CuBeUnityLogoAndroidETC1.tps.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 877260b991b5042388fa8828daacf800 3 | timeCreated: 1440821103 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CuBeUnityLogoAndroidETC1.tpsheet: -------------------------------------------------------------------------------- 1 | # 2 | # Sprite sheet data for Unity. 3 | # 4 | # To import these sprites into your Unity project, download "TexturePackerImporter": 5 | # http://www.codeandweb.com/texturepacker/unity 6 | # 7 | # Sprite sheet: CuBeUnityLogoAndroidETC1.pkm (256 x 256) 8 | # $TexturePacker:SmartUpdate:f761faae0a20b21c3f88e9e5a26eca37:f872c37bea3bfc0354bd0682586c38c0:023edd926b6134d789f385588a785435$ 9 | # 10 | 11 | CubeUnityLogo;2;94;162;160;0.5;0.5 12 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CuBeUnityLogoAndroidETC1.tpsheet.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b65a39e8dd5f44e77a7f07930386eceb 3 | timeCreated: 1440821103 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/Cube.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &100000 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 400000} 11 | - 33: {fileID: 3300000} 12 | - 65: {fileID: 6500000} 13 | - 23: {fileID: 2300000} 14 | - 114: {fileID: 11445604} 15 | m_Layer: 0 16 | m_Name: Cube 17 | m_TagString: Untagged 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &400000 23 | Transform: 24 | m_ObjectHideFlags: 1 25 | m_PrefabParentObject: {fileID: 0} 26 | m_PrefabInternal: {fileID: 100100000} 27 | m_GameObject: {fileID: 100000} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 0} 30 | m_LocalScale: {x: 3, y: 3, z: 3} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | --- !u!23 &2300000 35 | MeshRenderer: 36 | m_ObjectHideFlags: 1 37 | m_PrefabParentObject: {fileID: 0} 38 | m_PrefabInternal: {fileID: 100100000} 39 | m_GameObject: {fileID: 100000} 40 | m_Enabled: 1 41 | m_CastShadows: 1 42 | m_ReceiveShadows: 1 43 | m_Materials: 44 | - {fileID: 2100000, guid: 30987f57dfd5b354a96c306664824284, type: 2} 45 | m_SubsetIndices: 46 | m_StaticBatchRoot: {fileID: 0} 47 | m_UseLightProbes: 0 48 | m_ReflectionProbeUsage: 0 49 | m_ProbeAnchor: {fileID: 0} 50 | m_ScaleInLightmap: 1 51 | m_PreserveUVs: 0 52 | m_ImportantGI: 0 53 | m_AutoUVMaxDistance: .5 54 | m_AutoUVMaxAngle: 89 55 | m_LightmapParameters: {fileID: 0} 56 | m_SortingLayerID: 0 57 | m_SortingOrder: 0 58 | --- !u!33 &3300000 59 | MeshFilter: 60 | m_ObjectHideFlags: 1 61 | m_PrefabParentObject: {fileID: 0} 62 | m_PrefabInternal: {fileID: 100100000} 63 | m_GameObject: {fileID: 100000} 64 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 65 | --- !u!65 &6500000 66 | BoxCollider: 67 | m_ObjectHideFlags: 1 68 | m_PrefabParentObject: {fileID: 0} 69 | m_PrefabInternal: {fileID: 100100000} 70 | m_GameObject: {fileID: 100000} 71 | m_Material: {fileID: 0} 72 | m_IsTrigger: 0 73 | m_Enabled: 1 74 | serializedVersion: 2 75 | m_Size: {x: 1, y: 1, z: 1} 76 | m_Center: {x: 0, y: 0, z: 0} 77 | --- !u!114 &11445604 78 | MonoBehaviour: 79 | m_ObjectHideFlags: 1 80 | m_PrefabParentObject: {fileID: 0} 81 | m_PrefabInternal: {fileID: 100100000} 82 | m_GameObject: {fileID: 100000} 83 | m_Enabled: 1 84 | m_EditorHideFlags: 0 85 | m_Script: {fileID: 11500000, guid: acb94a638aad44053bdd37e18a289495, type: 3} 86 | m_Name: 87 | m_EditorClassIdentifier: 88 | --- !u!1001 &100100000 89 | Prefab: 90 | m_ObjectHideFlags: 1 91 | serializedVersion: 2 92 | m_Modification: 93 | m_TransformParent: {fileID: 0} 94 | m_Modifications: [] 95 | m_RemovedComponents: [] 96 | m_ParentPrefab: {fileID: 0} 97 | m_RootGameObject: {fileID: 100000} 98 | m_IsPrefabParent: 1 99 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/Cube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2673728a4910efa45836875b36bc7721 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: cube.unity3d 6 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CubeMyMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: CubeMyMaterial 10 | m_Shader: {fileID: 3, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | data: 19 | first: 20 | name: _MainTex 21 | second: 22 | m_Texture: {fileID: 2800000, guid: 367620916cf708845a888b3022d9e427, type: 3} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | m_Floats: 26 | data: 27 | first: 28 | name: _Shininess 29 | second: .078125 30 | m_Colors: 31 | data: 32 | first: 33 | name: _Color 34 | second: {r: 1, g: 1, b: 1, a: 1} 35 | data: 36 | first: 37 | name: _SpecColor 38 | second: {r: .5, g: .5, b: .5, a: 1} 39 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CubeMyMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30987f57dfd5b354a96c306664824284 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: material.unity3d 6 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CubeUnityLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whaison/Unity-5.0-AssetBundle-Demo/5b376400092c7fa6b1d970053374ca7cd61a42a3/unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CubeUnityLogo.png -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CubeUnityLogo.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 367620916cf708845a888b3022d9e427 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 1 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | cubemapConvolution: 0 23 | cubemapConvolutionSteps: 8 24 | cubemapConvolutionExponent: 1.5 25 | seamlessCubemap: 0 26 | textureFormat: -1 27 | maxTextureSize: 1024 28 | textureSettings: 29 | filterMode: -1 30 | aniso: -1 31 | mipBias: -1 32 | wrapMode: -1 33 | nPOTScale: 1 34 | lightmap: 0 35 | rGBM: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: .5, y: .5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaIsTransparency: 0 45 | textureType: -1 46 | buildTargetSettings: [] 47 | spriteSheet: 48 | sprites: [] 49 | spritePackingTag: 50 | userData: 51 | assetBundleName: texture.unity3d 52 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CubeWithScript.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &172516 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 486152} 11 | - 33: {fileID: 3309732} 12 | - 65: {fileID: 6506728} 13 | - 23: {fileID: 2385480} 14 | - 114: {fileID: 11445424} 15 | m_Layer: 0 16 | m_Name: CubeWithScript 17 | m_TagString: Untagged 18 | m_Icon: {fileID: 0} 19 | m_NavMeshLayer: 0 20 | m_StaticEditorFlags: 0 21 | m_IsActive: 1 22 | --- !u!4 &486152 23 | Transform: 24 | m_ObjectHideFlags: 1 25 | m_PrefabParentObject: {fileID: 0} 26 | m_PrefabInternal: {fileID: 100100000} 27 | m_GameObject: {fileID: 172516} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 0} 30 | m_LocalScale: {x: 3, y: 3, z: 3} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | --- !u!23 &2385480 35 | MeshRenderer: 36 | m_ObjectHideFlags: 1 37 | m_PrefabParentObject: {fileID: 0} 38 | m_PrefabInternal: {fileID: 100100000} 39 | m_GameObject: {fileID: 172516} 40 | m_Enabled: 1 41 | m_CastShadows: 1 42 | m_ReceiveShadows: 1 43 | m_Materials: 44 | - {fileID: 2100000, guid: 30987f57dfd5b354a96c306664824284, type: 2} 45 | m_SubsetIndices: 46 | m_StaticBatchRoot: {fileID: 0} 47 | m_UseLightProbes: 0 48 | m_ReflectionProbeUsage: 0 49 | m_ProbeAnchor: {fileID: 0} 50 | m_ScaleInLightmap: 1 51 | m_PreserveUVs: 0 52 | m_ImportantGI: 0 53 | m_AutoUVMaxDistance: .5 54 | m_AutoUVMaxAngle: 89 55 | m_LightmapParameters: {fileID: 0} 56 | m_SortingLayerID: 0 57 | m_SortingOrder: 0 58 | --- !u!33 &3309732 59 | MeshFilter: 60 | m_ObjectHideFlags: 1 61 | m_PrefabParentObject: {fileID: 0} 62 | m_PrefabInternal: {fileID: 100100000} 63 | m_GameObject: {fileID: 172516} 64 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 65 | --- !u!65 &6506728 66 | BoxCollider: 67 | m_ObjectHideFlags: 1 68 | m_PrefabParentObject: {fileID: 0} 69 | m_PrefabInternal: {fileID: 100100000} 70 | m_GameObject: {fileID: 172516} 71 | m_Material: {fileID: 0} 72 | m_IsTrigger: 0 73 | m_Enabled: 1 74 | serializedVersion: 2 75 | m_Size: {x: 1, y: 1, z: 1} 76 | m_Center: {x: 0, y: 0, z: 0} 77 | --- !u!114 &11445424 78 | MonoBehaviour: 79 | m_ObjectHideFlags: 1 80 | m_PrefabParentObject: {fileID: 0} 81 | m_PrefabInternal: {fileID: 100100000} 82 | m_GameObject: {fileID: 172516} 83 | m_Enabled: 1 84 | m_EditorHideFlags: 0 85 | m_Script: {fileID: 11500000, guid: acb94a638aad44053bdd37e18a289495, type: 3} 86 | m_Name: 87 | m_EditorClassIdentifier: 88 | --- !u!1001 &100100000 89 | Prefab: 90 | m_ObjectHideFlags: 1 91 | serializedVersion: 2 92 | m_Modification: 93 | m_TransformParent: {fileID: 0} 94 | m_Modifications: [] 95 | m_RemovedComponents: [] 96 | m_ParentPrefab: {fileID: 0} 97 | m_RootGameObject: {fileID: 172516} 98 | m_IsPrefabParent: 1 99 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/CubeWithScript.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e175162a1afa54bb1b8939b8b5fdddd8 3 | timeCreated: 1436150359 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: cubewithscript.unity3d 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 275637d58844947edba7ef2b2031df1a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets HD.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80204c1ff2437486b9251d9e6530b6e6 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: variants/myassets 7 | assetBundleVariant: hd 8 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets HD/myTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whaison/Unity-5.0-AssetBundle-Demo/5b376400092c7fa6b1d970053374ca7cd61a42a3/unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets HD/myTexture.png -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets HD/myTexture.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7237a1aa44f846fdb5e7cf9d27f3d87 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | cubemapConvolution: 0 23 | cubemapConvolutionSteps: 8 24 | cubemapConvolutionExponent: 1.5 25 | seamlessCubemap: 0 26 | textureFormat: -1 27 | maxTextureSize: 1024 28 | textureSettings: 29 | filterMode: -1 30 | aniso: 1 31 | mipBias: -1 32 | wrapMode: 1 33 | nPOTScale: 0 34 | lightmap: 0 35 | rGBM: 0 36 | compressionQuality: 50 37 | spriteMode: 1 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: .5, y: .5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaIsTransparency: 1 45 | textureType: 8 46 | buildTargetSettings: [] 47 | spriteSheet: 48 | sprites: [] 49 | spritePackingTag: 50 | userData: 51 | assetBundleName: 52 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets HD/someMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: someMaterial 10 | m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _Illum 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: 31 | data: 32 | first: 33 | name: _DynamicEmissionLM 34 | second: 0 35 | data: 36 | first: 37 | name: _EmissionLM 38 | second: 0 39 | m_Colors: 40 | data: 41 | first: 42 | name: _Color 43 | second: {r: .897058845, g: .098940298, b: .098940298, a: 1} 44 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets HD/someMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4eb3a2051c0574dd49f7f450542bf9e5 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets SD.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b020066d521144b82a861fb2e271e5f0 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: variants/myassets 7 | assetBundleVariant: sd 8 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets SD/myTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/whaison/Unity-5.0-AssetBundle-Demo/5b376400092c7fa6b1d970053374ca7cd61a42a3/unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets SD/myTexture.png -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets SD/myTexture.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d901fa437668a409388b09b15c7edb7e 3 | TextureImporter: 4 | serializedVersion: 2 5 | mipmaps: 6 | mipMapMode: 0 7 | enableMipMap: 0 8 | linearTexture: 0 9 | correctGamma: 0 10 | fadeOut: 0 11 | borderMipMap: 0 12 | mipMapFadeDistanceStart: 1 13 | mipMapFadeDistanceEnd: 3 14 | bumpmap: 15 | convertToNormalMap: 0 16 | externalNormalMap: 0 17 | heightScale: .25 18 | normalMapFilter: 0 19 | isReadable: 0 20 | grayScaleToAlpha: 0 21 | generateCubemap: 0 22 | cubemapConvolution: 0 23 | cubemapConvolutionSteps: 8 24 | cubemapConvolutionExponent: 1.5 25 | seamlessCubemap: 0 26 | textureFormat: -1 27 | maxTextureSize: 1024 28 | textureSettings: 29 | filterMode: -1 30 | aniso: 1 31 | mipBias: -1 32 | wrapMode: 1 33 | nPOTScale: 0 34 | lightmap: 0 35 | rGBM: 0 36 | compressionQuality: 50 37 | spriteMode: 1 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: .5, y: .5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaIsTransparency: 1 45 | textureType: 8 46 | buildTargetSettings: [] 47 | spriteSheet: 48 | sprites: [] 49 | spritePackingTag: 50 | userData: 51 | assetBundleName: 52 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets SD/someMaterial.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: someMaterial 10 | m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 0} 21 | m_Scale: {x: 1, y: 1} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _Illum 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: 31 | data: 32 | first: 33 | name: _DynamicEmissionLM 34 | second: 0 35 | data: 36 | first: 37 | name: _EmissionLM 38 | second: 0 39 | m_Colors: 40 | data: 41 | first: 42 | name: _Color 43 | second: {r: .0314975381, g: .0105428118, b: .286764681, a: 1} 44 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/MyAssets SD/someMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25deb92ca06bb4297a0e16fc4756b110 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/variant-scene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: .25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 2 17 | m_Fog: 0 18 | m_FogColor: {r: .5, g: .5, b: .5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: .00999999978 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} 24 | m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} 25 | m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} 26 | m_AmbientSkyboxExposure: .300000012 27 | m_AmbientProbe: 28 | sh[0]: {x: 0, y: 0, z: 0} 29 | sh[1]: {x: 0, y: 0, z: 0} 30 | sh[2]: {x: 0, y: 0, z: 0} 31 | sh[3]: {x: 0, y: 0, z: 0} 32 | sh[4]: {x: 0, y: 0, z: 0} 33 | sh[5]: {x: 0, y: 0, z: 0} 34 | sh[6]: {x: 0, y: 0, z: 0} 35 | sh[7]: {x: 0, y: 0, z: 0} 36 | sh[8]: {x: 0, y: 0, z: 0} 37 | m_AmbientSkyboxLight: {fileID: 0} 38 | m_AmbientMode: 1 39 | m_CreateAmbientLight: 0 40 | m_SkyboxMaterial: {fileID: 0} 41 | m_HaloStrength: .5 42 | m_FlareStrength: 1 43 | m_FlareFadeSpeed: 3 44 | m_HaloTexture: {fileID: 0} 45 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 46 | m_DefaultReflectionMode: 1 47 | m_CustomReflection: {fileID: 0} 48 | m_GeneratedSkyboxReflection: {fileID: 0} 49 | --- !u!127 &3 50 | LevelGameManager: 51 | m_ObjectHideFlags: 0 52 | --- !u!157 &4 53 | LightmapSettings: 54 | m_ObjectHideFlags: 0 55 | serializedVersion: 3 56 | m_LightProbesLegacy: {fileID: 0} 57 | m_GIWorkflowMode: 2 58 | m_LightProbes: {fileID: 0} 59 | m_Lightmaps: [] 60 | m_LightmapsModeLegacy: 1 61 | m_LightmapsMode: 0 62 | m_BakedColorSpace: 0 63 | m_UseDualLightmapsInForward: 0 64 | m_GISettings: 65 | m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1} 66 | m_SkyLightIntensity: 0 67 | m_BounceScale: 1 68 | m_IndirectOutputScale: 1 69 | m_AlbedoBoost: 1 70 | m_DynamicEnv: 0 71 | m_LightmapEditorSettings: 72 | serializedVersion: 2 73 | m_Resolution: 1 74 | m_BakeResolution: 40 75 | m_SystemTexelWidth: 128 76 | m_LastUsedResolution: 0 77 | m_TextureWidth: 1024 78 | m_TextureHeight: 1024 79 | m_BounceBoost: 1 80 | m_BounceIntensity: 1 81 | m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1} 82 | m_SkyLightIntensity: 0 83 | m_Quality: 0 84 | m_Bounces: 1 85 | m_FinalGatherRays: 1000 86 | m_FinalGatherContrastThreshold: .0500000007 87 | m_FinalGatherGradientThreshold: 0 88 | m_FinalGatherInterpolationPoints: 15 89 | m_AOAmount: 0 90 | m_AOMaxDistance: .100000001 91 | m_AOContrast: 1 92 | m_LODSurfaceMappingDistance: 1 93 | m_Padding: 0 94 | m_TextureCompression: 1 95 | m_LockAtlas: 0 96 | m_ForceWhiteAlbedo: 0 97 | m_ForceUpdates: 0 98 | m_CompDirectScale: 1 99 | m_CompIndirectScale: 1 100 | m_CompAOExponent: 1 101 | m_LightmapSnapshot: {fileID: 0} 102 | --- !u!196 &5 103 | NavMeshSettings: 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentRadius: .5 108 | agentHeight: 2 109 | agentSlope: 45 110 | agentClimb: .400000006 111 | ledgeDropHeight: 0 112 | maxJumpAcrossDistance: 0 113 | accuratePlacement: 0 114 | minRegionArea: 2 115 | cellSize: .166666672 116 | manualCellSize: 0 117 | m_NavMeshData: {fileID: 0} 118 | --- !u!1 &303334875 119 | GameObject: 120 | m_ObjectHideFlags: 0 121 | m_PrefabParentObject: {fileID: 0} 122 | m_PrefabInternal: {fileID: 0} 123 | serializedVersion: 4 124 | m_Component: 125 | - 4: {fileID: 303334880} 126 | - 20: {fileID: 303334879} 127 | - 92: {fileID: 303334878} 128 | - 124: {fileID: 303334877} 129 | m_Layer: 0 130 | m_Name: Main Camera 131 | m_TagString: MainCamera 132 | m_Icon: {fileID: 0} 133 | m_NavMeshLayer: 0 134 | m_StaticEditorFlags: 0 135 | m_IsActive: 1 136 | --- !u!124 &303334877 137 | Behaviour: 138 | m_ObjectHideFlags: 0 139 | m_PrefabParentObject: {fileID: 0} 140 | m_PrefabInternal: {fileID: 0} 141 | m_GameObject: {fileID: 303334875} 142 | m_Enabled: 1 143 | --- !u!92 &303334878 144 | Behaviour: 145 | m_ObjectHideFlags: 0 146 | m_PrefabParentObject: {fileID: 0} 147 | m_PrefabInternal: {fileID: 0} 148 | m_GameObject: {fileID: 303334875} 149 | m_Enabled: 1 150 | --- !u!20 &303334879 151 | Camera: 152 | m_ObjectHideFlags: 0 153 | m_PrefabParentObject: {fileID: 0} 154 | m_PrefabInternal: {fileID: 0} 155 | m_GameObject: {fileID: 303334875} 156 | m_Enabled: 1 157 | serializedVersion: 2 158 | m_ClearFlags: 1 159 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 160 | m_NormalizedViewPortRect: 161 | serializedVersion: 2 162 | x: 0 163 | y: 0 164 | width: 1 165 | height: 1 166 | near clip plane: .300000012 167 | far clip plane: 1000 168 | field of view: 60 169 | orthographic: 0 170 | orthographic size: 5 171 | m_Depth: -1 172 | m_CullingMask: 173 | serializedVersion: 2 174 | m_Bits: 4294967295 175 | m_RenderingPath: -1 176 | m_TargetTexture: {fileID: 0} 177 | m_TargetDisplay: 0 178 | m_HDR: 0 179 | m_OcclusionCulling: 1 180 | m_StereoConvergence: 10 181 | m_StereoSeparation: .0219999999 182 | --- !u!4 &303334880 183 | Transform: 184 | m_ObjectHideFlags: 0 185 | m_PrefabParentObject: {fileID: 0} 186 | m_PrefabInternal: {fileID: 0} 187 | m_GameObject: {fileID: 303334875} 188 | m_LocalRotation: {x: -1.49011594e-08, y: -1.26659856e-07, z: 7.45057971e-09, w: -1} 189 | m_LocalPosition: {x: .970564246, y: .20786801, z: -3.68972111} 190 | m_LocalScale: {x: 1, y: 1, z: 1} 191 | m_Children: [] 192 | m_Father: {fileID: 0} 193 | m_RootOrder: 2 194 | --- !u!1 &1189931333 195 | GameObject: 196 | m_ObjectHideFlags: 0 197 | m_PrefabParentObject: {fileID: 0} 198 | m_PrefabInternal: {fileID: 0} 199 | serializedVersion: 4 200 | m_Component: 201 | - 4: {fileID: 1189931337} 202 | - 33: {fileID: 1189931336} 203 | - 65: {fileID: 1189931335} 204 | - 23: {fileID: 1189931334} 205 | m_Layer: 0 206 | m_Name: Cube 207 | m_TagString: Untagged 208 | m_Icon: {fileID: 0} 209 | m_NavMeshLayer: 0 210 | m_StaticEditorFlags: 0 211 | m_IsActive: 1 212 | --- !u!23 &1189931334 213 | MeshRenderer: 214 | m_ObjectHideFlags: 0 215 | m_PrefabParentObject: {fileID: 0} 216 | m_PrefabInternal: {fileID: 0} 217 | m_GameObject: {fileID: 1189931333} 218 | m_Enabled: 1 219 | m_CastShadows: 1 220 | m_ReceiveShadows: 1 221 | m_LightmapIndex: 255 222 | m_LightmapIndexDynamic: 255 223 | m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} 224 | m_LightmapTilingOffsetDynamic: {x: 1, y: 1, z: 0, w: 0} 225 | m_Materials: 226 | - {fileID: 2100000, guid: 4eb3a2051c0574dd49f7f450542bf9e5, type: 2} 227 | m_SubsetIndices: 228 | m_StaticBatchRoot: {fileID: 0} 229 | m_UseLightProbes: 0 230 | m_UseReflectionProbes: 0 231 | m_ProbeAnchor: {fileID: 0} 232 | m_ScaleInLightmap: 1 233 | m_EnlightenSystemBuildParameters: {fileID: 0} 234 | m_GIBackfaceCull: 0 235 | m_SortingLayerID: 0 236 | m_SortingOrder: 0 237 | --- !u!65 &1189931335 238 | BoxCollider: 239 | m_ObjectHideFlags: 0 240 | m_PrefabParentObject: {fileID: 0} 241 | m_PrefabInternal: {fileID: 0} 242 | m_GameObject: {fileID: 1189931333} 243 | m_Material: {fileID: 0} 244 | m_IsTrigger: 0 245 | m_Enabled: 1 246 | serializedVersion: 2 247 | m_Size: {x: 1, y: 1, z: 1} 248 | m_Center: {x: 0, y: 0, z: 0} 249 | --- !u!33 &1189931336 250 | MeshFilter: 251 | m_ObjectHideFlags: 0 252 | m_PrefabParentObject: {fileID: 0} 253 | m_PrefabInternal: {fileID: 0} 254 | m_GameObject: {fileID: 1189931333} 255 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 256 | --- !u!4 &1189931337 257 | Transform: 258 | m_ObjectHideFlags: 0 259 | m_PrefabParentObject: {fileID: 0} 260 | m_PrefabInternal: {fileID: 0} 261 | m_GameObject: {fileID: 1189931333} 262 | m_LocalRotation: {x: -.173385188, y: .112359785, z: -.000452805078, w: .978423595} 263 | m_LocalPosition: {x: 0, y: 0, z: 0} 264 | m_LocalScale: {x: 1, y: 1, z: 1} 265 | m_Children: [] 266 | m_Father: {fileID: 0} 267 | m_RootOrder: 0 268 | --- !u!1 &1794217484 269 | GameObject: 270 | m_ObjectHideFlags: 0 271 | m_PrefabParentObject: {fileID: 0} 272 | m_PrefabInternal: {fileID: 0} 273 | serializedVersion: 4 274 | m_Component: 275 | - 4: {fileID: 1794217486} 276 | - 212: {fileID: 1794217485} 277 | m_Layer: 0 278 | m_Name: myTexture 279 | m_TagString: Untagged 280 | m_Icon: {fileID: 0} 281 | m_NavMeshLayer: 0 282 | m_StaticEditorFlags: 0 283 | m_IsActive: 1 284 | --- !u!212 &1794217485 285 | SpriteRenderer: 286 | m_ObjectHideFlags: 0 287 | m_PrefabParentObject: {fileID: 0} 288 | m_PrefabInternal: {fileID: 0} 289 | m_GameObject: {fileID: 1794217484} 290 | m_Enabled: 1 291 | m_CastShadows: 0 292 | m_ReceiveShadows: 0 293 | m_LightmapIndex: 255 294 | m_LightmapIndexDynamic: 255 295 | m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} 296 | m_LightmapTilingOffsetDynamic: {x: 1, y: 1, z: 0, w: 0} 297 | m_Materials: 298 | - {fileID: 10754, guid: 0000000000000000e000000000000000, type: 0} 299 | m_SubsetIndices: 300 | m_StaticBatchRoot: {fileID: 0} 301 | m_UseLightProbes: 0 302 | m_UseReflectionProbes: 0 303 | m_ProbeAnchor: {fileID: 0} 304 | m_ScaleInLightmap: 1 305 | m_EnlightenSystemBuildParameters: {fileID: 0} 306 | m_GIBackfaceCull: 0 307 | m_SortingLayerID: 0 308 | m_SortingOrder: 0 309 | m_Sprite: {fileID: 21300000, guid: d7237a1aa44f846fdb5e7cf9d27f3d87, type: 3} 310 | m_Color: {r: 1, g: 1, b: 1, a: 1} 311 | --- !u!4 &1794217486 312 | Transform: 313 | m_ObjectHideFlags: 0 314 | m_PrefabParentObject: {fileID: 0} 315 | m_PrefabInternal: {fileID: 0} 316 | m_GameObject: {fileID: 1794217484} 317 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 318 | m_LocalPosition: {x: 2.74850082, y: -.111425638, z: 0} 319 | m_LocalScale: {x: 1, y: 1, z: 1} 320 | m_Children: [] 321 | m_Father: {fileID: 0} 322 | m_RootOrder: 3 323 | --- !u!1 &1798462160 324 | GameObject: 325 | m_ObjectHideFlags: 0 326 | m_PrefabParentObject: {fileID: 0} 327 | m_PrefabInternal: {fileID: 0} 328 | serializedVersion: 4 329 | m_Component: 330 | - 4: {fileID: 1798462162} 331 | - 108: {fileID: 1798462161} 332 | m_Layer: 0 333 | m_Name: Directional light 334 | m_TagString: Untagged 335 | m_Icon: {fileID: 0} 336 | m_NavMeshLayer: 0 337 | m_StaticEditorFlags: 0 338 | m_IsActive: 1 339 | --- !u!108 &1798462161 340 | Light: 341 | m_ObjectHideFlags: 0 342 | m_PrefabParentObject: {fileID: 0} 343 | m_PrefabInternal: {fileID: 0} 344 | m_GameObject: {fileID: 1798462160} 345 | m_Enabled: 1 346 | serializedVersion: 4 347 | m_Type: 1 348 | m_Color: {r: 1, g: 1, b: 1, a: 1} 349 | m_Intensity: .5 350 | m_Range: 10 351 | m_SpotAngle: 30 352 | m_CookieSize: 10 353 | m_Shadows: 354 | m_Type: 0 355 | m_Resolution: -1 356 | m_Strength: 1 357 | m_Bias: .0500000007 358 | m_Softness: 4 359 | m_SoftnessFade: 1 360 | m_Cookie: {fileID: 0} 361 | m_DrawHalo: 0 362 | m_ActuallyLightmapped: 0 363 | m_Flare: {fileID: 0} 364 | m_RenderMode: 0 365 | m_CullingMask: 366 | serializedVersion: 2 367 | m_Bits: 4294967295 368 | m_Lightmapping: 4 369 | m_IndirectIntensity: 1 370 | m_ShadowSamples: 1 371 | m_ShadowRadius: 0 372 | m_ShadowAngle: 0 373 | m_AreaSize: {x: 1, y: 1} 374 | --- !u!4 &1798462162 375 | Transform: 376 | m_ObjectHideFlags: 0 377 | m_PrefabParentObject: {fileID: 0} 378 | m_PrefabInternal: {fileID: 0} 379 | m_GameObject: {fileID: 1798462160} 380 | m_LocalRotation: {x: .532820523, y: -.493427753, z: .171833858, w: .665660918} 381 | m_LocalPosition: {x: 0, y: 0, z: 0} 382 | m_LocalScale: {x: 1, y: 1, z: 1} 383 | m_Children: [] 384 | m_Father: {fileID: 0} 385 | m_RootOrder: 1 386 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/VariantTest/variant-scene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6e96c7fcdb534dd9b98655682bc8c08 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: variants/variant-scene.unity3d 6 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/testScene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: .25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 2 17 | m_Fog: 0 18 | m_FogColor: {r: .5, g: .5, b: .5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: .00999999978 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} 24 | m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} 25 | m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} 26 | m_AmbientSkyboxExposure: .300000012 27 | m_AmbientProbe: 28 | sh[0]: {x: 0, y: 0, z: 0} 29 | sh[1]: {x: 0, y: 0, z: 0} 30 | sh[2]: {x: 0, y: 0, z: 0} 31 | sh[3]: {x: 0, y: 0, z: 0} 32 | sh[4]: {x: 0, y: 0, z: 0} 33 | sh[5]: {x: 0, y: 0, z: 0} 34 | sh[6]: {x: 0, y: 0, z: 0} 35 | sh[7]: {x: 0, y: 0, z: 0} 36 | sh[8]: {x: 0, y: 0, z: 0} 37 | m_AmbientSkyboxLight: {fileID: 0} 38 | m_AmbientMode: 1 39 | m_CreateAmbientLight: 0 40 | m_SkyboxMaterial: {fileID: 0} 41 | m_HaloStrength: .5 42 | m_FlareStrength: 1 43 | m_FlareFadeSpeed: 3 44 | m_HaloTexture: {fileID: 0} 45 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 46 | m_DefaultReflectionMode: 1 47 | m_CustomReflection: {fileID: 0} 48 | m_GeneratedSkyboxReflection: {fileID: 0} 49 | --- !u!127 &3 50 | LevelGameManager: 51 | m_ObjectHideFlags: 0 52 | --- !u!157 &4 53 | LightmapSettings: 54 | m_ObjectHideFlags: 0 55 | serializedVersion: 2 56 | m_LightProbesLegacy: {fileID: 0} 57 | m_GIWorkflowMode: 2 58 | m_LightProbes: {fileID: 0} 59 | m_Lightmaps: [] 60 | m_LightmapsMode: 1 61 | m_BakedColorSpace: 0 62 | m_UseDualLightmapsInForward: 0 63 | m_GISettings: 64 | m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1} 65 | m_SkyLightIntensity: 0 66 | m_BounceScale: 1 67 | m_IndirectOutputScale: 1 68 | m_LightmapEditorSettings: 69 | serializedVersion: 2 70 | m_Resolution: 1 71 | m_BakeResolution: 40 72 | m_SystemTexelWidth: 128 73 | m_LastUsedResolution: 0 74 | m_TextureWidth: 1024 75 | m_TextureHeight: 1024 76 | m_BounceBoost: 1 77 | m_BounceIntensity: 1 78 | m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1} 79 | m_SkyLightIntensity: 0 80 | m_Quality: 0 81 | m_Bounces: 1 82 | m_FinalGatherRays: 1000 83 | m_FinalGatherContrastThreshold: .0500000007 84 | m_FinalGatherGradientThreshold: 0 85 | m_FinalGatherInterpolationPoints: 15 86 | m_AOAmount: 0 87 | m_AOMaxDistance: .100000001 88 | m_AOContrast: 1 89 | m_LODSurfaceMappingDistance: 1 90 | m_Padding: 0 91 | m_TextureCompression: 1 92 | m_LockAtlas: 0 93 | m_ForceWhiteAlbedo: 0 94 | m_ForceUpdates: 0 95 | m_CompDirectScale: 1 96 | m_CompIndirectScale: 1 97 | m_CompAOExponent: 1 98 | m_LightmapSnapshot: {fileID: 0} 99 | --- !u!196 &5 100 | NavMeshSettings: 101 | m_ObjectHideFlags: 0 102 | m_BuildSettings: 103 | serializedVersion: 2 104 | agentRadius: .5 105 | agentHeight: 2 106 | agentSlope: 45 107 | agentClimb: .400000006 108 | ledgeDropHeight: 0 109 | maxJumpAcrossDistance: 0 110 | accuratePlacement: 0 111 | minRegionArea: 2 112 | cellSize: .166666672 113 | manualCellSize: 0 114 | m_NavMeshData: {fileID: 0} 115 | --- !u!1 &168587949 116 | GameObject: 117 | m_ObjectHideFlags: 0 118 | m_PrefabParentObject: {fileID: 0} 119 | m_PrefabInternal: {fileID: 0} 120 | serializedVersion: 4 121 | m_Component: 122 | - 4: {fileID: 168587954} 123 | - 20: {fileID: 168587953} 124 | - 92: {fileID: 168587952} 125 | - 124: {fileID: 168587951} 126 | m_Layer: 0 127 | m_Name: Main Camera 128 | m_TagString: MainCamera 129 | m_Icon: {fileID: 0} 130 | m_NavMeshLayer: 0 131 | m_StaticEditorFlags: 0 132 | m_IsActive: 1 133 | --- !u!124 &168587951 134 | Behaviour: 135 | m_ObjectHideFlags: 0 136 | m_PrefabParentObject: {fileID: 0} 137 | m_PrefabInternal: {fileID: 0} 138 | m_GameObject: {fileID: 168587949} 139 | m_Enabled: 1 140 | --- !u!92 &168587952 141 | Behaviour: 142 | m_ObjectHideFlags: 0 143 | m_PrefabParentObject: {fileID: 0} 144 | m_PrefabInternal: {fileID: 0} 145 | m_GameObject: {fileID: 168587949} 146 | m_Enabled: 1 147 | --- !u!20 &168587953 148 | Camera: 149 | m_ObjectHideFlags: 0 150 | m_PrefabParentObject: {fileID: 0} 151 | m_PrefabInternal: {fileID: 0} 152 | m_GameObject: {fileID: 168587949} 153 | m_Enabled: 1 154 | serializedVersion: 2 155 | m_ClearFlags: 1 156 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 157 | m_NormalizedViewPortRect: 158 | serializedVersion: 2 159 | x: 0 160 | y: 0 161 | width: 1 162 | height: 1 163 | near clip plane: .300000012 164 | far clip plane: 1000 165 | field of view: 60 166 | orthographic: 0 167 | orthographic size: 5 168 | m_Depth: -1 169 | m_CullingMask: 170 | serializedVersion: 2 171 | m_Bits: 4294967295 172 | m_RenderingPath: -1 173 | m_TargetTexture: {fileID: 0} 174 | m_TargetDisplay: 0 175 | m_HDR: 0 176 | m_OcclusionCulling: 1 177 | m_StereoConvergence: 10 178 | m_StereoSeparation: .0219999999 179 | --- !u!4 &168587954 180 | Transform: 181 | m_ObjectHideFlags: 0 182 | m_PrefabParentObject: {fileID: 0} 183 | m_PrefabInternal: {fileID: 0} 184 | m_GameObject: {fileID: 168587949} 185 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 186 | m_LocalPosition: {x: 0, y: 1, z: -10} 187 | m_LocalScale: {x: 1, y: 1, z: 1} 188 | m_Children: [] 189 | m_Father: {fileID: 0} 190 | m_RootOrder: 0 191 | --- !u!1 &1274888722 192 | GameObject: 193 | m_ObjectHideFlags: 0 194 | m_PrefabParentObject: {fileID: 0} 195 | m_PrefabInternal: {fileID: 0} 196 | serializedVersion: 4 197 | m_Component: 198 | - 4: {fileID: 1274888726} 199 | - 33: {fileID: 1274888725} 200 | - 135: {fileID: 1274888724} 201 | - 23: {fileID: 1274888723} 202 | m_Layer: 0 203 | m_Name: Sphere 204 | m_TagString: Untagged 205 | m_Icon: {fileID: 0} 206 | m_NavMeshLayer: 0 207 | m_StaticEditorFlags: 0 208 | m_IsActive: 1 209 | --- !u!23 &1274888723 210 | MeshRenderer: 211 | m_ObjectHideFlags: 0 212 | m_PrefabParentObject: {fileID: 0} 213 | m_PrefabInternal: {fileID: 0} 214 | m_GameObject: {fileID: 1274888722} 215 | m_Enabled: 1 216 | m_CastShadows: 1 217 | m_ReceiveShadows: 1 218 | m_LightmapIndex: 255 219 | m_LightmapIndexDynamic: 255 220 | m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} 221 | m_LightmapTilingOffsetDynamic: {x: 1, y: 1, z: 0, w: 0} 222 | m_Materials: 223 | - {fileID: 2100000, guid: 30987f57dfd5b354a96c306664824284, type: 2} 224 | m_SubsetIndices: 225 | m_StaticBatchRoot: {fileID: 0} 226 | m_UseLightProbes: 0 227 | m_UseReflectionProbes: 0 228 | m_LightProbeAnchor: {fileID: 0} 229 | m_ReflectionProbeAnchor: {fileID: 0} 230 | m_ScaleInLightmap: 1 231 | m_EnlightenSystemBuildParameters: {fileID: 0} 232 | m_GIBackfaceCull: 0 233 | m_SortingLayerID: 0 234 | m_SortingOrder: 0 235 | --- !u!135 &1274888724 236 | SphereCollider: 237 | m_ObjectHideFlags: 0 238 | m_PrefabParentObject: {fileID: 0} 239 | m_PrefabInternal: {fileID: 0} 240 | m_GameObject: {fileID: 1274888722} 241 | m_Material: {fileID: 0} 242 | m_IsTrigger: 0 243 | m_Enabled: 1 244 | serializedVersion: 2 245 | m_Radius: .5 246 | m_Center: {x: 0, y: 0, z: 0} 247 | --- !u!33 &1274888725 248 | MeshFilter: 249 | m_ObjectHideFlags: 0 250 | m_PrefabParentObject: {fileID: 0} 251 | m_PrefabInternal: {fileID: 0} 252 | m_GameObject: {fileID: 1274888722} 253 | m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} 254 | --- !u!4 &1274888726 255 | Transform: 256 | m_ObjectHideFlags: 0 257 | m_PrefabParentObject: {fileID: 0} 258 | m_PrefabInternal: {fileID: 0} 259 | m_GameObject: {fileID: 1274888722} 260 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 261 | m_LocalPosition: {x: 3, y: 0, z: 0} 262 | m_LocalScale: {x: 1, y: 1, z: 1} 263 | m_Children: [] 264 | m_Father: {fileID: 0} 265 | m_RootOrder: 1 266 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestAssets/testScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4c39875389d03d4580f45f5b9d5bdd5 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: scene.unity3d 6 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestScenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b12a0d3a4bdc41d428b731fcddc301dd 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestScenes/AssetLoader.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: .25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 6 17 | m_Fog: 0 18 | m_FogColor: {r: .5, g: .5, b: .5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: .00999999978 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} 24 | m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} 25 | m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 29 | m_HaloStrength: .5 30 | m_FlareStrength: 1 31 | m_FlareFadeSpeed: 3 32 | m_HaloTexture: {fileID: 0} 33 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 34 | m_DefaultReflectionMode: 1 35 | m_DefaultReflectionResolution: 128 36 | m_ReflectionBounces: 1 37 | m_ReflectionIntensity: 1 38 | m_CustomReflection: {fileID: 0} 39 | m_Sun: {fileID: 0} 40 | --- !u!127 &3 41 | LevelGameManager: 42 | m_ObjectHideFlags: 0 43 | --- !u!157 &4 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 5 47 | m_GIWorkflowMode: 1 48 | m_LightmapsMode: 1 49 | m_GISettings: 50 | serializedVersion: 2 51 | m_BounceScale: 1 52 | m_IndirectOutputScale: 1 53 | m_AlbedoBoost: 1 54 | m_TemporalCoherenceThreshold: 1 55 | m_EnvironmentLightingMode: 1 56 | m_EnableBakedLightmaps: 1 57 | m_EnableRealtimeLightmaps: 0 58 | m_LightmapEditorSettings: 59 | serializedVersion: 3 60 | m_Resolution: 1 61 | m_BakeResolution: 40 62 | m_TextureWidth: 1024 63 | m_TextureHeight: 1024 64 | m_AOMaxDistance: 1 65 | m_Padding: 2 66 | m_CompAOExponent: 1 67 | m_LightmapParameters: {fileID: 0} 68 | m_TextureCompression: 1 69 | m_FinalGather: 0 70 | m_FinalGatherRayCount: 1024 71 | m_LightmapSnapshot: {fileID: 0} 72 | m_RuntimeCPUUsage: 25 73 | --- !u!196 &5 74 | NavMeshSettings: 75 | serializedVersion: 2 76 | m_ObjectHideFlags: 0 77 | m_BuildSettings: 78 | serializedVersion: 2 79 | agentRadius: .5 80 | agentHeight: 2 81 | agentSlope: 45 82 | agentClimb: .400000006 83 | ledgeDropHeight: 0 84 | maxJumpAcrossDistance: 0 85 | accuratePlacement: 0 86 | minRegionArea: 2 87 | cellSize: .166666672 88 | manualCellSize: 0 89 | m_NavMeshData: {fileID: 0} 90 | --- !u!1 &90047764 91 | GameObject: 92 | m_ObjectHideFlags: 0 93 | m_PrefabParentObject: {fileID: 0} 94 | m_PrefabInternal: {fileID: 0} 95 | serializedVersion: 4 96 | m_Component: 97 | - 4: {fileID: 90047766} 98 | - 108: {fileID: 90047765} 99 | m_Layer: 0 100 | m_Name: Directional Light 101 | m_TagString: Untagged 102 | m_Icon: {fileID: 0} 103 | m_NavMeshLayer: 0 104 | m_StaticEditorFlags: 0 105 | m_IsActive: 1 106 | --- !u!108 &90047765 107 | Light: 108 | m_ObjectHideFlags: 0 109 | m_PrefabParentObject: {fileID: 0} 110 | m_PrefabInternal: {fileID: 0} 111 | m_GameObject: {fileID: 90047764} 112 | m_Enabled: 1 113 | serializedVersion: 6 114 | m_Type: 1 115 | m_Color: {r: 1, g: .956862748, b: .839215696, a: 1} 116 | m_Intensity: 1 117 | m_Range: 10 118 | m_SpotAngle: 30 119 | m_CookieSize: 10 120 | m_Shadows: 121 | m_Type: 2 122 | m_Resolution: -1 123 | m_Strength: 1 124 | m_Bias: .0500000007 125 | m_NormalBias: .400000006 126 | m_Cookie: {fileID: 0} 127 | m_DrawHalo: 0 128 | m_Flare: {fileID: 0} 129 | m_RenderMode: 0 130 | m_CullingMask: 131 | serializedVersion: 2 132 | m_Bits: 4294967295 133 | m_Lightmapping: 1 134 | m_BounceIntensity: 1 135 | m_ShadowRadius: 0 136 | m_ShadowAngle: 0 137 | m_AreaSize: {x: 1, y: 1} 138 | --- !u!4 &90047766 139 | Transform: 140 | m_ObjectHideFlags: 0 141 | m_PrefabParentObject: {fileID: 0} 142 | m_PrefabInternal: {fileID: 0} 143 | m_GameObject: {fileID: 90047764} 144 | m_LocalRotation: {x: .408217937, y: -.234569728, z: .109381676, w: .875426054} 145 | m_LocalPosition: {x: 0, y: 3, z: 0} 146 | m_LocalScale: {x: 1, y: 1, z: 1} 147 | m_Children: [] 148 | m_Father: {fileID: 0} 149 | m_RootOrder: 1 150 | --- !u!1 &830436569 151 | GameObject: 152 | m_ObjectHideFlags: 0 153 | m_PrefabParentObject: {fileID: 0} 154 | m_PrefabInternal: {fileID: 0} 155 | serializedVersion: 4 156 | m_Component: 157 | - 4: {fileID: 830436571} 158 | - 114: {fileID: 830436570} 159 | m_Layer: 0 160 | m_Name: AssetBundleManager 161 | m_TagString: Untagged 162 | m_Icon: {fileID: 0} 163 | m_NavMeshLayer: 0 164 | m_StaticEditorFlags: 0 165 | m_IsActive: 1 166 | --- !u!114 &830436570 167 | MonoBehaviour: 168 | m_ObjectHideFlags: 0 169 | m_PrefabParentObject: {fileID: 0} 170 | m_PrefabInternal: {fileID: 0} 171 | m_GameObject: {fileID: 830436569} 172 | m_Enabled: 1 173 | m_EditorHideFlags: 0 174 | m_Script: {fileID: 11500000, guid: 6309cb12c9f62482c8451f716f97d470, type: 3} 175 | m_Name: 176 | m_EditorClassIdentifier: 177 | --- !u!4 &830436571 178 | Transform: 179 | m_ObjectHideFlags: 0 180 | m_PrefabParentObject: {fileID: 0} 181 | m_PrefabInternal: {fileID: 0} 182 | m_GameObject: {fileID: 830436569} 183 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 184 | m_LocalPosition: {x: 0, y: 0, z: 0} 185 | m_LocalScale: {x: 1, y: 1, z: 1} 186 | m_Children: [] 187 | m_Father: {fileID: 0} 188 | m_RootOrder: 3 189 | --- !u!1 &1282454464 190 | GameObject: 191 | m_ObjectHideFlags: 0 192 | m_PrefabParentObject: {fileID: 0} 193 | m_PrefabInternal: {fileID: 0} 194 | serializedVersion: 4 195 | m_Component: 196 | - 4: {fileID: 1282454469} 197 | - 20: {fileID: 1282454468} 198 | - 92: {fileID: 1282454467} 199 | - 124: {fileID: 1282454466} 200 | - 81: {fileID: 1282454465} 201 | m_Layer: 0 202 | m_Name: Main Camera 203 | m_TagString: MainCamera 204 | m_Icon: {fileID: 0} 205 | m_NavMeshLayer: 0 206 | m_StaticEditorFlags: 0 207 | m_IsActive: 1 208 | --- !u!81 &1282454465 209 | AudioListener: 210 | m_ObjectHideFlags: 0 211 | m_PrefabParentObject: {fileID: 0} 212 | m_PrefabInternal: {fileID: 0} 213 | m_GameObject: {fileID: 1282454464} 214 | m_Enabled: 1 215 | --- !u!124 &1282454466 216 | Behaviour: 217 | m_ObjectHideFlags: 0 218 | m_PrefabParentObject: {fileID: 0} 219 | m_PrefabInternal: {fileID: 0} 220 | m_GameObject: {fileID: 1282454464} 221 | m_Enabled: 1 222 | --- !u!92 &1282454467 223 | Behaviour: 224 | m_ObjectHideFlags: 0 225 | m_PrefabParentObject: {fileID: 0} 226 | m_PrefabInternal: {fileID: 0} 227 | m_GameObject: {fileID: 1282454464} 228 | m_Enabled: 1 229 | --- !u!20 &1282454468 230 | Camera: 231 | m_ObjectHideFlags: 0 232 | m_PrefabParentObject: {fileID: 0} 233 | m_PrefabInternal: {fileID: 0} 234 | m_GameObject: {fileID: 1282454464} 235 | m_Enabled: 1 236 | serializedVersion: 2 237 | m_ClearFlags: 1 238 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 239 | m_NormalizedViewPortRect: 240 | serializedVersion: 2 241 | x: 0 242 | y: 0 243 | width: 1 244 | height: 1 245 | near clip plane: .300000012 246 | far clip plane: 1000 247 | field of view: 60 248 | orthographic: 0 249 | orthographic size: 5 250 | m_Depth: -1 251 | m_CullingMask: 252 | serializedVersion: 2 253 | m_Bits: 4294967295 254 | m_RenderingPath: -1 255 | m_TargetTexture: {fileID: 0} 256 | m_TargetDisplay: 0 257 | m_HDR: 0 258 | m_OcclusionCulling: 1 259 | m_StereoConvergence: 10 260 | m_StereoSeparation: .0219999999 261 | m_StereoMirrorMode: 0 262 | --- !u!4 &1282454469 263 | Transform: 264 | m_ObjectHideFlags: 0 265 | m_PrefabParentObject: {fileID: 0} 266 | m_PrefabInternal: {fileID: 0} 267 | m_GameObject: {fileID: 1282454464} 268 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 269 | m_LocalPosition: {x: 0, y: 1, z: -10} 270 | m_LocalScale: {x: 1, y: 1, z: 1} 271 | m_Children: [] 272 | m_Father: {fileID: 0} 273 | m_RootOrder: 0 274 | --- !u!1 &1359490321 275 | GameObject: 276 | m_ObjectHideFlags: 0 277 | m_PrefabParentObject: {fileID: 0} 278 | m_PrefabInternal: {fileID: 0} 279 | serializedVersion: 4 280 | m_Component: 281 | - 4: {fileID: 1359490323} 282 | - 114: {fileID: 1359490322} 283 | m_Layer: 0 284 | m_Name: Loader 285 | m_TagString: Untagged 286 | m_Icon: {fileID: 0} 287 | m_NavMeshLayer: 0 288 | m_StaticEditorFlags: 0 289 | m_IsActive: 1 290 | --- !u!114 &1359490322 291 | MonoBehaviour: 292 | m_ObjectHideFlags: 0 293 | m_PrefabParentObject: {fileID: 0} 294 | m_PrefabInternal: {fileID: 0} 295 | m_GameObject: {fileID: 1359490321} 296 | m_Enabled: 1 297 | m_EditorHideFlags: 0 298 | m_Script: {fileID: 11500000, guid: fdbd7a29d2d518942b7af8c0a583c7d6, type: 3} 299 | m_Name: 300 | m_EditorClassIdentifier: 301 | assetBundleName: cube.unity3d 302 | assetName: cube 303 | --- !u!4 &1359490323 304 | Transform: 305 | m_ObjectHideFlags: 0 306 | m_PrefabParentObject: {fileID: 0} 307 | m_PrefabInternal: {fileID: 0} 308 | m_GameObject: {fileID: 1359490321} 309 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 310 | m_LocalPosition: {x: 0, y: 0, z: 0} 311 | m_LocalScale: {x: 1, y: 1, z: 1} 312 | m_Children: [] 313 | m_Father: {fileID: 0} 314 | m_RootOrder: 2 315 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestScenes/AssetLoader.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd2b3f99825dd4345b6d8d163362e3e4 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestScenes/AssetLoaderWithScript.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: .25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 6 17 | m_Fog: 0 18 | m_FogColor: {r: .5, g: .5, b: .5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: .00999999978 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} 24 | m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} 25 | m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 29 | m_HaloStrength: .5 30 | m_FlareStrength: 1 31 | m_FlareFadeSpeed: 3 32 | m_HaloTexture: {fileID: 0} 33 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 34 | m_DefaultReflectionMode: 1 35 | m_DefaultReflectionResolution: 128 36 | m_ReflectionBounces: 1 37 | m_ReflectionIntensity: 1 38 | m_CustomReflection: {fileID: 0} 39 | m_Sun: {fileID: 0} 40 | --- !u!127 &3 41 | LevelGameManager: 42 | m_ObjectHideFlags: 0 43 | --- !u!157 &4 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 5 47 | m_GIWorkflowMode: 1 48 | m_LightmapsMode: 1 49 | m_GISettings: 50 | serializedVersion: 2 51 | m_BounceScale: 1 52 | m_IndirectOutputScale: 1 53 | m_AlbedoBoost: 1 54 | m_TemporalCoherenceThreshold: 1 55 | m_EnvironmentLightingMode: 1 56 | m_EnableBakedLightmaps: 1 57 | m_EnableRealtimeLightmaps: 0 58 | m_LightmapEditorSettings: 59 | serializedVersion: 3 60 | m_Resolution: 1 61 | m_BakeResolution: 40 62 | m_TextureWidth: 1024 63 | m_TextureHeight: 1024 64 | m_AOMaxDistance: 1 65 | m_Padding: 2 66 | m_CompAOExponent: 1 67 | m_LightmapParameters: {fileID: 0} 68 | m_TextureCompression: 1 69 | m_FinalGather: 0 70 | m_FinalGatherRayCount: 1024 71 | m_LightmapSnapshot: {fileID: 0} 72 | m_RuntimeCPUUsage: 25 73 | --- !u!196 &5 74 | NavMeshSettings: 75 | serializedVersion: 2 76 | m_ObjectHideFlags: 0 77 | m_BuildSettings: 78 | serializedVersion: 2 79 | agentRadius: .5 80 | agentHeight: 2 81 | agentSlope: 45 82 | agentClimb: .400000006 83 | ledgeDropHeight: 0 84 | maxJumpAcrossDistance: 0 85 | accuratePlacement: 0 86 | minRegionArea: 2 87 | cellSize: .166666672 88 | manualCellSize: 0 89 | m_NavMeshData: {fileID: 0} 90 | --- !u!1 &90047764 91 | GameObject: 92 | m_ObjectHideFlags: 0 93 | m_PrefabParentObject: {fileID: 0} 94 | m_PrefabInternal: {fileID: 0} 95 | serializedVersion: 4 96 | m_Component: 97 | - 4: {fileID: 90047766} 98 | - 108: {fileID: 90047765} 99 | m_Layer: 0 100 | m_Name: Directional Light 101 | m_TagString: Untagged 102 | m_Icon: {fileID: 0} 103 | m_NavMeshLayer: 0 104 | m_StaticEditorFlags: 0 105 | m_IsActive: 1 106 | --- !u!108 &90047765 107 | Light: 108 | m_ObjectHideFlags: 0 109 | m_PrefabParentObject: {fileID: 0} 110 | m_PrefabInternal: {fileID: 0} 111 | m_GameObject: {fileID: 90047764} 112 | m_Enabled: 1 113 | serializedVersion: 6 114 | m_Type: 1 115 | m_Color: {r: 1, g: .956862748, b: .839215696, a: 1} 116 | m_Intensity: 1 117 | m_Range: 10 118 | m_SpotAngle: 30 119 | m_CookieSize: 10 120 | m_Shadows: 121 | m_Type: 2 122 | m_Resolution: -1 123 | m_Strength: 1 124 | m_Bias: .0500000007 125 | m_NormalBias: .400000006 126 | m_Cookie: {fileID: 0} 127 | m_DrawHalo: 0 128 | m_Flare: {fileID: 0} 129 | m_RenderMode: 0 130 | m_CullingMask: 131 | serializedVersion: 2 132 | m_Bits: 4294967295 133 | m_Lightmapping: 1 134 | m_BounceIntensity: 1 135 | m_ShadowRadius: 0 136 | m_ShadowAngle: 0 137 | m_AreaSize: {x: 1, y: 1} 138 | --- !u!4 &90047766 139 | Transform: 140 | m_ObjectHideFlags: 0 141 | m_PrefabParentObject: {fileID: 0} 142 | m_PrefabInternal: {fileID: 0} 143 | m_GameObject: {fileID: 90047764} 144 | m_LocalRotation: {x: .408217937, y: -.234569728, z: .109381676, w: .875426054} 145 | m_LocalPosition: {x: 0, y: 3, z: 0} 146 | m_LocalScale: {x: 1, y: 1, z: 1} 147 | m_Children: [] 148 | m_Father: {fileID: 0} 149 | m_RootOrder: 1 150 | --- !u!1 &1282454464 151 | GameObject: 152 | m_ObjectHideFlags: 0 153 | m_PrefabParentObject: {fileID: 0} 154 | m_PrefabInternal: {fileID: 0} 155 | serializedVersion: 4 156 | m_Component: 157 | - 4: {fileID: 1282454469} 158 | - 20: {fileID: 1282454468} 159 | - 92: {fileID: 1282454467} 160 | - 124: {fileID: 1282454466} 161 | - 81: {fileID: 1282454465} 162 | m_Layer: 0 163 | m_Name: Main Camera 164 | m_TagString: MainCamera 165 | m_Icon: {fileID: 0} 166 | m_NavMeshLayer: 0 167 | m_StaticEditorFlags: 0 168 | m_IsActive: 1 169 | --- !u!81 &1282454465 170 | AudioListener: 171 | m_ObjectHideFlags: 0 172 | m_PrefabParentObject: {fileID: 0} 173 | m_PrefabInternal: {fileID: 0} 174 | m_GameObject: {fileID: 1282454464} 175 | m_Enabled: 1 176 | --- !u!124 &1282454466 177 | Behaviour: 178 | m_ObjectHideFlags: 0 179 | m_PrefabParentObject: {fileID: 0} 180 | m_PrefabInternal: {fileID: 0} 181 | m_GameObject: {fileID: 1282454464} 182 | m_Enabled: 1 183 | --- !u!92 &1282454467 184 | Behaviour: 185 | m_ObjectHideFlags: 0 186 | m_PrefabParentObject: {fileID: 0} 187 | m_PrefabInternal: {fileID: 0} 188 | m_GameObject: {fileID: 1282454464} 189 | m_Enabled: 1 190 | --- !u!20 &1282454468 191 | Camera: 192 | m_ObjectHideFlags: 0 193 | m_PrefabParentObject: {fileID: 0} 194 | m_PrefabInternal: {fileID: 0} 195 | m_GameObject: {fileID: 1282454464} 196 | m_Enabled: 1 197 | serializedVersion: 2 198 | m_ClearFlags: 1 199 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 200 | m_NormalizedViewPortRect: 201 | serializedVersion: 2 202 | x: 0 203 | y: 0 204 | width: 1 205 | height: 1 206 | near clip plane: .300000012 207 | far clip plane: 1000 208 | field of view: 60 209 | orthographic: 0 210 | orthographic size: 5 211 | m_Depth: -1 212 | m_CullingMask: 213 | serializedVersion: 2 214 | m_Bits: 4294967295 215 | m_RenderingPath: -1 216 | m_TargetTexture: {fileID: 0} 217 | m_TargetDisplay: 0 218 | m_HDR: 0 219 | m_OcclusionCulling: 1 220 | m_StereoConvergence: 10 221 | m_StereoSeparation: .0219999999 222 | m_StereoMirrorMode: 0 223 | --- !u!4 &1282454469 224 | Transform: 225 | m_ObjectHideFlags: 0 226 | m_PrefabParentObject: {fileID: 0} 227 | m_PrefabInternal: {fileID: 0} 228 | m_GameObject: {fileID: 1282454464} 229 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 230 | m_LocalPosition: {x: 0, y: 1, z: -10} 231 | m_LocalScale: {x: 1, y: 1, z: 1} 232 | m_Children: [] 233 | m_Father: {fileID: 0} 234 | m_RootOrder: 0 235 | --- !u!1 &1359490321 236 | GameObject: 237 | m_ObjectHideFlags: 0 238 | m_PrefabParentObject: {fileID: 0} 239 | m_PrefabInternal: {fileID: 0} 240 | serializedVersion: 4 241 | m_Component: 242 | - 4: {fileID: 1359490323} 243 | - 114: {fileID: 1359490322} 244 | m_Layer: 0 245 | m_Name: Loader 246 | m_TagString: Untagged 247 | m_Icon: {fileID: 0} 248 | m_NavMeshLayer: 0 249 | m_StaticEditorFlags: 0 250 | m_IsActive: 1 251 | --- !u!114 &1359490322 252 | MonoBehaviour: 253 | m_ObjectHideFlags: 0 254 | m_PrefabParentObject: {fileID: 0} 255 | m_PrefabInternal: {fileID: 0} 256 | m_GameObject: {fileID: 1359490321} 257 | m_Enabled: 1 258 | m_EditorHideFlags: 0 259 | m_Script: {fileID: 11500000, guid: fdbd7a29d2d518942b7af8c0a583c7d6, type: 3} 260 | m_Name: 261 | m_EditorClassIdentifier: 262 | assetBundleName: cubewithscript.unity3d 263 | assetName: cubewithscript 264 | --- !u!4 &1359490323 265 | Transform: 266 | m_ObjectHideFlags: 0 267 | m_PrefabParentObject: {fileID: 0} 268 | m_PrefabInternal: {fileID: 0} 269 | m_GameObject: {fileID: 1359490321} 270 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 271 | m_LocalPosition: {x: 0, y: 0, z: 0} 272 | m_LocalScale: {x: 1, y: 1, z: 1} 273 | m_Children: [] 274 | m_Father: {fileID: 0} 275 | m_RootOrder: 2 276 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestScenes/AssetLoaderWithScript.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d11f549adf4e434baf8bfdc96c31246 3 | timeCreated: 1436144803 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestScenes/SceneLoader.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: .25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 5 17 | m_Fog: 0 18 | m_FogColor: {r: .5, g: .5, b: .5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: .00999999978 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} 24 | m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} 25 | m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientProbe: 28 | sh[ 0]: 0 29 | sh[ 1]: 0 30 | sh[ 2]: 0 31 | sh[ 3]: 0 32 | sh[ 4]: 0 33 | sh[ 5]: 0 34 | sh[ 6]: 0 35 | sh[ 7]: 0 36 | sh[ 8]: 0 37 | sh[ 9]: 0 38 | sh[10]: 0 39 | sh[11]: 0 40 | sh[12]: 0 41 | sh[13]: 0 42 | sh[14]: 0 43 | sh[15]: 0 44 | sh[16]: 0 45 | sh[17]: 0 46 | sh[18]: 0 47 | sh[19]: 0 48 | sh[20]: 0 49 | sh[21]: 0 50 | sh[22]: 0 51 | sh[23]: 0 52 | sh[24]: 0 53 | sh[25]: 0 54 | sh[26]: 0 55 | m_AmbientProbeInGamma: 56 | sh[ 0]: 0 57 | sh[ 1]: 0 58 | sh[ 2]: 0 59 | sh[ 3]: 0 60 | sh[ 4]: 0 61 | sh[ 5]: 0 62 | sh[ 6]: 0 63 | sh[ 7]: 0 64 | sh[ 8]: 0 65 | sh[ 9]: 0 66 | sh[10]: 0 67 | sh[11]: 0 68 | sh[12]: 0 69 | sh[13]: 0 70 | sh[14]: 0 71 | sh[15]: 0 72 | sh[16]: 0 73 | sh[17]: 0 74 | sh[18]: 0 75 | sh[19]: 0 76 | sh[20]: 0 77 | sh[21]: 0 78 | sh[22]: 0 79 | sh[23]: 0 80 | sh[24]: 0 81 | sh[25]: 0 82 | sh[26]: 0 83 | m_AmbientMode: 0 84 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 85 | m_HaloStrength: .5 86 | m_FlareStrength: 1 87 | m_FlareFadeSpeed: 3 88 | m_HaloTexture: {fileID: 0} 89 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 90 | m_DefaultReflectionMode: 1 91 | m_DefaultReflectionResolution: 128 92 | m_ReflectionBounces: 1 93 | m_ReflectionIntensity: 1 94 | m_CustomReflection: {fileID: 0} 95 | m_GeneratedSkyboxReflection: {fileID: 8900000, guid: 6b2ccbf9999a7474b9552762a3bb9cba, 96 | type: 2} 97 | m_Sun: {fileID: 0} 98 | --- !u!127 &3 99 | LevelGameManager: 100 | m_ObjectHideFlags: 0 101 | --- !u!157 &4 102 | LightmapSettings: 103 | m_ObjectHideFlags: 0 104 | serializedVersion: 4 105 | m_LightProbesLegacy: {fileID: 0} 106 | m_GIWorkflowMode: 2 107 | m_LightProbes: {fileID: 0} 108 | m_Lightmaps: [] 109 | m_LightmapsModeLegacy: 1 110 | m_LightmapsMode: 1 111 | m_UseDualLightmapsInForward: 0 112 | m_GISettings: 113 | serializedVersion: 2 114 | m_BounceScale: 1 115 | m_IndirectOutputScale: 1 116 | m_AlbedoBoost: 1 117 | m_TemporalCoherenceThreshold: 1 118 | m_EnvironmentLightingMode: 1 119 | m_EnableBakedLightmaps: 1 120 | m_EnableRealtimeLightmaps: 1 121 | m_LightmapEditorSettings: 122 | serializedVersion: 3 123 | m_Resolution: 1 124 | m_BakeResolution: 40 125 | m_LastUsedResolution: 0 126 | m_TextureWidth: 1024 127 | m_TextureHeight: 1024 128 | m_BounceBoost: 1 129 | m_BounceIntensity: 1 130 | m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1} 131 | m_SkyLightIntensity: 0 132 | m_Quality: 0 133 | m_Bounces: 1 134 | m_FinalGatherRays: 1000 135 | m_FinalGatherContrastThreshold: .0500000007 136 | m_FinalGatherGradientThreshold: 0 137 | m_FinalGatherInterpolationPoints: 15 138 | m_AOAmount: 0 139 | m_AOMaxDistance: 1 140 | m_AOContrast: 1 141 | m_LODSurfaceMappingDistance: 1 142 | m_Padding: 2 143 | m_CompAOExponent: 1 144 | m_LightmapParameters: {fileID: 0} 145 | m_TextureCompression: 1 146 | m_LockAtlas: 0 147 | m_FinalGather: 0 148 | m_FinalGatherRayCount: 1024 149 | m_LightmapSnapshot: {fileID: 0} 150 | m_RuntimeCPUUsage: 25 151 | --- !u!196 &5 152 | NavMeshSettings: 153 | serializedVersion: 2 154 | m_ObjectHideFlags: 0 155 | m_BuildSettings: 156 | serializedVersion: 2 157 | agentRadius: .5 158 | agentHeight: 2 159 | agentSlope: 45 160 | agentClimb: .400000006 161 | ledgeDropHeight: 0 162 | maxJumpAcrossDistance: 0 163 | accuratePlacement: 0 164 | minRegionArea: 2 165 | cellSize: .166666672 166 | manualCellSize: 0 167 | m_NavMeshData: {fileID: 0} 168 | --- !u!1 &1230284679 169 | GameObject: 170 | m_ObjectHideFlags: 0 171 | m_PrefabParentObject: {fileID: 0} 172 | m_PrefabInternal: {fileID: 0} 173 | serializedVersion: 4 174 | m_Component: 175 | - 4: {fileID: 1230284684} 176 | - 20: {fileID: 1230284683} 177 | - 92: {fileID: 1230284682} 178 | - 124: {fileID: 1230284681} 179 | - 81: {fileID: 1230284680} 180 | m_Layer: 0 181 | m_Name: Main Camera 182 | m_TagString: MainCamera 183 | m_Icon: {fileID: 0} 184 | m_NavMeshLayer: 0 185 | m_StaticEditorFlags: 0 186 | m_IsActive: 1 187 | --- !u!81 &1230284680 188 | AudioListener: 189 | m_ObjectHideFlags: 0 190 | m_PrefabParentObject: {fileID: 0} 191 | m_PrefabInternal: {fileID: 0} 192 | m_GameObject: {fileID: 1230284679} 193 | m_Enabled: 1 194 | --- !u!124 &1230284681 195 | Behaviour: 196 | m_ObjectHideFlags: 0 197 | m_PrefabParentObject: {fileID: 0} 198 | m_PrefabInternal: {fileID: 0} 199 | m_GameObject: {fileID: 1230284679} 200 | m_Enabled: 1 201 | --- !u!92 &1230284682 202 | Behaviour: 203 | m_ObjectHideFlags: 0 204 | m_PrefabParentObject: {fileID: 0} 205 | m_PrefabInternal: {fileID: 0} 206 | m_GameObject: {fileID: 1230284679} 207 | m_Enabled: 1 208 | --- !u!20 &1230284683 209 | Camera: 210 | m_ObjectHideFlags: 0 211 | m_PrefabParentObject: {fileID: 0} 212 | m_PrefabInternal: {fileID: 0} 213 | m_GameObject: {fileID: 1230284679} 214 | m_Enabled: 1 215 | serializedVersion: 2 216 | m_ClearFlags: 1 217 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 218 | m_NormalizedViewPortRect: 219 | serializedVersion: 2 220 | x: 0 221 | y: 0 222 | width: 1 223 | height: 1 224 | near clip plane: .300000012 225 | far clip plane: 1000 226 | field of view: 60 227 | orthographic: 0 228 | orthographic size: 5 229 | m_Depth: -1 230 | m_CullingMask: 231 | serializedVersion: 2 232 | m_Bits: 4294967295 233 | m_RenderingPath: -1 234 | m_TargetTexture: {fileID: 0} 235 | m_TargetDisplay: 0 236 | m_HDR: 0 237 | m_OcclusionCulling: 1 238 | m_StereoConvergence: 10 239 | m_StereoSeparation: .0219999999 240 | --- !u!4 &1230284684 241 | Transform: 242 | m_ObjectHideFlags: 0 243 | m_PrefabParentObject: {fileID: 0} 244 | m_PrefabInternal: {fileID: 0} 245 | m_GameObject: {fileID: 1230284679} 246 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 247 | m_LocalPosition: {x: 0, y: 1, z: -10} 248 | m_LocalScale: {x: 1, y: 1, z: 1} 249 | m_Children: [] 250 | m_Father: {fileID: 0} 251 | m_RootOrder: 0 252 | --- !u!1 &1345350638 253 | GameObject: 254 | m_ObjectHideFlags: 0 255 | m_PrefabParentObject: {fileID: 0} 256 | m_PrefabInternal: {fileID: 0} 257 | serializedVersion: 4 258 | m_Component: 259 | - 4: {fileID: 1345350639} 260 | - 114: {fileID: 1345350640} 261 | m_Layer: 0 262 | m_Name: Loader 263 | m_TagString: Untagged 264 | m_Icon: {fileID: 0} 265 | m_NavMeshLayer: 0 266 | m_StaticEditorFlags: 0 267 | m_IsActive: 1 268 | --- !u!4 &1345350639 269 | Transform: 270 | m_ObjectHideFlags: 0 271 | m_PrefabParentObject: {fileID: 0} 272 | m_PrefabInternal: {fileID: 0} 273 | m_GameObject: {fileID: 1345350638} 274 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 275 | m_LocalPosition: {x: 0, y: 0, z: 0} 276 | m_LocalScale: {x: 1, y: 1, z: 1} 277 | m_Children: [] 278 | m_Father: {fileID: 0} 279 | m_RootOrder: 2 280 | --- !u!114 &1345350640 281 | MonoBehaviour: 282 | m_ObjectHideFlags: 0 283 | m_PrefabParentObject: {fileID: 0} 284 | m_PrefabInternal: {fileID: 0} 285 | m_GameObject: {fileID: 1345350638} 286 | m_Enabled: 1 287 | m_EditorHideFlags: 0 288 | m_Script: {fileID: 11500000, guid: 0ed085a901b1ce34c871a02024743a09, type: 3} 289 | m_Name: 290 | m_EditorClassIdentifier: 291 | sceneAssetBundle: scene.unity3d 292 | sceneName: testScene 293 | loadLevelAdditive: 1 294 | --- !u!1 &1442559201 295 | GameObject: 296 | m_ObjectHideFlags: 0 297 | m_PrefabParentObject: {fileID: 0} 298 | m_PrefabInternal: {fileID: 0} 299 | serializedVersion: 4 300 | m_Component: 301 | - 4: {fileID: 1442559203} 302 | - 108: {fileID: 1442559202} 303 | m_Layer: 0 304 | m_Name: Directional Light 305 | m_TagString: Untagged 306 | m_Icon: {fileID: 0} 307 | m_NavMeshLayer: 0 308 | m_StaticEditorFlags: 0 309 | m_IsActive: 1 310 | --- !u!108 &1442559202 311 | Light: 312 | m_ObjectHideFlags: 0 313 | m_PrefabParentObject: {fileID: 0} 314 | m_PrefabInternal: {fileID: 0} 315 | m_GameObject: {fileID: 1442559201} 316 | m_Enabled: 1 317 | serializedVersion: 5 318 | m_Type: 1 319 | m_Color: {r: 1, g: .956862748, b: .839215696, a: 1} 320 | m_Intensity: .5 321 | m_Range: 10 322 | m_SpotAngle: 30 323 | m_CookieSize: 10 324 | m_Shadows: 325 | m_Type: 2 326 | m_Resolution: -1 327 | m_Strength: 1 328 | m_Bias: .0500000007 329 | m_NormalBias: .400000006 330 | m_Cookie: {fileID: 0} 331 | m_DrawHalo: 0 332 | m_ActuallyLightmapped: 0 333 | m_Flare: {fileID: 0} 334 | m_RenderMode: 0 335 | m_CullingMask: 336 | serializedVersion: 2 337 | m_Bits: 4294967295 338 | m_Lightmapping: 1 339 | m_BounceIntensity: 1 340 | m_ShadowRadius: 0 341 | m_ShadowAngle: 0 342 | m_AreaSize: {x: 1, y: 1} 343 | --- !u!4 &1442559203 344 | Transform: 345 | m_ObjectHideFlags: 0 346 | m_PrefabParentObject: {fileID: 0} 347 | m_PrefabInternal: {fileID: 0} 348 | m_GameObject: {fileID: 1442559201} 349 | m_LocalRotation: {x: .408217937, y: -.234569728, z: .109381676, w: .875426054} 350 | m_LocalPosition: {x: 0, y: 3, z: 0} 351 | m_LocalScale: {x: 1, y: 1, z: 1} 352 | m_Children: [] 353 | m_Father: {fileID: 0} 354 | m_RootOrder: 1 355 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestScenes/SceneLoader.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d83e2e1d16985f948aa4a33acc2bd58d 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestScenes/VariantLoader.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: .25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 5 17 | m_Fog: 0 18 | m_FogColor: {r: .5, g: .5, b: .5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: .00999999978 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1} 24 | m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1} 25 | m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientProbe: 28 | sh[ 0]: 0 29 | sh[ 1]: 0 30 | sh[ 2]: 0 31 | sh[ 3]: 0 32 | sh[ 4]: 0 33 | sh[ 5]: 0 34 | sh[ 6]: 0 35 | sh[ 7]: 0 36 | sh[ 8]: 0 37 | sh[ 9]: 0 38 | sh[10]: 0 39 | sh[11]: 0 40 | sh[12]: 0 41 | sh[13]: 0 42 | sh[14]: 0 43 | sh[15]: 0 44 | sh[16]: 0 45 | sh[17]: 0 46 | sh[18]: 0 47 | sh[19]: 0 48 | sh[20]: 0 49 | sh[21]: 0 50 | sh[22]: 0 51 | sh[23]: 0 52 | sh[24]: 0 53 | sh[25]: 0 54 | sh[26]: 0 55 | m_AmbientProbeInGamma: 56 | sh[ 0]: 0 57 | sh[ 1]: 0 58 | sh[ 2]: 0 59 | sh[ 3]: 0 60 | sh[ 4]: 0 61 | sh[ 5]: 0 62 | sh[ 6]: 0 63 | sh[ 7]: 0 64 | sh[ 8]: 0 65 | sh[ 9]: 0 66 | sh[10]: 0 67 | sh[11]: 0 68 | sh[12]: 0 69 | sh[13]: 0 70 | sh[14]: 0 71 | sh[15]: 0 72 | sh[16]: 0 73 | sh[17]: 0 74 | sh[18]: 0 75 | sh[19]: 0 76 | sh[20]: 0 77 | sh[21]: 0 78 | sh[22]: 0 79 | sh[23]: 0 80 | sh[24]: 0 81 | sh[25]: 0 82 | sh[26]: 0 83 | m_AmbientMode: 0 84 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 85 | m_HaloStrength: .5 86 | m_FlareStrength: 1 87 | m_FlareFadeSpeed: 3 88 | m_HaloTexture: {fileID: 0} 89 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 90 | m_DefaultReflectionMode: 1 91 | m_DefaultReflectionResolution: 128 92 | m_ReflectionBounces: 1 93 | m_ReflectionIntensity: 1 94 | m_CustomReflection: {fileID: 0} 95 | m_GeneratedSkyboxReflection: {fileID: 0} 96 | m_Sun: {fileID: 0} 97 | --- !u!127 &3 98 | LevelGameManager: 99 | m_ObjectHideFlags: 0 100 | --- !u!157 &4 101 | LightmapSettings: 102 | m_ObjectHideFlags: 0 103 | serializedVersion: 4 104 | m_LightProbesLegacy: {fileID: 0} 105 | m_GIWorkflowMode: 2 106 | m_LightProbes: {fileID: 0} 107 | m_Lightmaps: [] 108 | m_LightmapsModeLegacy: 1 109 | m_LightmapsMode: 1 110 | m_UseDualLightmapsInForward: 0 111 | m_GISettings: 112 | serializedVersion: 2 113 | m_BounceScale: 1 114 | m_IndirectOutputScale: 1 115 | m_AlbedoBoost: 1 116 | m_TemporalCoherenceThreshold: 1 117 | m_EnvironmentLightingMode: 1 118 | m_EnableBakedLightmaps: 1 119 | m_EnableRealtimeLightmaps: 1 120 | m_LightmapEditorSettings: 121 | serializedVersion: 3 122 | m_Resolution: 1 123 | m_BakeResolution: 40 124 | m_LastUsedResolution: 0 125 | m_TextureWidth: 1024 126 | m_TextureHeight: 1024 127 | m_BounceBoost: 1 128 | m_BounceIntensity: 1 129 | m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1} 130 | m_SkyLightIntensity: 0 131 | m_Quality: 0 132 | m_Bounces: 1 133 | m_FinalGatherRays: 1000 134 | m_FinalGatherContrastThreshold: .0500000007 135 | m_FinalGatherGradientThreshold: 0 136 | m_FinalGatherInterpolationPoints: 15 137 | m_AOAmount: 0 138 | m_AOMaxDistance: 1 139 | m_AOContrast: 1 140 | m_LODSurfaceMappingDistance: 1 141 | m_Padding: 2 142 | m_CompAOExponent: 1 143 | m_LightmapParameters: {fileID: 0} 144 | m_TextureCompression: 1 145 | m_LockAtlas: 0 146 | m_FinalGather: 0 147 | m_FinalGatherRayCount: 1024 148 | m_LightmapSnapshot: {fileID: 0} 149 | m_RuntimeCPUUsage: 25 150 | --- !u!196 &5 151 | NavMeshSettings: 152 | serializedVersion: 2 153 | m_ObjectHideFlags: 0 154 | m_BuildSettings: 155 | serializedVersion: 2 156 | agentRadius: .5 157 | agentHeight: 2 158 | agentSlope: 45 159 | agentClimb: .400000006 160 | ledgeDropHeight: 0 161 | maxJumpAcrossDistance: 0 162 | accuratePlacement: 0 163 | minRegionArea: 2 164 | cellSize: .166666672 165 | manualCellSize: 0 166 | m_NavMeshData: {fileID: 0} 167 | --- !u!1 &959729704 168 | GameObject: 169 | m_ObjectHideFlags: 0 170 | m_PrefabParentObject: {fileID: 0} 171 | m_PrefabInternal: {fileID: 0} 172 | serializedVersion: 4 173 | m_Component: 174 | - 4: {fileID: 959729706} 175 | - 114: {fileID: 959729705} 176 | m_Layer: 0 177 | m_Name: Loader 178 | m_TagString: Untagged 179 | m_Icon: {fileID: 0} 180 | m_NavMeshLayer: 0 181 | m_StaticEditorFlags: 0 182 | m_IsActive: 1 183 | --- !u!114 &959729705 184 | MonoBehaviour: 185 | m_ObjectHideFlags: 0 186 | m_PrefabParentObject: {fileID: 0} 187 | m_PrefabInternal: {fileID: 0} 188 | m_GameObject: {fileID: 959729704} 189 | m_Enabled: 1 190 | m_EditorHideFlags: 0 191 | m_Script: {fileID: 11500000, guid: d32ab3df764b1e94c882a2fbce6f996d, type: 3} 192 | m_Name: 193 | m_EditorClassIdentifier: 194 | variantSceneAssetBundle: variants/variant-scene.unity3d 195 | variantSceneName: variant-scene 196 | activeVariants: 197 | - hd 198 | --- !u!4 &959729706 199 | Transform: 200 | m_ObjectHideFlags: 0 201 | m_PrefabParentObject: {fileID: 0} 202 | m_PrefabInternal: {fileID: 0} 203 | m_GameObject: {fileID: 959729704} 204 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 205 | m_LocalPosition: {x: 0, y: 0, z: 0} 206 | m_LocalScale: {x: 1, y: 1, z: 1} 207 | m_Children: [] 208 | m_Father: {fileID: 0} 209 | m_RootOrder: 2 210 | --- !u!1 &1016574501 211 | GameObject: 212 | m_ObjectHideFlags: 0 213 | m_PrefabParentObject: {fileID: 0} 214 | m_PrefabInternal: {fileID: 0} 215 | serializedVersion: 4 216 | m_Component: 217 | - 4: {fileID: 1016574503} 218 | - 108: {fileID: 1016574502} 219 | m_Layer: 0 220 | m_Name: Directional Light 221 | m_TagString: Untagged 222 | m_Icon: {fileID: 0} 223 | m_NavMeshLayer: 0 224 | m_StaticEditorFlags: 0 225 | m_IsActive: 1 226 | --- !u!108 &1016574502 227 | Light: 228 | m_ObjectHideFlags: 0 229 | m_PrefabParentObject: {fileID: 0} 230 | m_PrefabInternal: {fileID: 0} 231 | m_GameObject: {fileID: 1016574501} 232 | m_Enabled: 1 233 | serializedVersion: 5 234 | m_Type: 1 235 | m_Color: {r: 1, g: .956862748, b: .839215696, a: 1} 236 | m_Intensity: .5 237 | m_Range: 10 238 | m_SpotAngle: 30 239 | m_CookieSize: 10 240 | m_Shadows: 241 | m_Type: 2 242 | m_Resolution: -1 243 | m_Strength: 1 244 | m_Bias: .0500000007 245 | m_NormalBias: .400000006 246 | m_Cookie: {fileID: 0} 247 | m_DrawHalo: 0 248 | m_ActuallyLightmapped: 0 249 | m_Flare: {fileID: 0} 250 | m_RenderMode: 0 251 | m_CullingMask: 252 | serializedVersion: 2 253 | m_Bits: 4294967295 254 | m_Lightmapping: 1 255 | m_BounceIntensity: 1 256 | m_ShadowRadius: 0 257 | m_ShadowAngle: 0 258 | m_AreaSize: {x: 1, y: 1} 259 | --- !u!4 &1016574503 260 | Transform: 261 | m_ObjectHideFlags: 0 262 | m_PrefabParentObject: {fileID: 0} 263 | m_PrefabInternal: {fileID: 0} 264 | m_GameObject: {fileID: 1016574501} 265 | m_LocalRotation: {x: .408217937, y: -.234569728, z: .109381676, w: .875426054} 266 | m_LocalPosition: {x: 0, y: 3, z: 0} 267 | m_LocalScale: {x: 1, y: 1, z: 1} 268 | m_Children: [] 269 | m_Father: {fileID: 0} 270 | m_RootOrder: 1 271 | --- !u!1 &1339236299 272 | GameObject: 273 | m_ObjectHideFlags: 0 274 | m_PrefabParentObject: {fileID: 0} 275 | m_PrefabInternal: {fileID: 0} 276 | serializedVersion: 4 277 | m_Component: 278 | - 4: {fileID: 1339236304} 279 | - 20: {fileID: 1339236303} 280 | - 92: {fileID: 1339236302} 281 | - 124: {fileID: 1339236301} 282 | - 81: {fileID: 1339236300} 283 | m_Layer: 0 284 | m_Name: Main Camera 285 | m_TagString: MainCamera 286 | m_Icon: {fileID: 0} 287 | m_NavMeshLayer: 0 288 | m_StaticEditorFlags: 0 289 | m_IsActive: 1 290 | --- !u!81 &1339236300 291 | AudioListener: 292 | m_ObjectHideFlags: 0 293 | m_PrefabParentObject: {fileID: 0} 294 | m_PrefabInternal: {fileID: 0} 295 | m_GameObject: {fileID: 1339236299} 296 | m_Enabled: 1 297 | --- !u!124 &1339236301 298 | Behaviour: 299 | m_ObjectHideFlags: 0 300 | m_PrefabParentObject: {fileID: 0} 301 | m_PrefabInternal: {fileID: 0} 302 | m_GameObject: {fileID: 1339236299} 303 | m_Enabled: 1 304 | --- !u!92 &1339236302 305 | Behaviour: 306 | m_ObjectHideFlags: 0 307 | m_PrefabParentObject: {fileID: 0} 308 | m_PrefabInternal: {fileID: 0} 309 | m_GameObject: {fileID: 1339236299} 310 | m_Enabled: 1 311 | --- !u!20 &1339236303 312 | Camera: 313 | m_ObjectHideFlags: 0 314 | m_PrefabParentObject: {fileID: 0} 315 | m_PrefabInternal: {fileID: 0} 316 | m_GameObject: {fileID: 1339236299} 317 | m_Enabled: 1 318 | serializedVersion: 2 319 | m_ClearFlags: 1 320 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 321 | m_NormalizedViewPortRect: 322 | serializedVersion: 2 323 | x: 0 324 | y: 0 325 | width: 1 326 | height: 1 327 | near clip plane: .300000012 328 | far clip plane: 1000 329 | field of view: 60 330 | orthographic: 0 331 | orthographic size: 5 332 | m_Depth: -1 333 | m_CullingMask: 334 | serializedVersion: 2 335 | m_Bits: 4294967295 336 | m_RenderingPath: -1 337 | m_TargetTexture: {fileID: 0} 338 | m_TargetDisplay: 0 339 | m_HDR: 0 340 | m_OcclusionCulling: 1 341 | m_StereoConvergence: 10 342 | m_StereoSeparation: .0219999999 343 | --- !u!4 &1339236304 344 | Transform: 345 | m_ObjectHideFlags: 0 346 | m_PrefabParentObject: {fileID: 0} 347 | m_PrefabInternal: {fileID: 0} 348 | m_GameObject: {fileID: 1339236299} 349 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 350 | m_LocalPosition: {x: 0, y: 1, z: -10} 351 | m_LocalScale: {x: 1, y: 1, z: 1} 352 | m_Children: [] 353 | m_Father: {fileID: 0} 354 | m_RootOrder: 0 355 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/Assets/ScriptsForAssetBundleSystem/TestScenes/VariantLoader.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c2643e7e7088a54883273b772693259 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | m_SpeedOfSound: 347 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_DSPBufferSize: 0 12 | m_DisableAudio: 0 13 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042, z: 0} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_BounceThreshold: 2 9 | m_SleepThreshold: .00499999989 10 | m_MaxAngularVelocity: 7 11 | m_MinPenetrationForPenalty: .00999999978 12 | m_SolverIterationCount: 6 13 | m_RaycastsHitTriggers: 1 14 | m_EnableAdaptiveForce: 0 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/ScriptsForAssetBundleSystem/TestScenes/AssetLoader.unity 10 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 0 13 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_LegacyDeferred: 11 | m_Mode: 1 12 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 13 | m_AlwaysIncludedShaders: 14 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 15 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 16 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 17 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 18 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 19 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 20 | m_PreloadedShaders: [] 21 | m_LightmapStripping: 0 22 | m_LightmapKeepPlain: 1 23 | m_LightmapKeepDirCombined: 1 24 | m_LightmapKeepDirSeparate: 1 25 | m_LightmapKeepDynamic: 1 26 | m_FogStripping: 0 27 | m_FogKeepLinear: 1 28 | m_FogKeepExp: 1 29 | m_FogKeepExp2: 1 30 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | m_Axes: 7 | - serializedVersion: 3 8 | m_Name: Horizontal 9 | descriptiveName: 10 | descriptiveNegativeName: 11 | negativeButton: left 12 | positiveButton: right 13 | altNegativeButton: a 14 | altPositiveButton: d 15 | gravity: 3 16 | dead: .00100000005 17 | sensitivity: 3 18 | snap: 1 19 | invert: 0 20 | type: 0 21 | axis: 0 22 | joyNum: 0 23 | - serializedVersion: 3 24 | m_Name: Vertical 25 | descriptiveName: 26 | descriptiveNegativeName: 27 | negativeButton: down 28 | positiveButton: up 29 | altNegativeButton: s 30 | altPositiveButton: w 31 | gravity: 3 32 | dead: .00100000005 33 | sensitivity: 3 34 | snap: 1 35 | invert: 0 36 | type: 0 37 | axis: 0 38 | joyNum: 0 39 | - serializedVersion: 3 40 | m_Name: Fire1 41 | descriptiveName: 42 | descriptiveNegativeName: 43 | negativeButton: 44 | positiveButton: left ctrl 45 | altNegativeButton: 46 | altPositiveButton: mouse 0 47 | gravity: 1000 48 | dead: .00100000005 49 | sensitivity: 1000 50 | snap: 0 51 | invert: 0 52 | type: 0 53 | axis: 0 54 | joyNum: 0 55 | - serializedVersion: 3 56 | m_Name: Fire2 57 | descriptiveName: 58 | descriptiveNegativeName: 59 | negativeButton: 60 | positiveButton: left alt 61 | altNegativeButton: 62 | altPositiveButton: mouse 1 63 | gravity: 1000 64 | dead: .00100000005 65 | sensitivity: 1000 66 | snap: 0 67 | invert: 0 68 | type: 0 69 | axis: 0 70 | joyNum: 0 71 | - serializedVersion: 3 72 | m_Name: Fire3 73 | descriptiveName: 74 | descriptiveNegativeName: 75 | negativeButton: 76 | positiveButton: left cmd 77 | altNegativeButton: 78 | altPositiveButton: mouse 2 79 | gravity: 1000 80 | dead: .00100000005 81 | sensitivity: 1000 82 | snap: 0 83 | invert: 0 84 | type: 0 85 | axis: 0 86 | joyNum: 0 87 | - serializedVersion: 3 88 | m_Name: Jump 89 | descriptiveName: 90 | descriptiveNegativeName: 91 | negativeButton: 92 | positiveButton: space 93 | altNegativeButton: 94 | altPositiveButton: 95 | gravity: 1000 96 | dead: .00100000005 97 | sensitivity: 1000 98 | snap: 0 99 | invert: 0 100 | type: 0 101 | axis: 0 102 | joyNum: 0 103 | - serializedVersion: 3 104 | m_Name: Mouse X 105 | descriptiveName: 106 | descriptiveNegativeName: 107 | negativeButton: 108 | positiveButton: 109 | altNegativeButton: 110 | altPositiveButton: 111 | gravity: 0 112 | dead: 0 113 | sensitivity: .100000001 114 | snap: 0 115 | invert: 0 116 | type: 1 117 | axis: 0 118 | joyNum: 0 119 | - serializedVersion: 3 120 | m_Name: Mouse Y 121 | descriptiveName: 122 | descriptiveNegativeName: 123 | negativeButton: 124 | positiveButton: 125 | altNegativeButton: 126 | altPositiveButton: 127 | gravity: 0 128 | dead: 0 129 | sensitivity: .100000001 130 | snap: 0 131 | invert: 0 132 | type: 1 133 | axis: 1 134 | joyNum: 0 135 | - serializedVersion: 3 136 | m_Name: Mouse ScrollWheel 137 | descriptiveName: 138 | descriptiveNegativeName: 139 | negativeButton: 140 | positiveButton: 141 | altNegativeButton: 142 | altPositiveButton: 143 | gravity: 0 144 | dead: 0 145 | sensitivity: .100000001 146 | snap: 0 147 | invert: 0 148 | type: 1 149 | axis: 2 150 | joyNum: 0 151 | - serializedVersion: 3 152 | m_Name: Horizontal 153 | descriptiveName: 154 | descriptiveNegativeName: 155 | negativeButton: 156 | positiveButton: 157 | altNegativeButton: 158 | altPositiveButton: 159 | gravity: 0 160 | dead: .189999998 161 | sensitivity: 1 162 | snap: 0 163 | invert: 0 164 | type: 2 165 | axis: 0 166 | joyNum: 0 167 | - serializedVersion: 3 168 | m_Name: Vertical 169 | descriptiveName: 170 | descriptiveNegativeName: 171 | negativeButton: 172 | positiveButton: 173 | altNegativeButton: 174 | altPositiveButton: 175 | gravity: 0 176 | dead: .189999998 177 | sensitivity: 1 178 | snap: 0 179 | invert: 1 180 | type: 2 181 | axis: 1 182 | joyNum: 0 183 | - serializedVersion: 3 184 | m_Name: Fire1 185 | descriptiveName: 186 | descriptiveNegativeName: 187 | negativeButton: 188 | positiveButton: joystick button 0 189 | altNegativeButton: 190 | altPositiveButton: 191 | gravity: 1000 192 | dead: .00100000005 193 | sensitivity: 1000 194 | snap: 0 195 | invert: 0 196 | type: 0 197 | axis: 0 198 | joyNum: 0 199 | - serializedVersion: 3 200 | m_Name: Fire2 201 | descriptiveName: 202 | descriptiveNegativeName: 203 | negativeButton: 204 | positiveButton: joystick button 1 205 | altNegativeButton: 206 | altPositiveButton: 207 | gravity: 1000 208 | dead: .00100000005 209 | sensitivity: 1000 210 | snap: 0 211 | invert: 0 212 | type: 0 213 | axis: 0 214 | joyNum: 0 215 | - serializedVersion: 3 216 | m_Name: Fire3 217 | descriptiveName: 218 | descriptiveNegativeName: 219 | negativeButton: 220 | positiveButton: joystick button 2 221 | altNegativeButton: 222 | altPositiveButton: 223 | gravity: 1000 224 | dead: .00100000005 225 | sensitivity: 1000 226 | snap: 0 227 | invert: 0 228 | type: 0 229 | axis: 0 230 | joyNum: 0 231 | - serializedVersion: 3 232 | m_Name: Jump 233 | descriptiveName: 234 | descriptiveNegativeName: 235 | negativeButton: 236 | positiveButton: joystick button 3 237 | altNegativeButton: 238 | altPositiveButton: 239 | gravity: 1000 240 | dead: .00100000005 241 | sensitivity: 1000 242 | snap: 0 243 | invert: 0 244 | type: 0 245 | axis: 0 246 | joyNum: 0 247 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshAreas: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Default 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_VelocityIterations: 8 9 | m_PositionIterations: 3 10 | m_VelocityThreshold: 1 11 | m_MaxLinearCorrection: .200000003 12 | m_MaxAngularCorrection: 8 13 | m_MaxTranslationSpeed: 100 14 | m_MaxRotationSpeed: 360 15 | m_BaumgarteScale: .200000003 16 | m_BaumgarteTimeOfImpactScale: .75 17 | m_TimeToSleep: .5 18 | m_LinearSleepTolerance: .00999999978 19 | m_AngularSleepTolerance: 2 20 | m_RaycastsHitTriggers: 1 21 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 22 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | AndroidProfiler: 0 8 | defaultScreenOrientation: 0 9 | targetDevice: 2 10 | targetResolution: 0 11 | accelerometerFrequency: 60 12 | companyName: Unity 13 | productName: assetbundle_demo 14 | defaultCursor: {fileID: 0} 15 | cursorHotspot: {x: 0, y: 0} 16 | m_ShowUnitySplashScreen: 1 17 | defaultScreenWidth: 1024 18 | defaultScreenHeight: 768 19 | defaultScreenWidthWeb: 960 20 | defaultScreenHeightWeb: 600 21 | m_RenderingPath: 1 22 | m_MobileRenderingPath: 1 23 | m_ActiveColorSpace: 0 24 | m_MTRendering: 1 25 | m_MobileMTRendering: 0 26 | m_Stereoscopic3D: 0 27 | iosShowActivityIndicatorOnLoading: -1 28 | androidShowActivityIndicatorOnLoading: -1 29 | iosAppInBackgroundBehavior: 0 30 | displayResolutionDialog: 1 31 | allowedAutorotateToPortrait: 1 32 | allowedAutorotateToPortraitUpsideDown: 1 33 | allowedAutorotateToLandscapeRight: 1 34 | allowedAutorotateToLandscapeLeft: 1 35 | useOSAutorotation: 1 36 | use32BitDisplayBuffer: 1 37 | disableDepthAndStencilBuffers: 0 38 | defaultIsFullScreen: 1 39 | defaultIsNativeResolution: 1 40 | runInBackground: 0 41 | captureSingleScreen: 0 42 | Override IPod Music: 0 43 | Prepare IOS For Recording: 0 44 | submitAnalytics: 1 45 | usePlayerLog: 1 46 | bakeCollisionMeshes: 0 47 | forceSingleInstance: 0 48 | resizableWindow: 0 49 | useMacAppStoreValidation: 0 50 | gpuSkinning: 0 51 | xboxPIXTextureCapture: 0 52 | xboxEnableAvatar: 0 53 | xboxEnableKinect: 0 54 | xboxEnableKinectAutoTracking: 0 55 | xboxEnableFitness: 0 56 | visibleInBackground: 0 57 | macFullscreenMode: 2 58 | d3d9FullscreenMode: 1 59 | d3d11FullscreenMode: 1 60 | xboxSpeechDB: 0 61 | xboxEnableHeadOrientation: 0 62 | xboxEnableGuest: 0 63 | xboxOneResolution: 0 64 | ps3SplashScreen: {fileID: 0} 65 | videoMemoryForVertexBuffers: 0 66 | psp2PowerMode: 0 67 | psp2AcquireBGM: 1 68 | m_SupportedAspectRatios: 69 | 4:3: 1 70 | 5:4: 1 71 | 16:10: 1 72 | 16:9: 1 73 | Others: 1 74 | bundleIdentifier: com.Unity.assetbundle_demo 75 | bundleVersion: 1.0 76 | preloadedAssets: [] 77 | metroEnableIndependentInputSource: 0 78 | metroEnableLowLatencyPresentationAPI: 0 79 | xboxOneDisableKinectGpuReservation: 0 80 | virtualRealitySupported: 0 81 | productGUID: 6f11679adf5c64d4b940549c0440e3f4 82 | AndroidBundleVersionCode: 1 83 | AndroidMinSdkVersion: 9 84 | AndroidPreferredInstallLocation: 1 85 | aotOptions: 86 | apiCompatibilityLevel: 2 87 | iPhoneStrippingLevel: 0 88 | iPhoneScriptCallOptimization: 0 89 | ForceInternetPermission: 0 90 | ForceSDCardPermission: 0 91 | CreateWallpaper: 0 92 | APKExpansionFiles: 0 93 | preloadShaders: 0 94 | StripUnusedMeshComponents: 0 95 | iPhoneSdkVersion: 988 96 | iPhoneTargetOSVersion: 22 97 | uIPrerenderedIcon: 0 98 | uIRequiresPersistentWiFi: 0 99 | uIStatusBarHidden: 1 100 | uIExitOnSuspend: 0 101 | uIStatusBarStyle: 0 102 | iPhoneSplashScreen: {fileID: 0} 103 | iPhoneHighResSplashScreen: {fileID: 0} 104 | iPhoneTallHighResSplashScreen: {fileID: 0} 105 | iPhone47inSplashScreen: {fileID: 0} 106 | iPhone55inPortraitSplashScreen: {fileID: 0} 107 | iPhone55inLandscapeSplashScreen: {fileID: 0} 108 | iPadPortraitSplashScreen: {fileID: 0} 109 | iPadHighResPortraitSplashScreen: {fileID: 0} 110 | iPadLandscapeSplashScreen: {fileID: 0} 111 | iPadHighResLandscapeSplashScreen: {fileID: 0} 112 | iOSLaunchScreenType: 0 113 | iOSLaunchScreenPortrait: {fileID: 0} 114 | iOSLaunchScreenLandscape: {fileID: 0} 115 | iOSLaunchScreenBackgroundColor: 116 | serializedVersion: 2 117 | rgba: 0 118 | iOSLaunchScreenFillPct: 100 119 | iOSLaunchScreenSize: 100 120 | iOSLaunchScreenCustomXibPath: 121 | AndroidTargetDevice: 0 122 | AndroidSplashScreenScale: 0 123 | androidSplashScreen: {fileID: 0} 124 | AndroidKeystoreName: 125 | AndroidKeyaliasName: 126 | AndroidTVCompatibility: 1 127 | AndroidIsGame: 1 128 | androidEnableBanner: 1 129 | m_AndroidBanners: 130 | - width: 320 131 | height: 180 132 | banner: {fileID: 0} 133 | androidGamepadSupportLevel: 0 134 | resolutionDialogBanner: {fileID: 0} 135 | m_BuildTargetIcons: 136 | - m_BuildTarget: 137 | m_Icons: 138 | - m_Icon: {fileID: 0} 139 | m_Size: 128 140 | m_BuildTargetBatching: [] 141 | m_BuildTargetGraphicsAPIs: 142 | - m_BuildTarget: AndroidPlayer 143 | m_APIs: 08000000 144 | m_Automatic: 0 145 | webPlayerTemplate: APPLICATION:Default 146 | m_TemplateCustomTags: {} 147 | actionOnDotNetUnhandledException: 1 148 | enableInternalProfiler: 0 149 | logObjCUncaughtExceptions: 1 150 | enableCrashReportAPI: 0 151 | locationUsageDescription: 152 | XboxTitleId: 153 | XboxImageXexPath: 154 | XboxSpaPath: 155 | XboxGenerateSpa: 0 156 | XboxDeployKinectResources: 0 157 | XboxSplashScreen: {fileID: 0} 158 | xboxEnableSpeech: 0 159 | xboxAdditionalTitleMemorySize: 0 160 | xboxDeployKinectHeadOrientation: 0 161 | xboxDeployKinectHeadPosition: 0 162 | ps3TitleConfigPath: 163 | ps3DLCConfigPath: 164 | ps3ThumbnailPath: 165 | ps3BackgroundPath: 166 | ps3SoundPath: 167 | ps3NPAgeRating: -842150451 168 | ps3TrophyCommId: 169 | ps3NpCommunicationPassphrase: 170 | ps3TrophyPackagePath: 171 | ps3BootCheckMaxSaveGameSizeKB: 128 172 | ps3TrophyCommSig: 173 | ps3SaveGameSlots: 1 174 | ps3TrialMode: 0 175 | ps3VideoMemoryForAudio: 0 176 | ps3EnableVerboseMemoryStats: 0 177 | ps3UseSPUForUmbra: 0 178 | ps3EnableMoveSupport: 1 179 | ps3DisableDolbyEncoding: 0 180 | ps4NPAgeRating: -842150451 181 | ps4NPTitleSecret: 182 | ps4NPTrophyPackPath: 183 | ps4ParentalLevel: -842150451 184 | ps4ContentID: 185 | ps4Category: -842150451 186 | ps4MasterVersion: 187 | ps4AppVersion: 188 | ps4AppType: 0 189 | ps4ParamSfxPath: 190 | ps4VideoOutPixelFormat: -842150451 191 | ps4VideoOutResolution: -842150451 192 | ps4PronunciationXMLPath: 193 | ps4PronunciationSIGPath: 194 | ps4BackgroundImagePath: 195 | ps4StartupImagePath: 196 | ps4SaveDataImagePath: 197 | ps4BGMPath: 198 | ps4ShareFilePath: 199 | ps4NPtitleDatPath: 200 | ps4RemotePlayKeyAssignment: -1 201 | ps4EnterButtonAssignment: -842150451 202 | ps4ApplicationParam1: -842150451 203 | ps4ApplicationParam2: -842150451 204 | ps4ApplicationParam3: -842150451 205 | ps4ApplicationParam4: -842150451 206 | ps4GarlicHeapSize: 2048 207 | ps4Passcode: 5xr84P2R391UXaLHbavJvFZGfO47XWS2 208 | ps4pnSessions: 1 209 | ps4pnPresence: 1 210 | ps4pnFriends: 1 211 | ps4pnGameCustomData: 1 212 | playerPrefsSupport: 0 213 | monoEnv: 214 | psp2Splashimage: {fileID: 0} 215 | psp2NPTrophyPackPath: 216 | psp2NPSupportGBMorGJP: 0 217 | psp2NPAgeRating: 12 218 | psp2NPTitleDatPath: 219 | psp2NPCommsID: 220 | psp2NPCommunicationsID: 221 | psp2NPCommsPassphrase: 222 | psp2NPCommsSig: 223 | psp2ParamSfxPath: 224 | psp2ManualPath: 225 | psp2LiveAreaGatePath: 226 | psp2LiveAreaBackroundPath: 227 | psp2LiveAreaPath: 228 | psp2LiveAreaTrialPath: 229 | psp2PatchChangeInfoPath: 230 | psp2PatchOriginalPackage: 231 | psp2PackagePassword: wx31uP9sj3XBkrLQIThqyubWNYPxfkxr 232 | psp2KeystoneFile: 233 | psp2MemoryExpansionMode: 0 234 | psp2DRMType: 0 235 | psp2StorageType: 0 236 | psp2MediaCapacity: 0 237 | psp2DLCConfigPath: 238 | psp2ThumbnailPath: 239 | psp2BackgroundPath: 240 | psp2SoundPath: 241 | psp2TrophyCommId: 242 | psp2TrophyPackagePath: 243 | psp2PackagedResourcesPath: 244 | psp2SaveDataQuota: 10240 245 | psp2ParentalLevel: 1 246 | psp2ShortTitle: Not Set 247 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 248 | psp2Category: 0 249 | psp2MasterVersion: 01.00 250 | psp2AppVersion: 01.00 251 | psp2TVBootMode: 0 252 | psp2EnterButtonAssignment: 2 253 | psp2TVDisableEmu: 0 254 | psp2AllowTwitterDialog: 1 255 | psp2Upgradable: 0 256 | psp2HealthWarning: 0 257 | psp2UseLibLocation: 0 258 | psp2InfoBarOnStartup: 0 259 | psp2InfoBarColor: 0 260 | psmSplashimage: {fileID: 0} 261 | spritePackerPolicy: 262 | scriptingDefineSymbols: {} 263 | metroPackageName: virtualasset 264 | metroPackageLogo: 265 | metroPackageLogo140: 266 | metroPackageLogo180: 267 | metroPackageLogo240: 268 | metroPackageVersion: 269 | metroCertificatePath: 270 | metroCertificatePassword: 271 | metroCertificateSubject: 272 | metroCertificateIssuer: 273 | metroCertificateNotAfter: 0000000000000000 274 | metroApplicationDescription: virtualasset 275 | metroStoreTileLogo80: 276 | metroStoreTileLogo: 277 | metroStoreTileLogo140: 278 | metroStoreTileLogo180: 279 | metroStoreTileWideLogo80: 280 | metroStoreTileWideLogo: 281 | metroStoreTileWideLogo140: 282 | metroStoreTileWideLogo180: 283 | metroStoreTileSmallLogo80: 284 | metroStoreTileSmallLogo: 285 | metroStoreTileSmallLogo140: 286 | metroStoreTileSmallLogo180: 287 | metroStoreSmallTile80: 288 | metroStoreSmallTile: 289 | metroStoreSmallTile140: 290 | metroStoreSmallTile180: 291 | metroStoreLargeTile80: 292 | metroStoreLargeTile: 293 | metroStoreLargeTile140: 294 | metroStoreLargeTile180: 295 | metroStoreSplashScreenImage: 296 | metroStoreSplashScreenImage140: 297 | metroStoreSplashScreenImage180: 298 | metroPhoneAppIcon: 299 | metroPhoneAppIcon140: 300 | metroPhoneAppIcon240: 301 | metroPhoneSmallTile: 302 | metroPhoneSmallTile140: 303 | metroPhoneSmallTile240: 304 | metroPhoneMediumTile: 305 | metroPhoneMediumTile140: 306 | metroPhoneMediumTile240: 307 | metroPhoneWideTile: 308 | metroPhoneWideTile140: 309 | metroPhoneWideTile240: 310 | metroPhoneSplashScreenImage: 311 | metroPhoneSplashScreenImage140: 312 | metroPhoneSplashScreenImage240: 313 | metroTileShortName: 314 | metroCommandLineArgsFile: 315 | metroTileShowName: 0 316 | metroMediumTileShowName: 0 317 | metroLargeTileShowName: 0 318 | metroWideTileShowName: 0 319 | metroDefaultTileSize: 1 320 | metroTileForegroundText: 1 321 | metroTileBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 322 | metroSplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 323 | metroSplashScreenUseBackgroundColor: 0 324 | platformCapabilities: {} 325 | metroFTAName: 326 | metroFTAFileTypes: [] 327 | metroProtocolName: 328 | metroCompilationOverrides: 1 329 | blackberryDeviceAddress: 330 | blackberryDevicePassword: 331 | blackberryTokenPath: 332 | blackberryTokenExires: 333 | blackberryTokenAuthor: 334 | blackberryTokenAuthorId: 335 | blackberryCskPassword: 336 | blackberrySaveLogPath: 337 | blackberrySharedPermissions: 0 338 | blackberryCameraPermissions: 0 339 | blackberryGPSPermissions: 0 340 | blackberryDeviceIDPermissions: 0 341 | blackberryMicrophonePermissions: 0 342 | blackberryGamepadSupport: 0 343 | blackberryBuildId: 0 344 | blackberryLandscapeSplashScreen: {fileID: 0} 345 | blackberryPortraitSplashScreen: {fileID: 0} 346 | blackberrySquareSplashScreen: {fileID: 0} 347 | tizenProductDescription: 348 | tizenProductURL: 349 | tizenSigningProfileName: 350 | tizenGPSPermissions: 0 351 | tizenMicrophonePermissions: 0 352 | stvDeviceAddress: 353 | stvProductDescription: 354 | stvProductAuthor: 355 | stvProductAuthorEmail: 356 | stvProductLink: 357 | stvProductCategory: 0 358 | XboxOneProductId: 359 | XboxOneUpdateKey: 360 | XboxOneSandboxId: 361 | XboxOneContentId: 362 | XboxOneTitleId: 363 | XboxOneSCId: 364 | XboxOneGameOsOverridePath: 365 | XboxOnePackagingOverridePath: 366 | XboxOneAppManifestOverridePath: 367 | XboxOnePackageEncryption: 0 368 | XboxOnePackageUpdateGranularity: 2 369 | XboxOneDescription: 370 | XboxOneIsContentPackage: 0 371 | XboxOneEnableGPUVariability: 0 372 | XboxOneSockets: 373 | Unity Internal - Mono async-IO: 374 | m_Name: Unity Internal - Mono async-IO 375 | m_Port: 0 376 | m_Protocol: 0 377 | m_Usages: 0000000001000000 378 | m_TemplateName: 379 | m_SessionRequirment: 0 380 | m_DeviceUsages: 381 | XboxOneSplashScreen: {fileID: 0} 382 | XboxOneAllowedProductIds: [] 383 | XboxOnePersistentLocalStorageSize: 0 384 | intPropertyNames: 385 | - Standalone::ScriptingBackend 386 | - WebGL::ScriptingBackend 387 | - WebGL::audioCompressionFormat 388 | - WebGL::exceptionSupport 389 | - WebGL::memorySize 390 | - iOS::Architecture 391 | - iOS::ScriptingBackend 392 | Standalone::ScriptingBackend: 0 393 | WebGL::ScriptingBackend: 1 394 | WebGL::audioCompressionFormat: 4 395 | WebGL::exceptionSupport: 1 396 | WebGL::memorySize: 256 397 | iOS::Architecture: 2 398 | iOS::ScriptingBackend: 1 399 | boolPropertyNames: 400 | - WebGL::analyzeBuildSize 401 | - WebGL::dataCaching 402 | - WebGL::useEmbeddedResources 403 | WebGL::analyzeBuildSize: 0 404 | WebGL::dataCaching: 0 405 | WebGL::useEmbeddedResources: 0 406 | stringPropertyNames: 407 | - WebGL::emscriptenArgs 408 | - WebGL::template 409 | - additionalIl2CppArgs::additionalIl2CppArgs 410 | WebGL::emscriptenArgs: 411 | WebGL::template: APPLICATION:Default 412 | additionalIl2CppArgs::additionalIl2CppArgs: 413 | firstStreamedSceneWithResources: 0 414 | cloudProjectId: 415 | projectId: 416 | projectName: 417 | organizationId: 418 | cloudEnabled: 0 419 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.1.2f1 2 | m_StandardAssetsVersion: 0 3 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 3 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | blendWeights: 1 18 | textureQuality: 1 19 | anisotropicTextures: 0 20 | antiAliasing: 0 21 | softParticles: 0 22 | softVegetation: 0 23 | realtimeReflectionProbes: 0 24 | vSyncCount: 0 25 | lodBias: .300000012 26 | maximumLODLevel: 0 27 | particleRaycastBudget: 4 28 | excludedTargetPlatforms: [] 29 | - serializedVersion: 2 30 | name: Fast 31 | pixelLightCount: 0 32 | shadows: 0 33 | shadowResolution: 0 34 | shadowProjection: 1 35 | shadowCascades: 1 36 | shadowDistance: 20 37 | blendWeights: 2 38 | textureQuality: 0 39 | anisotropicTextures: 0 40 | antiAliasing: 0 41 | softParticles: 0 42 | softVegetation: 0 43 | realtimeReflectionProbes: 0 44 | vSyncCount: 0 45 | lodBias: .400000006 46 | maximumLODLevel: 0 47 | particleRaycastBudget: 16 48 | excludedTargetPlatforms: [] 49 | - serializedVersion: 2 50 | name: Simple 51 | pixelLightCount: 1 52 | shadows: 1 53 | shadowResolution: 0 54 | shadowProjection: 1 55 | shadowCascades: 1 56 | shadowDistance: 20 57 | blendWeights: 2 58 | textureQuality: 0 59 | anisotropicTextures: 1 60 | antiAliasing: 0 61 | softParticles: 0 62 | softVegetation: 0 63 | realtimeReflectionProbes: 0 64 | vSyncCount: 0 65 | lodBias: .699999988 66 | maximumLODLevel: 0 67 | particleRaycastBudget: 64 68 | excludedTargetPlatforms: [] 69 | - serializedVersion: 2 70 | name: Good 71 | pixelLightCount: 2 72 | shadows: 2 73 | shadowResolution: 1 74 | shadowProjection: 1 75 | shadowCascades: 2 76 | shadowDistance: 40 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 1 83 | realtimeReflectionProbes: 1 84 | vSyncCount: 1 85 | lodBias: 1 86 | maximumLODLevel: 0 87 | particleRaycastBudget: 256 88 | excludedTargetPlatforms: [] 89 | - serializedVersion: 2 90 | name: Beautiful 91 | pixelLightCount: 3 92 | shadows: 2 93 | shadowResolution: 2 94 | shadowProjection: 1 95 | shadowCascades: 2 96 | shadowDistance: 70 97 | blendWeights: 4 98 | textureQuality: 0 99 | anisotropicTextures: 2 100 | antiAliasing: 2 101 | softParticles: 1 102 | softVegetation: 1 103 | realtimeReflectionProbes: 1 104 | vSyncCount: 1 105 | lodBias: 1.5 106 | maximumLODLevel: 0 107 | particleRaycastBudget: 1024 108 | excludedTargetPlatforms: [] 109 | - serializedVersion: 2 110 | name: Fantastic 111 | pixelLightCount: 4 112 | shadows: 2 113 | shadowResolution: 2 114 | shadowProjection: 1 115 | shadowCascades: 4 116 | shadowDistance: 150 117 | blendWeights: 4 118 | textureQuality: 0 119 | anisotropicTextures: 2 120 | antiAliasing: 2 121 | softParticles: 1 122 | softVegetation: 1 123 | realtimeReflectionProbes: 1 124 | vSyncCount: 1 125 | lodBias: 2 126 | maximumLODLevel: 0 127 | particleRaycastBudget: 4096 128 | excludedTargetPlatforms: [] 129 | m_PerPlatformDefaultQuality: {} 130 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | userID: 0 43 | uniqueID: 0 44 | locked: 0 45 | -------------------------------------------------------------------------------- /unity5_assetbundle-demo/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: .0199999996 7 | Maximum Allowed Timestep: .333333343 8 | m_TimeScale: 1 9 | --------------------------------------------------------------------------------