├── ReporterProject ├── ProjectSettings │ ├── ProjectVersion.txt │ ├── VFXManager.asset │ ├── PresetManager.asset │ ├── ClusterInputManager.asset │ ├── EditorBuildSettings.asset │ ├── NetworkManager.asset │ ├── TimeManager.asset │ ├── AudioManager.asset │ ├── EditorSettings.asset │ ├── TagManager.asset │ ├── DynamicsManager.asset │ ├── UnityConnectSettings.asset │ ├── NavMeshAreas.asset │ ├── Physics2DSettings.asset │ ├── GraphicsSettings.asset │ ├── QualitySettings.asset │ ├── InputManager.asset │ └── ProjectSettings.asset ├── .gitignore ├── Assets │ ├── Sample │ │ ├── cone.FBX │ │ ├── Materials │ │ │ ├── xb_a.png │ │ │ ├── No Name.mat.meta │ │ │ ├── xb_a.png.meta │ │ │ └── No Name.mat │ │ ├── abc.prefab.meta │ │ ├── Editor.meta │ │ ├── Materials.meta │ │ ├── Editor │ │ │ ├── BuildBundles.cs.meta │ │ │ └── BuildBundles.cs │ │ ├── abc.prefab │ │ └── cone.FBX.meta │ ├── Depend │ │ ├── EPPlus │ │ │ ├── Editor │ │ │ │ ├── EPPlus.dll │ │ │ │ ├── EPPlus.Interfaces.dll │ │ │ │ ├── EPPlus.System.Drawing.dll │ │ │ │ ├── Microsoft.IO.RecyclableMemoryStream.dll │ │ │ │ ├── EPPlus.dll.meta │ │ │ │ ├── EPPlus.Interfaces.dll.meta │ │ │ │ ├── EPPlus.System.Drawing.dll.meta │ │ │ │ └── Microsoft.IO.RecyclableMemoryStream.dll.meta │ │ │ └── Editor.meta │ │ ├── Drawing │ │ │ ├── Editor │ │ │ │ ├── System.Drawing.dll │ │ │ │ └── System.Drawing.dll.meta │ │ │ └── Editor.meta │ │ ├── Drawing.meta │ │ └── EPPlus.meta │ ├── Depend.meta │ ├── Sample.meta │ ├── AssetBundleReporter.meta │ └── AssetBundleReporter │ │ ├── Editor.meta │ │ └── Editor │ │ ├── Analyze.meta │ │ ├── Reporter.meta │ │ ├── AssetFileInfo.cs.meta │ │ ├── AssetFileInfoType.cs.meta │ │ ├── AssetBundleFileInfo.cs.meta │ │ ├── AssetBundleReporter.cs.meta │ │ ├── Analyze │ │ ├── AssetBundleFilesAnalyze.cs.meta │ │ ├── AssetBundleFilesAnalyzeObject.cs.meta │ │ ├── AssetBundleFilesAnalyzeScene.cs.meta │ │ ├── AssetBundleFilesAnalyzeScene.cs │ │ ├── AssetBundleFilesAnalyzeObject.cs │ │ └── AssetBundleFilesAnalyze.cs │ │ ├── Reporter │ │ ├── AssetBundleResReporter.cs.meta │ │ ├── AssetBundleDetailsReporter.cs.meta │ │ ├── AssetBundleFilesReporter.cs.meta │ │ ├── AssetBundlePropertyReporter.cs.meta │ │ ├── AssetBundleResReporter.cs │ │ ├── AssetBundlePropertyReporter.cs │ │ ├── AssetBundleFilesReporter.cs │ │ └── AssetBundleDetailsReporter.cs │ │ ├── AssetFileInfoType.cs │ │ ├── AssetFileInfo.cs │ │ ├── AssetBundleFileInfo.cs │ │ └── AssetBundleReporter.cs └── Packages │ └── manifest.json ├── .gitignore ├── LICENSE └── README.md /ReporterProject/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.4.33f1 2 | -------------------------------------------------------------------------------- /ReporterProject/.gitignore: -------------------------------------------------------------------------------- 1 | /.vs/ 2 | /Library/ 3 | /Temp/ 4 | /StandaloneWindows* 5 | /Assets/Sample -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/cone.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akof1314/AssetBundleReporter/HEAD/ReporterProject/Assets/Sample/cone.FBX -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/Materials/xb_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akof1314/AssetBundleReporter/HEAD/ReporterProject/Assets/Sample/Materials/xb_a.png -------------------------------------------------------------------------------- /ReporterProject/ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akof1314/AssetBundleReporter/HEAD/ReporterProject/ProjectSettings/VFXManager.asset -------------------------------------------------------------------------------- /ReporterProject/ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akof1314/AssetBundleReporter/HEAD/ReporterProject/ProjectSettings/PresetManager.asset -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus/Editor/EPPlus.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akof1314/AssetBundleReporter/HEAD/ReporterProject/Assets/Depend/EPPlus/Editor/EPPlus.dll -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/Drawing/Editor/System.Drawing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akof1314/AssetBundleReporter/HEAD/ReporterProject/Assets/Depend/Drawing/Editor/System.Drawing.dll -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus/Editor/EPPlus.Interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akof1314/AssetBundleReporter/HEAD/ReporterProject/Assets/Depend/EPPlus/Editor/EPPlus.Interfaces.dll -------------------------------------------------------------------------------- /ReporterProject/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus/Editor/EPPlus.System.Drawing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akof1314/AssetBundleReporter/HEAD/ReporterProject/Assets/Depend/EPPlus/Editor/EPPlus.System.Drawing.dll -------------------------------------------------------------------------------- /ReporterProject/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 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus/Editor/Microsoft.IO.RecyclableMemoryStream.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/akof1314/AssetBundleReporter/HEAD/ReporterProject/Assets/Depend/EPPlus/Editor/Microsoft.IO.RecyclableMemoryStream.dll -------------------------------------------------------------------------------- /ReporterProject/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 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/Drawing.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 903ea000249c1fa42add06a443e3c3a3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/Drawing/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fc242689cbcb58489889a4f5f0c2223 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ReporterProject/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: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e23a137e1c142c47bf151c45dc1fd22 3 | folderAsset: yes 4 | timeCreated: 1498727982 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 117ee74dcd4d87e45a1e435227806b7f 3 | folderAsset: yes 4 | timeCreated: 1498728276 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/abc.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2e0fbf096e77994aac6df5fa463d93a 3 | timeCreated: 1498733993 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: abc.assetbundle 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e751521a883d64c429b4668e49456d6f 3 | folderAsset: yes 4 | timeCreated: 1498727384 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e909f6c52e32b24993e4bab04b4d29f 3 | folderAsset: yes 4 | timeCreated: 1498730251 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15f4483fb3d30ea419360dc882496973 3 | folderAsset: yes 4 | timeCreated: 1498730208 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6d70d0101e026145ae8ecc211f2a3b0 3 | folderAsset: yes 4 | timeCreated: 1498726789 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5065fab78b51e3647b4c6d1c7cba7202 3 | folderAsset: yes 4 | timeCreated: 1498727384 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/Materials/No Name.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5d5f6aa83b22ea44b33863cc690ca33 3 | timeCreated: 1498730208 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: ab/emat.assetbundle 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ccf01a30f9ae2fa419f9f11b21b30e84 3 | folderAsset: yes 4 | timeCreated: 1498726796 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Analyze.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cfadfd2d3bcf0f469574aa20c07609e 3 | folderAsset: yes 4 | timeCreated: 1499045860 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Reporter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a385e40847f3c042811e3f57c46b965 3 | folderAsset: yes 4 | timeCreated: 1499045860 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/Editor/BuildBundles.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d036b1f6b8979340a85cd6bdf01be9c 3 | timeCreated: 1498732732 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/AssetFileInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a981eb33be4dd914aa3dd74ef2d01d64 3 | timeCreated: 1498739304 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/AssetFileInfoType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c82e2aefe1834148b388788bc0c8fcb 3 | timeCreated: 1498804711 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/AssetBundleFileInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 375d3d1a24c96ba40ab809caace5c6ac 3 | timeCreated: 1498730142 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/AssetBundleReporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 331a830617d357c4f9adea5cdd79be2d 3 | timeCreated: 1498727390 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Analyze/AssetBundleFilesAnalyze.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb0d89a8d0fb31a4b8689478027423b9 3 | timeCreated: 1498730142 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Reporter/AssetBundleResReporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e5011c0003475c4085881ddd9f0c6f6 3 | timeCreated: 1499045860 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Analyze/AssetBundleFilesAnalyzeObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03f32eb118aa8ca4db8a9a914b964bd6 3 | timeCreated: 1499048920 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Analyze/AssetBundleFilesAnalyzeScene.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a76fef8d17eb6443818a49e083256aa 3 | timeCreated: 1500094618 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Reporter/AssetBundleDetailsReporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ea074dc9fbb8be458cd52af8191778e 3 | timeCreated: 1499045860 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Reporter/AssetBundleFilesReporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ae21135fa3958743a97db0457151de5 3 | timeCreated: 1499045860 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Reporter/AssetBundlePropertyReporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8043ada8cb0a4cf498512aff8b9ae99c 3 | timeCreated: 1499061869 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ReporterProject/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 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Visual Studio 2015 cache directory 9 | /.vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | 26 | # Unity3D generated meta files 27 | *.pidb.meta 28 | 29 | # Unity3D Generated File On Crash Reports 30 | sysinfo.txt 31 | 32 | # Builds 33 | *.apk 34 | *.unitypackage 35 | -------------------------------------------------------------------------------- /ReporterProject/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: 2 13 | m_SpritePackerPaddingPower: 1 14 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 15 | m_ProjectGenerationRootNamespace: 16 | -------------------------------------------------------------------------------- /ReporterProject/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 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/Drawing/Editor/System.Drawing.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e677266243636e47bfd89b6443df780 3 | timeCreated: 1498727983 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 0 13 | settings: {} 14 | Editor: 15 | enabled: 1 16 | settings: 17 | DefaultValueInitialized: true 18 | WindowsStoreApps: 19 | enabled: 0 20 | settings: 21 | CPU: AnyCPU 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /ReporterProject/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 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_SolverIterationCount: 6 13 | m_SolverVelocityIterations: 1 14 | m_QueriesHitTriggers: 1 15 | m_EnableAdaptiveForce: 0 16 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 17 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus/Editor/EPPlus.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbecfee13ba114a489360f2d914037ae 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus/Editor/EPPlus.Interfaces.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b69b4e04988d9f649aef8bf758ff00d4 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus/Editor/EPPlus.System.Drawing.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2e0853987039534d84b61c2e828d6c2 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Depend/EPPlus/Editor/Microsoft.IO.RecyclableMemoryStream.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8f196c907321ea429d79d9c1dd540e0 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/AssetFileInfoType.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | namespace WuHuan 5 | { 6 | public static class AssetFileInfoType 7 | { 8 | public static readonly string mesh = "Mesh"; 9 | public static readonly string material = "Material"; 10 | public static readonly string texture2D = "Texture2D"; 11 | public static readonly string shader = "Shader"; 12 | public static readonly string sprite = "Sprite"; 13 | public static readonly string monoScript = "MonoScript"; 14 | public static readonly string animatorController = "AnimatorController"; 15 | public static readonly string animatorOverrideController = "AnimatorOverrideController"; 16 | public static readonly string animationClip = "AnimationClip"; 17 | public static readonly string audioClip = "AudioClip"; 18 | public static readonly string font = "Font"; 19 | } 20 | } -------------------------------------------------------------------------------- /ReporterProject/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 WuHuan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/AssetFileInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace WuHuan 4 | { 5 | /// 6 | /// 资产文件信息 7 | /// 8 | public class AssetFileInfo 9 | { 10 | /// 11 | /// 资产名称(有可能重名) 12 | /// 13 | public string name; 14 | 15 | /// 16 | /// 唯一ID 17 | /// 需要取得 PathID 才能确保唯一性 18 | /// 19 | public long guid; 20 | 21 | /// 22 | /// 类型 23 | /// 24 | public string type; 25 | 26 | /// 27 | /// 属性 28 | /// 29 | public List> propertys; 30 | 31 | /// 32 | /// 被包含所在的AssetBundle文件名称列表 33 | /// 34 | public HashSet includedBundles = new HashSet(); 35 | 36 | /// 37 | /// Excel 工作簿的详细链接 38 | /// 39 | public OfficeOpenXml.ExcelHyperLink detailHyperLink; 40 | 41 | public override string ToString() 42 | { 43 | return name; 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /ReporterProject/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: Walkable 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 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/abc.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &100100000 4 | Prefab: 5 | m_ObjectHideFlags: 1 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: [] 10 | m_RemovedComponents: [] 11 | m_ParentPrefab: {fileID: 0} 12 | m_RootGameObject: {fileID: 1000012914330492} 13 | m_IsPrefabParent: 1 14 | --- !u!1 &1000012914330492 15 | GameObject: 16 | m_ObjectHideFlags: 0 17 | m_PrefabParentObject: {fileID: 0} 18 | m_PrefabInternal: {fileID: 100100000} 19 | serializedVersion: 4 20 | m_Component: 21 | - 4: {fileID: 4000014107249496} 22 | m_Layer: 0 23 | m_Name: abc 24 | m_TagString: Untagged 25 | m_Icon: {fileID: 0} 26 | m_NavMeshLayer: 0 27 | m_StaticEditorFlags: 0 28 | m_IsActive: 1 29 | --- !u!4 &4000014107249496 30 | Transform: 31 | m_ObjectHideFlags: 1 32 | m_PrefabParentObject: {fileID: 0} 33 | m_PrefabInternal: {fileID: 100100000} 34 | m_GameObject: {fileID: 1000012914330492} 35 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 36 | m_LocalPosition: {x: 0, y: 0, z: 0} 37 | m_LocalScale: {x: 1, y: 1, z: 1} 38 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 39 | m_Children: [] 40 | m_Father: {fileID: 0} 41 | m_RootOrder: 0 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unity AssetBundle Reporter 2 | Unity AssetBundle 冗余检测与资源分析 3 | ![](http://img.blog.csdn.net/20170930130444977) 4 | 5 | ## 原因 6 | 在使用 Unity 进行开发项目时,通常使用 AssetBundle 来进行资源打包,虽然在 Unity 5.x 版本里提供了更加智能的依赖自动管理,即如果依赖的资源没有显式设置 AssetBundle 名称,那么就会被隐式地打包到同一个 AssetBundle 包里面。而如果已经设置的话,那么就会自动生成依赖关系。 7 | 8 | 那么当被依赖的资源没有独立打包时,而此时又存在两个或以上 AssetBundle 依赖此资源的话,这个资源就会被同时打包到这些 AssetBundle 包里面,造成资源冗余,增大 AssetBundle 包的体积,增加游戏加载 AssetBundle 时所需的内存。 9 | 10 | 于是,检测 AssetBundle 资源的冗余,才好方便对其进行优化。检测冗余可以在未打包前对将要打包的资源做分析,但是这无法完全保证打包之后的 AssetBundle 完全无冗余,一是分析时无法保证正确无冗余,二是引用的内置资源无法剔除冗余,所以对打包之后的 AssetBundle 包进行检测才真正检查到所有的冗余。 11 | 12 | ## 实现过程 13 | 详见 http://blog.csdn.net/akof1314/article/details/78141789 14 | 15 | ## 支持平台 16 | 目前仅支持 Windows 平台,Mac 平台需自行解决 gdiplus.dll 报错问题。 17 | 18 | ## 使用说明 19 | 将插件包导入到工程,打包 AssetBundle 之后,调用检测的接口,如下所示: 20 | ``` 21 | /// 22 | /// 分析打印 AssetBundle 23 | /// 24 | /// AssetBundle 文件所在文件夹路径 25 | /// Excel 报告文件保存路径 26 | /// 分析打印完毕后的回调 27 | public static void AnalyzePrint(string bundlePath, string outputPath, UnityAction completed = null) 28 | ``` 29 | 传入所需的参数即可,等待输出报告。另外注意一点,打包完 AssetBundle 就立即检测,这样才能在分析 AssetBundle 的时候,获取到正确的自定义脚本类信息,才能分析完全。过后再检测的话,自定义的脚本类可能被其他人所修改,那么就无法分析正确。Unity 5.4+ 支持场景资源分析,Unity 4.X ~ Unity 5.3 只支持非场景资源分析。 -------------------------------------------------------------------------------- /ReporterProject/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 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_AlwaysShowColliders: 0 26 | m_ShowColliderSleep: 1 27 | m_ShowColliderContacts: 0 28 | m_ContactArrowScale: 0.2 29 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 30 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 31 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 32 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 33 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/Materials/xb_a.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a44c382ab9335142b3e670a9d18646a 3 | timeCreated: 1498732666 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | spriteMode: 0 41 | spriteExtrude: 1 42 | spriteMeshType: 1 43 | alignment: 0 44 | spritePivot: {x: 0.5, y: 0.5} 45 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 46 | spritePixelsToUnits: 100 47 | alphaIsTransparency: 0 48 | spriteTessellationDetail: -1 49 | textureType: -1 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | serializedVersion: 2 53 | sprites: [] 54 | outline: [] 55 | spritePackingTag: 56 | userData: 57 | assetBundleName: 58 | assetBundleVariant: 59 | -------------------------------------------------------------------------------- /ReporterProject/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "3.2.3", 5 | "com.unity.collab-proxy": "1.2.15", 6 | "com.unity.package-manager-ui": "2.0.13", 7 | "com.unity.purchasing": "2.2.1", 8 | "com.unity.textmeshpro": "1.4.1", 9 | "com.unity.modules.ai": "1.0.0", 10 | "com.unity.modules.animation": "1.0.0", 11 | "com.unity.modules.assetbundle": "1.0.0", 12 | "com.unity.modules.audio": "1.0.0", 13 | "com.unity.modules.cloth": "1.0.0", 14 | "com.unity.modules.director": "1.0.0", 15 | "com.unity.modules.imageconversion": "1.0.0", 16 | "com.unity.modules.imgui": "1.0.0", 17 | "com.unity.modules.jsonserialize": "1.0.0", 18 | "com.unity.modules.particlesystem": "1.0.0", 19 | "com.unity.modules.physics": "1.0.0", 20 | "com.unity.modules.physics2d": "1.0.0", 21 | "com.unity.modules.screencapture": "1.0.0", 22 | "com.unity.modules.terrain": "1.0.0", 23 | "com.unity.modules.terrainphysics": "1.0.0", 24 | "com.unity.modules.tilemap": "1.0.0", 25 | "com.unity.modules.ui": "1.0.0", 26 | "com.unity.modules.uielements": "1.0.0", 27 | "com.unity.modules.umbra": "1.0.0", 28 | "com.unity.modules.unityanalytics": "1.0.0", 29 | "com.unity.modules.unitywebrequest": "1.0.0", 30 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 31 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 32 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 33 | "com.unity.modules.unitywebrequestwww": "1.0.0", 34 | "com.unity.modules.vehicles": "1.0.0", 35 | "com.unity.modules.video": "1.0.0", 36 | "com.unity.modules.vr": "1.0.0", 37 | "com.unity.modules.wind": "1.0.0", 38 | "com.unity.modules.xr": "1.0.0" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /ReporterProject/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: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 40 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 41 | m_PreloadedShaders: [] 42 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 43 | type: 0} 44 | m_CustomRenderPipeline: {fileID: 0} 45 | m_TransparencySortMode: 0 46 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 47 | m_DefaultRenderingPath: 1 48 | m_DefaultMobileRenderingPath: 1 49 | m_TierSettings: [] 50 | m_LightmapStripping: 0 51 | m_FogStripping: 0 52 | m_InstancingStripping: 0 53 | m_LightmapKeepPlain: 1 54 | m_LightmapKeepDirCombined: 1 55 | m_LightmapKeepDynamicPlain: 1 56 | m_LightmapKeepDynamicDirCombined: 1 57 | m_LightmapKeepShadowMask: 1 58 | m_LightmapKeepSubtractive: 1 59 | m_FogKeepLinear: 1 60 | m_FogKeepExp: 1 61 | m_FogKeepExp2: 1 62 | m_AlbedoSwatchInfos: [] 63 | m_LightsUseLinearIntensity: 0 64 | m_LightsUseColorTemperature: 0 65 | m_LogWhenShaderIsCompiled: 0 66 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/AssetBundleFileInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace WuHuan 6 | { 7 | /// 8 | /// AB 文件信息 9 | /// 10 | public class AssetBundleFileInfo 11 | { 12 | /// 13 | /// 名称(不会重名) 14 | /// 15 | public string name; 16 | 17 | /// 18 | /// 文件路径 19 | /// 20 | public string path; 21 | 22 | /// 23 | /// 根路径 24 | /// 25 | public string rootPath; 26 | 27 | /// 28 | /// 文件大小 29 | /// 30 | public long size; 31 | 32 | /// 33 | /// 直接依赖的AssetBundle列表 34 | /// 35 | public string[] directDepends; 36 | 37 | /// 38 | /// 所有依赖的AssetBundle列表 39 | /// 40 | public string[] allDepends; 41 | 42 | /// 43 | /// 所有被依赖的AssetBundle列表 44 | /// 45 | public string[] beDepends; 46 | 47 | /// 48 | /// 包含的资源名称 49 | /// 50 | public List assets = new List(); 51 | 52 | /// 53 | /// Excel 工作簿的详细链接 54 | /// 55 | public OfficeOpenXml.ExcelHyperLink detailHyperLink; 56 | 57 | /// 58 | /// 包含的全部对象字典(方便不会重复添加) 59 | /// 60 | public Dictionary objDict = new Dictionary(); 61 | 62 | /// 63 | /// 是否是场景 AB 包 64 | /// 65 | public bool isScene; 66 | 67 | public override string ToString() 68 | { 69 | return name; 70 | } 71 | 72 | /// 73 | /// 获取相同类型的资产数量 74 | /// 75 | /// 76 | /// 77 | public int GetAssetCount(string type) 78 | { 79 | int count = 0; 80 | foreach (var info in assets) 81 | { 82 | if (info.type == type) 83 | { 84 | count++; 85 | } 86 | } 87 | return count; 88 | } 89 | 90 | public bool IsAssetContain(long guid) 91 | { 92 | foreach (var asset in assets) 93 | { 94 | if (asset.guid == guid) 95 | { 96 | return true; 97 | } 98 | } 99 | return false; 100 | } 101 | } 102 | } -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/Editor/BuildBundles.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System.IO; 6 | using System.Reflection; 7 | using UnityEditor; 8 | using WuHuan; 9 | 10 | public class BuildBundles 11 | { 12 | [MenuItem("Tool/Build AssetBundle")] 13 | public static void Build() 14 | { 15 | string path = EditorUtility.SaveFolderPanel("AssetBundle 保存目录", "", ""); 16 | if (string.IsNullOrEmpty(path)) 17 | { 18 | return; 19 | } 20 | 21 | path = Path.Combine(path, GetBuildTarget().ToString()); 22 | if (!Directory.Exists(path)) 23 | { 24 | Directory.CreateDirectory(path); 25 | } 26 | #if UNITY_5 || UNITY_5_3_OR_NEWER 27 | BuildPipeline.BuildAssetBundles(path, BuildAssetBundleOptions.UncompressedAssetBundle, GetBuildTarget()); 28 | #else 29 | path += "/all.assetbundle"; 30 | UnityEngine.Object[] selectedAsset = Selection.GetFiltered(typeof(UnityEngine.Object), SelectionMode.DeepAssets); 31 | BuildPipeline.BuildAssetBundle(null, selectedAsset, path, BuildAssetBundleOptions.CollectDependencies, GetBuildTarget()); 32 | #endif 33 | } 34 | 35 | public static BuildTarget GetBuildTarget() 36 | { 37 | return EditorUserBuildSettings.activeBuildTarget; 38 | } 39 | 40 | [MenuItem("Tool/Build Reporter")] 41 | public static void Reporter() 42 | { 43 | //WuHuan.AssetBundleFilesAnalyze.analyzeExport = true; 44 | //WuHuan.AssetBundleFilesAnalyze.analyzeOnlyScene = true; 45 | string directoryPath = Path.GetDirectoryName(Application.dataPath); 46 | string bundlePath = Path.Combine(directoryPath, GetBuildTarget().ToString()); 47 | string outputPath = Path.Combine(directoryPath, GetBuildTarget().ToString() + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".xlsx"); 48 | WuHuan.AssetBundleReporter.AnalyzePrint(bundlePath, outputPath, () => System.Diagnostics.Process.Start(outputPath)); 49 | } 50 | 51 | public static void MyAnalyzeCustomDepend() 52 | { 53 | AssetBundleFilesAnalyze.analyzeExport = true; 54 | AssetBundleFilesAnalyze.analyzeCustomDepend = directoryPath => 55 | { 56 | List infos = new List(); 57 | 58 | // 添加每个 AssetBundle 信息 59 | AssetBundleFileInfo info = new AssetBundleFileInfo 60 | { 61 | //name = bundle, 62 | //path = path, 63 | //rootPath = directoryPath, 64 | //size = new FileInfo(path).Length, 65 | //directDepends = assetBundleManifest.GetDirectDependencies(bundle), 66 | //allDepends = assetBundleManifest.GetAllDependencies(bundle) 67 | }; 68 | infos.Add(info); 69 | 70 | return infos; 71 | }; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/cone.FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74bbb878a45c2c64ca37a1a38a9c2bb1 3 | ModelImporter: 4 | serializedVersion: 23 5 | fileIDToRecycleName: 6 | 100000: //RootNode 7 | 400000: //RootNode 8 | 2300000: //RootNode 9 | 3300000: //RootNode 10 | 4300000: cone 11 | 2186277476908879412: ImportLogs 12 | externalObjects: 13 | - first: 14 | type: UnityEngine:Material 15 | assembly: UnityEngine.CoreModule 16 | name: No Name 17 | second: {fileID: 2100000, guid: e5d5f6aa83b22ea44b33863cc690ca33, type: 2} 18 | materials: 19 | importMaterials: 1 20 | materialName: 0 21 | materialSearch: 1 22 | materialLocation: 0 23 | animations: 24 | legacyGenerateAnimations: 4 25 | bakeSimulation: 0 26 | resampleCurves: 1 27 | optimizeGameObjects: 0 28 | motionNodeName: 29 | rigImportErrors: 30 | rigImportWarnings: 31 | animationImportErrors: 32 | animationImportWarnings: 33 | animationRetargetingWarnings: 34 | animationDoRetargetingWarnings: 0 35 | importAnimatedCustomProperties: 0 36 | importConstraints: 0 37 | animationCompression: 1 38 | animationRotationError: 0.5 39 | animationPositionError: 0.5 40 | animationScaleError: 0.5 41 | animationWrapMode: 0 42 | extraExposedTransformPaths: [] 43 | extraUserProperties: [] 44 | clipAnimations: [] 45 | isReadable: 1 46 | meshes: 47 | lODScreenPercentages: [] 48 | globalScale: 1 49 | meshCompression: 0 50 | addColliders: 0 51 | useSRGBMaterialColor: 1 52 | importVisibility: 0 53 | importBlendShapes: 1 54 | importCameras: 0 55 | importLights: 0 56 | swapUVChannels: 0 57 | generateSecondaryUV: 0 58 | useFileUnits: 1 59 | optimizeMeshForGPU: 1 60 | keepQuads: 0 61 | weldVertices: 1 62 | preserveHierarchy: 0 63 | indexFormat: 1 64 | secondaryUVAngleDistortion: 8 65 | secondaryUVAreaDistortion: 15.000001 66 | secondaryUVHardAngle: 88 67 | secondaryUVPackMargin: 4 68 | useFileScale: 1 69 | previousCalculatedGlobalScale: 1 70 | hasPreviousCalculatedGlobalScale: 0 71 | tangentSpace: 72 | normalSmoothAngle: 60 73 | normalImportMode: 0 74 | tangentImportMode: 3 75 | normalCalculationMode: 0 76 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1 77 | blendShapeNormalImportMode: 1 78 | normalSmoothingSource: 0 79 | importAnimation: 1 80 | copyAvatar: 0 81 | humanDescription: 82 | serializedVersion: 2 83 | human: [] 84 | skeleton: [] 85 | armTwist: 0.5 86 | foreArmTwist: 0.5 87 | upperLegTwist: 0.5 88 | legTwist: 0.5 89 | armStretch: 0.05 90 | legStretch: 0.05 91 | feetSpacing: 0 92 | rootMotionBoneName: 93 | hasTranslationDoF: 0 94 | hasExtraRoot: 0 95 | skeletonHasParents: 0 96 | lastHumanDescriptionAvatarSource: {instanceID: 0} 97 | animationType: 0 98 | humanoidOversampling: 1 99 | additionalBone: 0 100 | userData: 101 | assetBundleName: cone.assetbundle 102 | assetBundleVariant: 103 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Reporter/AssetBundleResReporter.cs: -------------------------------------------------------------------------------- 1 | using System.Drawing; 2 | using OfficeOpenXml; 3 | using OfficeOpenXml.Style; 4 | 5 | namespace WuHuan 6 | { 7 | public static class AssetBundleResReporter 8 | { 9 | public static void CreateWorksheet(ExcelWorksheets wss) 10 | { 11 | ExcelWorksheet ws = wss.Add("资源列表"); 12 | 13 | // 标签颜色 14 | ws.TabColor = ColorTranslator.FromHtml("#70ad47"); 15 | AssetBundleReporter.CreateWorksheetBase(ws, "全部资源列表", 4); 16 | 17 | // 列头 18 | ws.Cells[2, 1].Value = "资源名称"; 19 | ws.Cells[2, 2].Value = "资源类型"; 20 | ws.Cells[2, 3].Value = "AB文件数量"; 21 | ws.Cells[2, 4].Value = "相应的AB文件"; 22 | 23 | using (var range = ws.Cells[2, 1, 2, 4]) 24 | { 25 | // 字体样式 26 | range.Style.Font.Bold = true; 27 | 28 | // 背景颜色 29 | range.Style.Fill.PatternType = ExcelFillStyle.Solid; 30 | range.Style.Fill.BackgroundColor.SetColor(ColorTranslator.FromHtml("#DDEBF7")); 31 | 32 | // 开启自动筛选 33 | range.AutoFilter = true; 34 | } 35 | 36 | // 列宽 37 | ws.Column(1).Width = 50; 38 | ws.Column(2).Width = 30; 39 | ws.Column(3).Width = 15; 40 | ws.Column(3).Style.HorizontalAlignment = ExcelHorizontalAlignment.Left; 41 | 42 | // 冻结前两行 43 | ws.View.FreezePanes(3, 1); 44 | } 45 | 46 | public static void FillWorksheet(ExcelWorksheet ws) 47 | { 48 | int startRow = 3; 49 | int maxCol = 4; 50 | 51 | var dicts = AssetBundleFilesAnalyze.GetAllAssetFileInfo(); 52 | if (dicts == null) 53 | { 54 | ws.Cells[1, 1].Value = ws.Cells[1, 1].Value + " (0)"; 55 | } 56 | else 57 | { 58 | foreach (var info in dicts.Values) 59 | { 60 | ws.Cells[startRow, 1].Value = info.name; 61 | ws.Cells[startRow, 2].Value = info.type; 62 | ws.Cells[startRow, 3].Value = info.includedBundles.Count; 63 | 64 | info.detailHyperLink.ReferenceAddress = ws.Cells[startRow, 1].FullAddress; 65 | 66 | int startCol = 4; 67 | foreach (var bundleFileInfo in info.includedBundles) 68 | { 69 | ws.Cells[startRow, startCol].Value = bundleFileInfo.name; 70 | ws.Cells[startRow, startCol++].Hyperlink = bundleFileInfo.detailHyperLink; 71 | } 72 | maxCol = System.Math.Max(--startCol, maxCol); 73 | startRow++; 74 | } 75 | 76 | ws.Cells[1, 1].Value = ws.Cells[1, 1].Value + " (" + dicts.Values.Count + ")"; 77 | } 78 | 79 | // 具体所需要的列 80 | using (var range = ws.Cells[2, 4, 2, maxCol]) 81 | { 82 | range.Merge = true; 83 | } 84 | for (int i = 4; i <= maxCol; i++) 85 | { 86 | ws.Column(i).Width = 100; 87 | } 88 | } 89 | } 90 | } -------------------------------------------------------------------------------- /ReporterProject/Assets/Sample/Materials/No Name.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: No Name 10 | m_Shader: {fileID: 10703, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DetailAlbedoMap 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailMask 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailNormalMap 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _EmissionMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 1, y: 1} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _MainTex 50 | second: 51 | m_Texture: {fileID: 2800000, guid: 6a44c382ab9335142b3e670a9d18646a, type: 3} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _MetallicGlossMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _OcclusionMap 62 | second: 63 | m_Texture: {fileID: 0} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _ParallaxMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | m_Floats: 73 | - first: 74 | name: _BumpScale 75 | second: 1 76 | - first: 77 | name: _Cutoff 78 | second: 0.5 79 | - first: 80 | name: _DetailNormalMapScale 81 | second: 1 82 | - first: 83 | name: _DstBlend 84 | second: 0 85 | - first: 86 | name: _GlossMapScale 87 | second: 1 88 | - first: 89 | name: _Glossiness 90 | second: 0.5 91 | - first: 92 | name: _GlossyReflections 93 | second: 1 94 | - first: 95 | name: _Metallic 96 | second: 0 97 | - first: 98 | name: _Mode 99 | second: 0 100 | - first: 101 | name: _OcclusionStrength 102 | second: 1 103 | - first: 104 | name: _Parallax 105 | second: 0.02 106 | - first: 107 | name: _SmoothnessTextureChannel 108 | second: 0 109 | - first: 110 | name: _SpecularHighlights 111 | second: 1 112 | - first: 113 | name: _SrcBlend 114 | second: 1 115 | - first: 116 | name: _UVSec 117 | second: 0 118 | - first: 119 | name: _ZWrite 120 | second: 1 121 | m_Colors: 122 | - first: 123 | name: _Color 124 | second: {r: 1, g: 1, b: 1, a: 1} 125 | - first: 126 | name: _EmissionColor 127 | second: {r: 0, g: 0, b: 0, a: 1} 128 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/AssetBundleReporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Drawing; 4 | using OfficeOpenXml; 5 | using OfficeOpenXml.Style; 6 | using UnityEditor; 7 | using UnityEngine.Events; 8 | 9 | namespace WuHuan 10 | { 11 | /// 12 | /// AssetBundle报告 13 | /// 生成各个资源的报告Excel 14 | /// 15 | public class AssetBundleReporter 16 | { 17 | [MenuItem("Window/AssetBundleReporter")] 18 | public static void AnalyzePrintCmd() 19 | { 20 | string path = EditorUtility.OpenFolderPanel("AssetBundle 保存目录", "", ""); 21 | if (string.IsNullOrEmpty(path)) 22 | { 23 | return; 24 | } 25 | 26 | string bundlePath = path; 27 | string outputPath = Path.Combine(path, "AssetBundle报告" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".xlsx"); 28 | AnalyzePrint(bundlePath, outputPath); 29 | } 30 | 31 | /// 32 | /// 分析打印 AssetBundle 33 | /// 34 | /// AssetBundle 文件所在文件夹路径 35 | /// Excel 报告文件保存路径 36 | /// 分析打印完毕后的回调 37 | public static void AnalyzePrint(string bundlePath, string outputPath, UnityAction completed = null) 38 | { 39 | AssetBundleFilesAnalyze.analyzeCompleted = () => 40 | { 41 | PrintToExcel(outputPath); 42 | if (completed != null) 43 | { 44 | completed(); 45 | } 46 | }; 47 | 48 | EditorUtility.DisplayProgressBar("AssetBundle报告", "正在分析 AssetBundle 文件...", 0.35f); 49 | if (!AssetBundleFilesAnalyze.Analyze(bundlePath)) 50 | { 51 | EditorUtility.ClearProgressBar(); 52 | } 53 | } 54 | 55 | public static void PrintToExcel(string outputPath) 56 | { 57 | EditorUtility.DisplayProgressBar("AssetBundle报告", "正在写入 Excel 文件...", 0.85f); 58 | var newFile = new FileInfo(outputPath); 59 | if (newFile.Exists) 60 | { 61 | newFile.Delete(); 62 | } 63 | 64 | using (var package = new ExcelPackage(newFile)) 65 | { 66 | AssetBundleFilesReporter.CreateWorksheet(package.Workbook.Worksheets); 67 | AssetBundleDetailsReporter.CreateWorksheet(package.Workbook.Worksheets); 68 | AssetBundleResReporter.CreateWorksheet(package.Workbook.Worksheets); 69 | 70 | AssetBundleFilesReporter.FillWorksheet(package.Workbook.Worksheets[0]); 71 | AssetBundleDetailsReporter.FillWorksheet(package.Workbook.Worksheets[1]); 72 | AssetBundleResReporter.FillWorksheet(package.Workbook.Worksheets[2]); 73 | 74 | AssetBundlePropertyReporter.CreateAndFillWorksheet(package.Workbook.Worksheets, AssetFileInfoType.mesh); 75 | AssetBundlePropertyReporter.CreateAndFillWorksheet(package.Workbook.Worksheets, AssetFileInfoType.texture2D); 76 | AssetBundlePropertyReporter.CreateAndFillWorksheet(package.Workbook.Worksheets, AssetFileInfoType.material); 77 | AssetBundlePropertyReporter.CreateAndFillWorksheet(package.Workbook.Worksheets, AssetFileInfoType.animationClip); 78 | AssetBundlePropertyReporter.CreateAndFillWorksheet(package.Workbook.Worksheets, AssetFileInfoType.audioClip); 79 | 80 | package.Save(); 81 | } 82 | 83 | AssetBundleFilesAnalyze.Clear(); 84 | EditorUtility.ClearProgressBar(); 85 | } 86 | 87 | public static void CreateWorksheetBase(ExcelWorksheet ws, string title, int colCount) 88 | { 89 | // 全体颜色 90 | ws.Cells.Style.Font.Color.SetColor(ColorTranslator.FromHtml("#3d4d65")); 91 | { 92 | // 边框样式 93 | var border = ws.Cells.Style.Border; 94 | border.Bottom.Style = border.Top.Style = border.Left.Style = border.Right.Style 95 | = ExcelBorderStyle.Thin; 96 | 97 | // 边框颜色 98 | var clr = ColorTranslator.FromHtml("#B2C6C9"); 99 | border.Bottom.Color.SetColor(clr); 100 | border.Top.Color.SetColor(clr); 101 | border.Left.Color.SetColor(clr); 102 | border.Right.Color.SetColor(clr); 103 | } 104 | 105 | // 标题 106 | ws.Cells[1, 1].Value = title; 107 | using (var range = ws.Cells[1, 1, 1, colCount]) 108 | { 109 | range.Merge = true; 110 | range.Style.Font.Bold = true; 111 | range.Style.HorizontalAlignment = ExcelHorizontalAlignment.Center; 112 | range.Style.VerticalAlignment = ExcelVerticalAlignment.Center; 113 | } 114 | ws.Row(1).Height = 30; 115 | } 116 | } 117 | } -------------------------------------------------------------------------------- /ReporterProject/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: 5 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 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | blendWeights: 1 21 | textureQuality: 1 22 | anisotropicTextures: 0 23 | antiAliasing: 0 24 | softParticles: 0 25 | softVegetation: 0 26 | realtimeReflectionProbes: 0 27 | billboardsFaceCameraPosition: 0 28 | vSyncCount: 0 29 | lodBias: 0.3 30 | maximumLODLevel: 0 31 | particleRaycastBudget: 4 32 | asyncUploadTimeSlice: 2 33 | asyncUploadBufferSize: 4 34 | excludedTargetPlatforms: [] 35 | - serializedVersion: 2 36 | name: Fast 37 | pixelLightCount: 0 38 | shadows: 0 39 | shadowResolution: 0 40 | shadowProjection: 1 41 | shadowCascades: 1 42 | shadowDistance: 20 43 | shadowNearPlaneOffset: 2 44 | shadowCascade2Split: 0.33333334 45 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 46 | blendWeights: 2 47 | textureQuality: 0 48 | anisotropicTextures: 0 49 | antiAliasing: 0 50 | softParticles: 0 51 | softVegetation: 0 52 | realtimeReflectionProbes: 0 53 | billboardsFaceCameraPosition: 0 54 | vSyncCount: 0 55 | lodBias: 0.4 56 | maximumLODLevel: 0 57 | particleRaycastBudget: 16 58 | asyncUploadTimeSlice: 2 59 | asyncUploadBufferSize: 4 60 | excludedTargetPlatforms: [] 61 | - serializedVersion: 2 62 | name: Simple 63 | pixelLightCount: 1 64 | shadows: 1 65 | shadowResolution: 0 66 | shadowProjection: 1 67 | shadowCascades: 1 68 | shadowDistance: 20 69 | shadowNearPlaneOffset: 2 70 | shadowCascade2Split: 0.33333334 71 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 72 | blendWeights: 2 73 | textureQuality: 0 74 | anisotropicTextures: 1 75 | antiAliasing: 0 76 | softParticles: 0 77 | softVegetation: 0 78 | realtimeReflectionProbes: 0 79 | billboardsFaceCameraPosition: 0 80 | vSyncCount: 1 81 | lodBias: 0.7 82 | maximumLODLevel: 0 83 | particleRaycastBudget: 64 84 | asyncUploadTimeSlice: 2 85 | asyncUploadBufferSize: 4 86 | excludedTargetPlatforms: [] 87 | - serializedVersion: 2 88 | name: Good 89 | pixelLightCount: 2 90 | shadows: 2 91 | shadowResolution: 1 92 | shadowProjection: 1 93 | shadowCascades: 2 94 | shadowDistance: 40 95 | shadowNearPlaneOffset: 2 96 | shadowCascade2Split: 0.33333334 97 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 98 | blendWeights: 2 99 | textureQuality: 0 100 | anisotropicTextures: 1 101 | antiAliasing: 0 102 | softParticles: 0 103 | softVegetation: 1 104 | realtimeReflectionProbes: 1 105 | billboardsFaceCameraPosition: 1 106 | vSyncCount: 1 107 | lodBias: 1 108 | maximumLODLevel: 0 109 | particleRaycastBudget: 256 110 | asyncUploadTimeSlice: 2 111 | asyncUploadBufferSize: 4 112 | excludedTargetPlatforms: [] 113 | - serializedVersion: 2 114 | name: Beautiful 115 | pixelLightCount: 3 116 | shadows: 2 117 | shadowResolution: 2 118 | shadowProjection: 1 119 | shadowCascades: 2 120 | shadowDistance: 70 121 | shadowNearPlaneOffset: 2 122 | shadowCascade2Split: 0.33333334 123 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 124 | blendWeights: 4 125 | textureQuality: 0 126 | anisotropicTextures: 2 127 | antiAliasing: 2 128 | softParticles: 1 129 | softVegetation: 1 130 | realtimeReflectionProbes: 1 131 | billboardsFaceCameraPosition: 1 132 | vSyncCount: 1 133 | lodBias: 1.5 134 | maximumLODLevel: 0 135 | particleRaycastBudget: 1024 136 | asyncUploadTimeSlice: 2 137 | asyncUploadBufferSize: 4 138 | excludedTargetPlatforms: [] 139 | - serializedVersion: 2 140 | name: Fantastic 141 | pixelLightCount: 4 142 | shadows: 2 143 | shadowResolution: 2 144 | shadowProjection: 1 145 | shadowCascades: 4 146 | shadowDistance: 150 147 | shadowNearPlaneOffset: 2 148 | shadowCascade2Split: 0.33333334 149 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 150 | blendWeights: 4 151 | textureQuality: 0 152 | anisotropicTextures: 2 153 | antiAliasing: 2 154 | softParticles: 1 155 | softVegetation: 1 156 | realtimeReflectionProbes: 1 157 | billboardsFaceCameraPosition: 1 158 | vSyncCount: 1 159 | lodBias: 2 160 | maximumLODLevel: 0 161 | particleRaycastBudget: 4096 162 | asyncUploadTimeSlice: 2 163 | asyncUploadBufferSize: 4 164 | excludedTargetPlatforms: [] 165 | m_PerPlatformDefaultQuality: 166 | Android: 2 167 | Nintendo 3DS: 5 168 | PS3: 5 169 | PS4: 5 170 | PSM: 5 171 | PSP2: 2 172 | Samsung TV: 2 173 | Standalone: 5 174 | Tizen: 2 175 | Web: 5 176 | WebGL: 3 177 | WiiU: 5 178 | Windows Store Apps: 5 179 | XBOX360: 5 180 | XboxOne: 5 181 | iPhone: 2 182 | tvOS: 5 183 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Reporter/AssetBundlePropertyReporter.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Drawing; 3 | using OfficeOpenXml; 4 | using OfficeOpenXml.Style; 5 | 6 | namespace WuHuan 7 | { 8 | public static class AssetBundlePropertyReporter 9 | { 10 | public static void CreateAndFillWorksheet(ExcelWorksheets wss, string typeName) 11 | { 12 | var dicts = AssetBundleFilesAnalyze.GetAllAssetFileInfo(); 13 | if (dicts == null) 14 | { 15 | return; 16 | } 17 | List columnNames = new List(); 18 | foreach (var info in dicts.Values) 19 | { 20 | if (info.type != typeName) 21 | { 22 | continue; 23 | } 24 | 25 | foreach (var pair in info.propertys) 26 | { 27 | columnNames.Add(pair.Key); 28 | } 29 | break; 30 | } 31 | 32 | if (columnNames.Count == 0) 33 | { 34 | return; 35 | } 36 | 37 | string titleName = typeName + " 列表"; 38 | ExcelWorksheet ws = wss.Add(titleName); 39 | 40 | int abCountCol = columnNames.Count + 2; 41 | int abDetailCol = columnNames.Count + 3; 42 | 43 | // 标签颜色 44 | ws.TabColor = ColorTranslator.FromHtml("#b490f5"); 45 | AssetBundleReporter.CreateWorksheetBase(ws, titleName, abDetailCol); 46 | 47 | // 列头 48 | ws.Cells[2, 1].Value = "资源名称"; 49 | for (int i = 0; i < columnNames.Count; i++) 50 | { 51 | ws.Cells[2, i + 2].Value = columnNames[i]; 52 | } 53 | ws.Cells[2, abCountCol].Value = "AB文件数量"; 54 | ws.Cells[2, abDetailCol].Value = "相应的AB文件"; 55 | 56 | using (var range = ws.Cells[2, 1, 2, abDetailCol]) 57 | { 58 | // 字体样式 59 | range.Style.Font.Bold = true; 60 | 61 | // 背景颜色 62 | range.Style.Fill.PatternType = ExcelFillStyle.Solid; 63 | range.Style.Fill.BackgroundColor.SetColor(ColorTranslator.FromHtml("#DDEBF7")); 64 | 65 | // 开启自动筛选 66 | range.AutoFilter = true; 67 | } 68 | 69 | // 列宽 70 | ws.Column(1).Width = 50; 71 | for (int i = 0; i < columnNames.Count; i++) 72 | { 73 | ws.Column(2 + i).Width = 15; 74 | ws.Column(2 + i).Style.HorizontalAlignment = ExcelHorizontalAlignment.Left; 75 | ws.Column(2 + i).Style.VerticalAlignment = ExcelVerticalAlignment.Top; 76 | } 77 | ws.Column(abCountCol).Width = 15; 78 | ws.Column(abCountCol).Style.HorizontalAlignment = ExcelHorizontalAlignment.Left; 79 | ws.Column(abCountCol).Style.VerticalAlignment = ExcelVerticalAlignment.Top; 80 | 81 | // 冻结前两行 82 | ws.View.FreezePanes(3, 1); 83 | 84 | int startRow = 3; 85 | int maxCol = abDetailCol; 86 | 87 | foreach (var info in dicts.Values) 88 | { 89 | if (info.type != typeName) 90 | { 91 | continue; 92 | } 93 | 94 | ws.Cells[startRow, 1].Value = info.name; 95 | info.detailHyperLink.ReferenceAddress = ws.Cells[startRow, 1].FullAddress; 96 | 97 | int startCol = 2; 98 | foreach (var property in info.propertys) 99 | { 100 | ws.Cells[startRow, startCol++].Value = property.Value; 101 | } 102 | ws.Cells[startRow, startCol++].Value = info.includedBundles.Count; 103 | 104 | foreach (var bundleFileInfo in info.includedBundles) 105 | { 106 | ws.Cells[startRow, startCol].Value = bundleFileInfo.name; 107 | ws.Cells[startRow, startCol++].Hyperlink = bundleFileInfo.detailHyperLink; 108 | } 109 | maxCol = System.Math.Max(--startCol, maxCol); 110 | startRow++; 111 | } 112 | 113 | ws.Cells[1, 1].Value = ws.Cells[1, 1].Value + " (" + (startRow - 3) + ")"; 114 | 115 | // 具体所需要的列 116 | using (var range = ws.Cells[2, abDetailCol, 2, maxCol]) 117 | { 118 | range.Merge = true; 119 | } 120 | for (int i = abDetailCol; i <= maxCol; i++) 121 | { 122 | ws.Column(i).Width = 100; 123 | } 124 | 125 | // 不同类型不同处理 126 | switch (typeName) 127 | { 128 | case "Texture2D": 129 | ws.Column(7).Style.Numberformat.Format = "#,##0"; 130 | break; 131 | case "Material": 132 | ws.Column(2).Width = 40; 133 | ws.Column(3).Width = 50; 134 | break; 135 | case "AnimationClip": 136 | ws.Column(7).Style.Numberformat.Format = "#,##0"; 137 | break; 138 | case "AudioClip": 139 | ws.Column(2).Width = 23; 140 | break; 141 | } 142 | } 143 | } 144 | } -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Reporter/AssetBundleFilesReporter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Drawing; 4 | using OfficeOpenXml; 5 | using OfficeOpenXml.Style; 6 | 7 | namespace WuHuan 8 | { 9 | public static class AssetBundleFilesReporter 10 | { 11 | public static void CreateWorksheet(ExcelWorksheets wss) 12 | { 13 | ExcelWorksheet ws = wss.Add("AB文件列表"); 14 | 15 | // 标签颜色 16 | ws.TabColor = ColorTranslator.FromHtml("#32b1fa"); 17 | AssetBundleReporter.CreateWorksheetBase(ws, "AssetBundle 文件列表", 11); 18 | 19 | // 列头 20 | int colIndex = 1; 21 | ws.Cells[2, colIndex++].Value = "AssetBundle 名称"; 22 | ws.Cells[2, colIndex++].Value = "文件大小"; 23 | ws.Cells[2, colIndex++].Value = "依赖AB数"; 24 | ws.Cells[2, colIndex++].Value = "冗余资源数"; 25 | ws.Cells[2, colIndex++].Value = AssetFileInfoType.mesh; 26 | ws.Cells[2, colIndex++].Value = AssetFileInfoType.material; 27 | ws.Cells[2, colIndex++].Value = AssetFileInfoType.texture2D; 28 | ws.Cells[2, colIndex++].Value = AssetFileInfoType.sprite; 29 | ws.Cells[2, colIndex++].Value = AssetFileInfoType.shader; 30 | ws.Cells[2, colIndex++].Value = AssetFileInfoType.animationClip; 31 | ws.Cells[2, colIndex].Value = AssetFileInfoType.audioClip; 32 | 33 | using (var range = ws.Cells[2, 1, 2, colIndex]) 34 | { 35 | // 字体样式 36 | range.Style.Font.Bold = true; 37 | 38 | // 背景颜色 39 | range.Style.Fill.PatternType = ExcelFillStyle.Solid; 40 | range.Style.Fill.BackgroundColor.SetColor(ColorTranslator.FromHtml("#DDEBF7")); 41 | 42 | // 开启自动筛选 43 | range.AutoFilter = true; 44 | } 45 | 46 | // 列宽 47 | ws.Column(1).Width = 100; 48 | for (int i = 2; i <= colIndex; i++) 49 | { 50 | ws.Column(i).Width = 15; 51 | ws.Column(i).Style.HorizontalAlignment = ExcelHorizontalAlignment.Left; 52 | } 53 | ws.Column(10).Width = 16; 54 | ws.Column(2).Style.Numberformat.Format = "#,##0"; 55 | 56 | // 冻结前两行 57 | ws.View.FreezePanes(3, 1); 58 | } 59 | 60 | public static void FillWorksheet(ExcelWorksheet ws) 61 | { 62 | int startRow = 3; 63 | 64 | List infos = AssetBundleFilesAnalyze.GetAllAssetBundleFileInfos(); 65 | foreach (var info in infos) 66 | { 67 | int colIndex = 1; 68 | ws.Cells[startRow, colIndex].Value = info.name; 69 | info.detailHyperLink = new ExcelHyperLink(String.Empty, info.name); 70 | ws.Cells[startRow, colIndex++].Hyperlink = info.detailHyperLink; 71 | ws.Cells[startRow, colIndex++].Value = info.size; 72 | 73 | int count = info.allDepends.Length; 74 | if (count > 0) 75 | { 76 | ws.Cells[startRow, colIndex].Value = count; 77 | } 78 | 79 | colIndex++; 80 | count = 0; 81 | foreach (var asset in info.assets) 82 | { 83 | if (asset.includedBundles.Count > 1 && asset.type != AssetFileInfoType.monoScript) 84 | { 85 | count++; 86 | } 87 | } 88 | if (count > 0) 89 | { 90 | ws.Cells[startRow, colIndex].Value = count; 91 | } 92 | 93 | colIndex++; 94 | count = info.GetAssetCount(AssetFileInfoType.mesh); 95 | if (count > 0) 96 | { 97 | ws.Cells[startRow, colIndex].Value = count; 98 | } 99 | 100 | colIndex++; 101 | count = info.GetAssetCount(AssetFileInfoType.material); 102 | if (count > 0) 103 | { 104 | ws.Cells[startRow, colIndex].Value = count; 105 | } 106 | 107 | colIndex++; 108 | count = info.GetAssetCount(AssetFileInfoType.texture2D); 109 | if (count > 0) 110 | { 111 | ws.Cells[startRow, colIndex].Value = count; 112 | } 113 | 114 | colIndex++; 115 | count = info.GetAssetCount(AssetFileInfoType.sprite); 116 | if (count > 0) 117 | { 118 | ws.Cells[startRow, colIndex].Value = count; 119 | } 120 | 121 | colIndex++; 122 | count = info.GetAssetCount(AssetFileInfoType.shader); 123 | if (count > 0) 124 | { 125 | ws.Cells[startRow, colIndex].Value = count; 126 | } 127 | 128 | colIndex++; 129 | count = info.GetAssetCount(AssetFileInfoType.animationClip); 130 | if (count > 0) 131 | { 132 | ws.Cells[startRow, colIndex].Value = count; 133 | } 134 | 135 | colIndex++; 136 | count = info.GetAssetCount(AssetFileInfoType.audioClip); 137 | if (count > 0) 138 | { 139 | ws.Cells[startRow, colIndex].Value = count; 140 | } 141 | 142 | startRow++; 143 | } 144 | 145 | ws.Cells[1, 1].Value = ws.Cells[1, 1].Value + " (" + infos.Count + ")"; 146 | } 147 | } 148 | } -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Analyze/AssetBundleFilesAnalyzeScene.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using UnityEditor; 6 | using UnityEngine; 7 | #if UNITY_5_4_OR_NEWER 8 | using UnityEngine.SceneManagement; 9 | #endif 10 | 11 | namespace WuHuan 12 | { 13 | public class AssetBundleFilesAnalyzeScene 14 | { 15 | private class GlobalBehaviour : MonoBehaviour {} 16 | 17 | private class BundleSceneInfo 18 | { 19 | #if UNITY_5_4_OR_NEWER 20 | public AssetBundle ab; 21 | public string sceneName; 22 | public string scenePath; 23 | public AssetBundleFileInfo fileInfo; 24 | #endif 25 | } 26 | 27 | private readonly Queue m_BundleSceneInfos = new Queue(); 28 | private GlobalBehaviour m_GlobalBehaviour; 29 | 30 | public void AddBundleSceneInfo(AssetBundleFileInfo info, string[] scenePaths) 31 | { 32 | #if UNITY_5_4_OR_NEWER 33 | foreach (var scenePath in scenePaths) 34 | { 35 | m_BundleSceneInfos.Enqueue(new BundleSceneInfo() 36 | { 37 | fileInfo = info, 38 | sceneName = Path.GetFileNameWithoutExtension(scenePath), 39 | scenePath = scenePath 40 | }); 41 | } 42 | #endif 43 | } 44 | 45 | public void Analyze() 46 | { 47 | #if UNITY_5_4_OR_NEWER 48 | if (m_BundleSceneInfos.Count > 0) 49 | { 50 | AnalyzeInter(); 51 | } 52 | #endif 53 | } 54 | 55 | public bool IsAnalyzing() 56 | { 57 | return m_BundleSceneInfos.Count > 0; 58 | } 59 | 60 | #if UNITY_5_4_OR_NEWER 61 | private void AnalyzeInter() 62 | { 63 | if (EditorApplication.isPlaying) 64 | { 65 | AnalyzeBundleScenePrepare(); 66 | } 67 | else 68 | { 69 | Debug.LogWarning("没有处在播放模式,将会放弃解析场景AssetBundle包!"); 70 | ClearAllBundleScenes(); 71 | 72 | // 如果不在播放模式,需要InitializeOnLoad方式监听播放模式改变 73 | //EditorApplication.playmodeStateChanged += PlaymodeStateChanged; 74 | //EditorApplication.isPaused = false; 75 | //EditorApplication.isPlaying = true; 76 | } 77 | } 78 | 79 | private void AnalyzeBundleScenePrepare() 80 | { 81 | Scene defaultScene = SceneManager.CreateScene("empty" + DateTime.Now.ToString("yyyyMMdd_HHmmss")); 82 | int sceneCount = SceneManager.sceneCount; 83 | for (int i = sceneCount - 1; i >= 0; i--) 84 | { 85 | Scene scene = SceneManager.GetSceneAt(i); 86 | if (scene != defaultScene) 87 | { 88 | SceneManager.UnloadSceneAsync(scene); 89 | } 90 | } 91 | SceneManager.SetActiveScene(defaultScene); 92 | GameObject go = new GameObject("Global"); 93 | m_GlobalBehaviour = go.AddComponent(); 94 | 95 | SceneManager.sceneLoaded += SceneManagerOnSceneLoaded; 96 | SceneManager.sceneUnloaded += SceneManagerOnSceneUnloaded; 97 | LoadNextBundleScene(); 98 | } 99 | 100 | // private void PlaymodeStateChanged() 101 | // { 102 | // if (EditorApplication.isPaused) 103 | // { 104 | // return; 105 | // } 106 | // if (!(EditorApplication.isPlaying && EditorApplication.isPlayingOrWillChangePlaymode)) 107 | // { 108 | // return; 109 | // } 110 | // EditorApplication.playmodeStateChanged -= PlaymodeStateChanged; 111 | // AnalyzeBundleScenePrepare(); 112 | // } 113 | 114 | private void SceneManagerOnSceneLoaded(Scene scene, LoadSceneMode loadSceneMode) 115 | { 116 | // 并没有真正加载完整,需要下一帧才能取到对象 117 | m_GlobalBehaviour.StartCoroutine(AnalyzeBundleScene(scene)); 118 | } 119 | 120 | private void SceneManagerOnSceneUnloaded(Scene scene) 121 | { 122 | BundleSceneInfo info = m_BundleSceneInfos.Peek(); 123 | if (info.sceneName != scene.name) 124 | { 125 | Debug.LogError("What's scene? " + scene.path); 126 | return; 127 | } 128 | 129 | m_BundleSceneInfos.Dequeue(); 130 | LoadNextBundleScene(); 131 | } 132 | 133 | private IEnumerator AnalyzeBundleScene(Scene scene) 134 | { 135 | yield return new WaitForEndOfFrame(); 136 | Scene defaultScene = SceneManager.GetActiveScene(); 137 | SceneManager.SetActiveScene(scene); 138 | 139 | BundleSceneInfo info = m_BundleSceneInfos.Peek(); 140 | if (info.sceneName != scene.name) 141 | { 142 | Debug.LogError("What's scene? " + scene.path); 143 | yield break; 144 | } 145 | 146 | AssetBundleFilesAnalyze.AnalyzeObjectReference(info.fileInfo, RenderSettings.skybox); 147 | GameObject[] gos = scene.GetRootGameObjects(); 148 | foreach (var go in gos) 149 | { 150 | AssetBundleFilesAnalyze.AnalyzeObjectComponent(info.fileInfo, go); 151 | } 152 | AssetBundleFilesAnalyze.AnalyzeObjectsCompleted(info.fileInfo); 153 | SceneManager.SetActiveScene(defaultScene); 154 | 155 | info.ab.Unload(true); 156 | info.ab = null; 157 | yield return SceneManager.UnloadSceneAsync(scene); 158 | } 159 | 160 | private void LoadNextBundleScene() 161 | { 162 | if (m_BundleSceneInfos.Count <= 0) 163 | { 164 | SceneManager.sceneLoaded -= SceneManagerOnSceneLoaded; 165 | SceneManager.sceneUnloaded -= SceneManagerOnSceneUnloaded; 166 | 167 | if (AssetBundleFilesAnalyze.analyzeCompleted != null) 168 | { 169 | AssetBundleFilesAnalyze.analyzeCompleted(); 170 | } 171 | return; 172 | } 173 | 174 | // 释放一下内存,以免爆掉 175 | Resources.UnloadUnusedAssets(); 176 | GC.Collect(); 177 | 178 | BundleSceneInfo info = m_BundleSceneInfos.Peek(); 179 | info.ab = AssetBundle.LoadFromFile(info.fileInfo.path); 180 | SceneManager.LoadScene(info.sceneName, LoadSceneMode.Additive); 181 | } 182 | 183 | private void ClearAllBundleScenes() 184 | { 185 | foreach (var sceneInfo in m_BundleSceneInfos) 186 | { 187 | if (sceneInfo.ab) 188 | { 189 | sceneInfo.ab.Unload(true); 190 | } 191 | } 192 | 193 | m_BundleSceneInfos.Clear(); 194 | } 195 | #endif 196 | } 197 | } -------------------------------------------------------------------------------- /ReporterProject/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 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Reporter/AssetBundleDetailsReporter.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Drawing; 3 | using OfficeOpenXml; 4 | using OfficeOpenXml.Style; 5 | 6 | namespace WuHuan 7 | { 8 | public static class AssetBundleDetailsReporter 9 | { 10 | public static void CreateWorksheet(ExcelWorksheets wss) 11 | { 12 | ExcelWorksheet ws = wss.Add("每个所包含的具体资源"); 13 | 14 | // 标签颜色 15 | ws.TabColor = ColorTranslator.FromHtml("#f9c40f"); 16 | AssetBundleReporter.CreateWorksheetBase(ws, "每个 AssetBundle 文件所包含的具体资源", 4); 17 | 18 | // 列宽 19 | ws.Column(1).Width = 50; 20 | ws.Column(2).Width = 50; 21 | ws.Column(3).Width = 50; 22 | ws.Column(4).Width = 50; 23 | } 24 | 25 | public static void FillWorksheet(ExcelWorksheet ws) 26 | { 27 | int startRow = 2; 28 | 29 | List infos = AssetBundleFilesAnalyze.GetAllAssetBundleFileInfos(); 30 | foreach (var info in infos) 31 | { 32 | ws.Cells[startRow, 1].Value = info.name + " 所包含的具体资源"; 33 | using (var range = ws.Cells[startRow, 1, startRow, 4]) 34 | { 35 | range.Merge = true; 36 | range.Style.Font.Bold = true; 37 | range.Style.Fill.PatternType = ExcelFillStyle.Solid; 38 | range.Style.Fill.BackgroundColor.SetColor(ColorTranslator.FromHtml("#BDD7EE")); 39 | } 40 | info.detailHyperLink.ReferenceAddress = ws.Cells[startRow, 1].FullAddress; 41 | 42 | FillAssetByType(info, AssetFileInfoType.mesh, ws, ref startRow); 43 | FillAssetByType(info, AssetFileInfoType.material, ws, ref startRow); 44 | FillAssetByType(info, AssetFileInfoType.texture2D, ws, ref startRow); 45 | FillAssetByType(info, AssetFileInfoType.sprite, ws, ref startRow); 46 | FillAssetByType(info, AssetFileInfoType.shader, ws, ref startRow); 47 | FillAssetByType(info, AssetFileInfoType.animatorController, ws, ref startRow); 48 | FillAssetByType(info, AssetFileInfoType.animatorOverrideController, ws, ref startRow); 49 | FillAssetByType(info, AssetFileInfoType.animationClip, ws, ref startRow); 50 | FillAssetByType(info, AssetFileInfoType.audioClip, ws, ref startRow); 51 | FillAssetByType(info, AssetFileInfoType.monoScript, ws, ref startRow); 52 | 53 | FillAssetDepends(info, ws, ref startRow); 54 | 55 | startRow += 6; 56 | } 57 | } 58 | 59 | private static void FillAssetByType(AssetBundleFileInfo info, string type, ExcelWorksheet ws, ref int startRow) 60 | { 61 | int count = info.GetAssetCount(type); 62 | if (count == 0) 63 | { 64 | return; 65 | } 66 | 67 | startRow++; 68 | ws.Cells[startRow, 1].Value = type + " (" + count + ")"; 69 | SetRangeStyle(ws.Cells[startRow, 1, startRow, 4]); 70 | Color redColor = ColorTranslator.FromHtml("#FF0049"); 71 | 72 | int startCol = 1; 73 | foreach (var fileInfo in info.assets) 74 | { 75 | if (fileInfo.type == type) 76 | { 77 | if (startCol == 1) 78 | { 79 | startRow++; 80 | } 81 | 82 | ws.Cells[startRow, startCol].Value = fileInfo.name; 83 | ws.Cells[startRow, startCol].Hyperlink = fileInfo.detailHyperLink; 84 | 85 | // 冗余则红色显示 86 | if (fileInfo.includedBundles.Count > 1 && fileInfo.type != AssetFileInfoType.monoScript) 87 | { 88 | ws.Cells[startRow, startCol].Style.Font.Color.SetColor(redColor); 89 | } 90 | 91 | startCol++; 92 | if (startCol > 4) 93 | { 94 | startCol = 1; 95 | } 96 | } 97 | } 98 | } 99 | 100 | private static void FillAssetDepends(AssetBundleFileInfo info, ExcelWorksheet ws, ref int startRow) 101 | { 102 | if (info.allDepends == null && info.beDepends == null) 103 | { 104 | return; 105 | } 106 | if (info.allDepends != null && info.beDepends != null && 107 | info.allDepends.Length == 0 && info.beDepends.Length == 0) 108 | { 109 | return; 110 | } 111 | 112 | int rowAdd = 0; 113 | int titleRow = ++startRow; 114 | if (info.allDepends != null && info.allDepends.Length != 0) 115 | { 116 | ws.Cells[titleRow, 3].Value = "它依赖哪些AssetBundle文件? (" + info.allDepends.Length + ")"; 117 | SetRangeStyle(ws.Cells[titleRow, 3, titleRow, 4]); 118 | 119 | int dependRow = titleRow; 120 | foreach (var depend in info.allDepends) 121 | { 122 | if (string.IsNullOrEmpty(depend)) 123 | { 124 | continue; 125 | } 126 | dependRow++; 127 | var dependInfo = AssetBundleFilesAnalyze.GetAssetBundleFileInfo(depend); 128 | ws.Cells[dependRow, 3].Value = dependInfo.name; 129 | ws.Cells[dependRow, 3].Hyperlink = dependInfo.detailHyperLink; 130 | ws.Cells[dependRow, 3, dependRow, 4].Merge = true; 131 | } 132 | 133 | rowAdd = dependRow - titleRow; 134 | } 135 | 136 | if (info.beDepends != null && info.beDepends.Length != 0) 137 | { 138 | ws.Cells[titleRow, 1].Value = "哪些AssetBundle文件依赖它? (" + info.beDepends.Length + ")"; 139 | SetRangeStyle(ws.Cells[titleRow, 1, titleRow, 2]); 140 | 141 | int dependRow = titleRow; 142 | foreach (var depend in info.beDepends) 143 | { 144 | dependRow++; 145 | var dependInfo = AssetBundleFilesAnalyze.GetAssetBundleFileInfo(depend); 146 | ws.Cells[dependRow, 1].Value = dependInfo.name; 147 | ws.Cells[dependRow, 1].Hyperlink = dependInfo.detailHyperLink; 148 | ws.Cells[dependRow, 1, dependRow, 2].Merge = true; 149 | } 150 | 151 | int rowAdd2 = dependRow - titleRow; 152 | if (rowAdd2 > rowAdd) 153 | { 154 | rowAdd = rowAdd2; 155 | } 156 | } 157 | 158 | startRow += rowAdd; 159 | } 160 | 161 | private static void SetRangeStyle(ExcelRange range) 162 | { 163 | range.Merge = true; 164 | range.Style.Font.Bold = true; 165 | range.Style.HorizontalAlignment = ExcelHorizontalAlignment.Center; 166 | range.Style.VerticalAlignment = ExcelVerticalAlignment.Center; 167 | 168 | range.Style.Fill.PatternType = ExcelFillStyle.Solid; 169 | range.Style.Fill.BackgroundColor.SetColor(ColorTranslator.FromHtml("#DDEBF7")); 170 | } 171 | } 172 | } -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Analyze/AssetBundleFilesAnalyzeObject.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.IO; 3 | using System.Reflection; 4 | using UnityEditor; 5 | using UnityEngine; 6 | 7 | namespace WuHuan 8 | { 9 | /// 10 | /// 分析对象 11 | /// 12 | public class AssetBundleFilesAnalyzeObject 13 | { 14 | public static void ObjectAddToFileInfo(Object o, SerializedObject serializedObject, AssetBundleFileInfo info) 15 | { 16 | if (!o) 17 | { 18 | return; 19 | } 20 | 21 | string name2 = o.name; 22 | string type = o.GetType().ToString(); 23 | if (type.StartsWith("UnityEngine.")) 24 | { 25 | type = type.Substring(12); 26 | 27 | // 如果是内置的组件,就不当作是资源 28 | if (o as Component) 29 | { 30 | return; 31 | } 32 | } 33 | else if (type == "UnityEditor.Animations.AnimatorController") 34 | { 35 | type = "AnimatorController"; 36 | } 37 | else if (type == "UnityEditorInternal.AnimatorController") 38 | { 39 | type = "AnimatorController"; 40 | } 41 | else if (type == "UnityEditor.MonoScript") 42 | { 43 | MonoScript ms = o as MonoScript; 44 | string type2 = ms.GetClass().ToString(); 45 | if (type2.StartsWith("UnityEngine.")) 46 | { 47 | // 内置的脚本对象也不显示出来 48 | return; 49 | } 50 | 51 | // 外部的组件脚本,保留下来 52 | type = "MonoScript"; 53 | } 54 | else 55 | { 56 | // 外部的组件脚本,走上面的MonoScript 57 | if (o as Component) 58 | { 59 | return; 60 | } 61 | // 外部的序列化对象,已经被脚本给分析完毕了,不需要再添加进来 62 | if (o as ScriptableObject) 63 | { 64 | return; 65 | } 66 | 67 | Debug.LogError("What's this? " + type); 68 | return; 69 | } 70 | 71 | // 内建的资源排除掉 72 | string assetPath = AssetDatabase.GetAssetPath(o); 73 | if (!string.IsNullOrEmpty(assetPath)) 74 | { 75 | return; 76 | } 77 | 78 | long guid; 79 | if (info.isScene) 80 | { 81 | // 场景的话,没法根据PathID来确定唯一性,那么就认为每个场景用到的资源都不一样 82 | guid = (info.name + name2 + type).GetHashCode(); 83 | } 84 | else 85 | { 86 | SerializedProperty pathIdProp = serializedObject.FindProperty("m_LocalIdentfierInFile"); 87 | #if UNITY_5 || UNITY_5_3_OR_NEWER 88 | guid = pathIdProp.longValue; 89 | #else 90 | guid = pathIdProp.intValue; 91 | #endif 92 | } 93 | 94 | if (info.IsAssetContain(guid)) 95 | { 96 | return; 97 | } 98 | 99 | AssetFileInfo info2 = AssetBundleFilesAnalyze.GetAssetFileInfo(guid); 100 | info2.name = name2; 101 | info2.type = type; 102 | info2.includedBundles.Add(info); 103 | if (info2.detailHyperLink == null) 104 | { 105 | // 初次创建对象时链接为空 106 | info2.detailHyperLink = new OfficeOpenXml.ExcelHyperLink(System.String.Empty, info2.name); 107 | info2.propertys = AnalyzeObject(o, serializedObject, info.rootPath, info.name); 108 | } 109 | 110 | info.assets.Add(info2); 111 | } 112 | 113 | private static List> AnalyzeObject(Object o, SerializedObject serializedObject, string rootPath, string name) 114 | { 115 | Texture2D tex = o as Texture2D; 116 | if (tex) 117 | { 118 | ExportTexture2D(tex, rootPath, name); 119 | return AnalyzeTexture2D(tex, serializedObject); 120 | } 121 | 122 | Mesh mesh = o as Mesh; 123 | if (mesh) 124 | { 125 | return AnalyzeMesh(mesh, serializedObject); 126 | } 127 | 128 | Material mat = o as Material; 129 | if (mat) 130 | { 131 | return AnalyzeMaterial(mat, serializedObject); 132 | } 133 | 134 | AudioClip audioClip = o as AudioClip; 135 | if (audioClip) 136 | { 137 | return AnalyzeAudioClip(audioClip, serializedObject); 138 | } 139 | 140 | AnimationClip clip = o as AnimationClip; 141 | if (clip) 142 | { 143 | return AnalyzeAnimationClip(clip, serializedObject); 144 | } 145 | 146 | return null; 147 | } 148 | 149 | private static List> AnalyzeTexture2D(Texture2D tex, SerializedObject serializedObject) 150 | { 151 | var propertys = new List> 152 | { 153 | new KeyValuePair("宽度", tex.width), 154 | new KeyValuePair("高度", tex.height), 155 | new KeyValuePair("格式", tex.format.ToString()), 156 | new KeyValuePair("MipMap功能", tex.mipmapCount > 1 ? "True" : "False") 157 | }; 158 | 159 | var property = serializedObject.FindProperty("m_IsReadable"); 160 | propertys.Add(new KeyValuePair("Read/Write", property.boolValue.ToString())); 161 | 162 | property = serializedObject.FindProperty("m_CompleteImageSize"); 163 | propertys.Add(new KeyValuePair("内存占用", property.intValue)); 164 | 165 | return propertys; 166 | } 167 | 168 | private static List> AnalyzeMesh(Mesh mesh, SerializedObject serializedObject) 169 | { 170 | var propertys = new List> 171 | { 172 | new KeyValuePair("顶点数", mesh.vertexCount), 173 | new KeyValuePair("面数", (mesh.triangles.Length / 3f)), 174 | new KeyValuePair("子网格数", mesh.subMeshCount), 175 | new KeyValuePair("网格压缩", MeshUtility.GetMeshCompression(mesh).ToString()), 176 | new KeyValuePair("Read/Write", mesh.isReadable.ToString()) 177 | }; 178 | return propertys; 179 | } 180 | 181 | private static List> AnalyzeMaterial(Material mat, SerializedObject serializedObject) 182 | { 183 | var propertys = new List> 184 | { 185 | }; 186 | 187 | string texNames = System.String.Empty; 188 | 189 | var property = serializedObject.FindProperty("m_Shader"); 190 | propertys.Add(new KeyValuePair("依赖Shader", property.objectReferenceValue ? property.objectReferenceValue.name : "[其他AB内]")); 191 | 192 | property = serializedObject.FindProperty("m_SavedProperties"); 193 | var property2 = property.FindPropertyRelative("m_TexEnvs"); 194 | foreach (SerializedProperty property3 in property2) 195 | { 196 | SerializedProperty property4 = property3.FindPropertyRelative("second"); 197 | SerializedProperty property5 = property4.FindPropertyRelative("m_Texture"); 198 | 199 | if (property5.objectReferenceValue) 200 | { 201 | if (!string.IsNullOrEmpty(texNames)) 202 | { 203 | texNames += ", "; 204 | } 205 | texNames += property5.objectReferenceValue.name; 206 | } 207 | else 208 | { 209 | if (!string.IsNullOrEmpty(texNames)) 210 | { 211 | texNames += ", "; 212 | } 213 | texNames += "[其他AB内]"; 214 | } 215 | } 216 | propertys.Add(new KeyValuePair("依赖纹理", texNames)); 217 | 218 | return propertys; 219 | } 220 | 221 | private static List> AnalyzeAudioClip(AudioClip audioClip, SerializedObject serializedObject) 222 | { 223 | var propertys = new List> 224 | { 225 | #if UNITY_5 || UNITY_5_3_OR_NEWER 226 | new KeyValuePair("加载方式", audioClip.loadType.ToString()), 227 | new KeyValuePair("预加载", audioClip.preloadAudioData.ToString()), 228 | #endif 229 | new KeyValuePair("频率", audioClip.frequency), 230 | new KeyValuePair("长度", audioClip.length) 231 | }; 232 | 233 | #if UNITY_5 || UNITY_5_3_OR_NEWER 234 | var property = serializedObject.FindProperty("m_CompressionFormat"); 235 | propertys.Add(new KeyValuePair("格式", ((AudioCompressionFormat)property.intValue).ToString())); 236 | #else 237 | var property = serializedObject.FindProperty("m_Stream"); 238 | propertys.Add(new KeyValuePair("加载方式", ((AudioImporterLoadType)property.intValue).ToString())); 239 | property = serializedObject.FindProperty("m_Type"); 240 | propertys.Add(new KeyValuePair("格式", ((AudioType)property.intValue).ToString())); 241 | #endif 242 | 243 | return propertys; 244 | } 245 | 246 | private static List> AnalyzeAnimationClip(AnimationClip clip, SerializedObject serializedObject) 247 | { 248 | var stats = AnimationClipStatsInfo.GetAnimationClipStats(clip); 249 | var propertys = new List> 250 | { 251 | new KeyValuePair("总曲线数", stats.totalCurves), 252 | new KeyValuePair("Constant曲线数", stats.constantCurves), 253 | new KeyValuePair("Dense曲线数", stats.denseCurves), 254 | new KeyValuePair("Stream曲线数", stats.streamCurves), 255 | #if UNITY_5 || UNITY_5_3_OR_NEWER 256 | new KeyValuePair("事件数", clip.events.Length), 257 | #else 258 | new KeyValuePair("事件数", AnimationUtility.GetAnimationEvents(clip).Length), 259 | #endif 260 | new KeyValuePair("内存占用", stats.size), 261 | }; 262 | return propertys; 263 | } 264 | 265 | private class AnimationClipStatsInfo 266 | { 267 | public int size; 268 | public int totalCurves; 269 | public int constantCurves; 270 | public int denseCurves; 271 | public int streamCurves; 272 | 273 | private static MethodInfo getAnimationClipStats; 274 | private static FieldInfo sizeInfo; 275 | private static FieldInfo totalCurvesInfo; 276 | private static FieldInfo constantCurvesInfo; 277 | private static FieldInfo denseCurvesInfo; 278 | private static FieldInfo streamCurvesInfo; 279 | 280 | public static AnimationClipStatsInfo GetAnimationClipStats(AnimationClip clip) 281 | { 282 | if (getAnimationClipStats == null) 283 | { 284 | getAnimationClipStats = typeof(AnimationUtility).GetMethod("GetAnimationClipStats", BindingFlags.Static | BindingFlags.NonPublic); 285 | var aniclipstats = typeof(AnimationUtility).Assembly.GetType("UnityEditor.AnimationClipStats"); 286 | sizeInfo = aniclipstats.GetField("size", BindingFlags.Public | BindingFlags.Instance); 287 | totalCurvesInfo = aniclipstats.GetField("totalCurves", BindingFlags.Public | BindingFlags.Instance); 288 | constantCurvesInfo = aniclipstats.GetField("constantCurves", BindingFlags.Public | BindingFlags.Instance); 289 | denseCurvesInfo = aniclipstats.GetField("denseCurves", BindingFlags.Public | BindingFlags.Instance); 290 | streamCurvesInfo = aniclipstats.GetField("streamCurves", BindingFlags.Public | BindingFlags.Instance); 291 | } 292 | 293 | var stats = getAnimationClipStats.Invoke(null, new object[] { clip }); 294 | var stats2 = new AnimationClipStatsInfo 295 | { 296 | size = (int)sizeInfo.GetValue(stats), 297 | totalCurves = (int)totalCurvesInfo.GetValue(stats), 298 | constantCurves = (int)constantCurvesInfo.GetValue(stats), 299 | denseCurves = (int)denseCurvesInfo.GetValue(stats), 300 | streamCurves = (int)streamCurvesInfo.GetValue(stats), 301 | }; 302 | return stats2; 303 | } 304 | } 305 | 306 | private static void ExportTexture2D(Texture2D tex, string rootPath, string name) 307 | { 308 | if (!AssetBundleFilesAnalyze.analyzeExport) 309 | { 310 | return; 311 | } 312 | 313 | string dirPath = Path.Combine(Path.GetDirectoryName(rootPath), Path.GetFileNameWithoutExtension(rootPath) + "Export"); 314 | dirPath = Path.Combine(dirPath, name); 315 | dirPath = Path.Combine(dirPath, AssetFileInfoType.texture2D); 316 | if (!Directory.Exists(dirPath)) 317 | { 318 | Directory.CreateDirectory(dirPath); 319 | } 320 | 321 | RenderTexture rt = RenderTexture.GetTemporary(tex.width, tex.height, 0); 322 | Graphics.Blit(tex, rt); 323 | 324 | RenderTexture active = RenderTexture.active; 325 | RenderTexture.active = rt; 326 | Texture2D cont = new Texture2D(tex.width, tex.height); 327 | cont.hideFlags = HideFlags.HideAndDontSave; 328 | cont.ReadPixels(new Rect(0, 0, tex.width, tex.height), 0, 0); 329 | cont.Apply(); 330 | RenderTexture.active = active; 331 | RenderTexture.ReleaseTemporary(rt); 332 | 333 | File.WriteAllBytes(Path.Combine(dirPath, tex.name + ".png"), cont.EncodeToPNG()); 334 | } 335 | } 336 | } -------------------------------------------------------------------------------- /ReporterProject/Assets/AssetBundleReporter/Editor/Analyze/AssetBundleFilesAnalyze.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.IO; 3 | using System.Linq; 4 | using System.Reflection; 5 | using UnityEditor; 6 | #if UNITY_5 || UNITY_5_3_OR_NEWER 7 | using UnityEditor.Animations; 8 | #else 9 | using UnityEditorInternal; 10 | #endif 11 | using UnityEngine; 12 | using UnityEngine.Events; 13 | 14 | namespace WuHuan 15 | { 16 | /// 17 | /// AB 文件分析器 18 | /// 19 | public static class AssetBundleFilesAnalyze 20 | { 21 | #region 对外接口 22 | 23 | /// 24 | /// 自定义分析依赖 25 | /// 26 | public static System.Func> analyzeCustomDepend; 27 | 28 | /// 29 | /// 分析的时候,也导出资源 30 | /// 31 | public static bool analyzeExport { get; set; } 32 | 33 | /// 34 | /// 分析的时候,只分析场景,这需要播放运行才能分析场景 35 | /// 36 | public static bool analyzeOnlyScene { get; set; } 37 | 38 | #endregion 39 | 40 | #region 内部实现 41 | 42 | private static List sAssetBundleFileInfos; 43 | private static Dictionary sAssetFileInfos; 44 | private static AssetBundleFilesAnalyzeScene sAnalyzeScene; 45 | 46 | public static UnityAction analyzeCompleted; 47 | 48 | /// 49 | /// 获取所有的AB文件信息 50 | /// 51 | /// 52 | public static List GetAllAssetBundleFileInfos() 53 | { 54 | return sAssetBundleFileInfos; 55 | } 56 | 57 | public static AssetBundleFileInfo GetAssetBundleFileInfo(string name) 58 | { 59 | return sAssetBundleFileInfos.Find(info => info.name == name); 60 | } 61 | 62 | /// 63 | /// 获取所有的资产文件信息 64 | /// 65 | /// 66 | public static Dictionary GetAllAssetFileInfo() 67 | { 68 | return sAssetFileInfos; 69 | } 70 | 71 | public static AssetFileInfo GetAssetFileInfo(long guid) 72 | { 73 | if (sAssetFileInfos == null) 74 | { 75 | sAssetFileInfos = new Dictionary(); 76 | } 77 | 78 | AssetFileInfo info; 79 | if (!sAssetFileInfos.TryGetValue(guid, out info)) 80 | { 81 | info = new AssetFileInfo { guid = guid }; 82 | sAssetFileInfos.Add(guid, info); 83 | } 84 | return info; 85 | } 86 | 87 | public static void Clear() 88 | { 89 | if (sAssetBundleFileInfos != null) 90 | { 91 | sAssetBundleFileInfos.Clear(); 92 | sAssetBundleFileInfos = null; 93 | } 94 | if (sAssetFileInfos != null) 95 | { 96 | sAssetFileInfos.Clear(); 97 | sAssetFileInfos = null; 98 | } 99 | sAnalyzeScene = null; 100 | 101 | #if UNITY_5 || UNITY_5_3_OR_NEWER 102 | EditorUtility.UnloadUnusedAssetsImmediate(); 103 | #endif 104 | System.GC.Collect(); 105 | } 106 | 107 | public static bool Analyze(string directoryPath) 108 | { 109 | if (!Directory.Exists(directoryPath)) 110 | { 111 | Debug.LogError(directoryPath + " is not exists!"); 112 | return false; 113 | } 114 | 115 | if (analyzeCustomDepend != null) 116 | { 117 | sAssetBundleFileInfos = analyzeCustomDepend(directoryPath); 118 | } 119 | if (sAssetBundleFileInfos == null) 120 | { 121 | #if UNITY_5 || UNITY_5_3_OR_NEWER 122 | sAssetBundleFileInfos = AnalyzeManifestDepend(directoryPath); 123 | #endif 124 | } 125 | if (sAssetBundleFileInfos == null) 126 | { 127 | sAssetBundleFileInfos = AnalyzAllFiles(directoryPath); 128 | } 129 | if (sAssetBundleFileInfos == null) 130 | { 131 | return false; 132 | } 133 | 134 | sAnalyzeScene = new AssetBundleFilesAnalyzeScene(); 135 | AnalyzeBundleFiles(sAssetBundleFileInfos); 136 | sAnalyzeScene.Analyze(); 137 | 138 | if (!sAnalyzeScene.IsAnalyzing()) 139 | { 140 | if (analyzeCompleted != null) 141 | { 142 | analyzeCompleted(); 143 | } 144 | } 145 | return true; 146 | } 147 | 148 | /// 149 | /// 分析Unity5方式的依赖构成 150 | /// 151 | /// 152 | /// 153 | private static List AnalyzeManifestDepend(string directoryPath) 154 | { 155 | string manifestName = Path.GetFileName(directoryPath); 156 | string manifestPath = Path.Combine(directoryPath, manifestName); 157 | if (!File.Exists(manifestPath)) 158 | { 159 | Debug.LogWarning(manifestPath + " is not exists! Use AnalyzAllFiles ..."); 160 | return null; 161 | } 162 | #if UNITY_5_3_OR_NEWER 163 | AssetBundle manifestAb = AssetBundle.LoadFromFile(manifestPath); 164 | #else 165 | AssetBundle manifestAb = AssetBundle.CreateFromMemoryImmediate(File.ReadAllBytes(manifestPath)); 166 | #endif 167 | if (!manifestAb) 168 | { 169 | Debug.LogError(manifestPath + " ab load faild!"); 170 | return null; 171 | } 172 | 173 | List infos = new List(); 174 | #if UNITY_5 || UNITY_5_3_OR_NEWER 175 | AssetBundleManifest assetBundleManifest = manifestAb.LoadAsset("assetbundlemanifest"); 176 | var bundles = assetBundleManifest.GetAllAssetBundles(); 177 | foreach (var bundle in bundles) 178 | { 179 | string path = Path.Combine(directoryPath, bundle); 180 | AssetBundleFileInfo info = new AssetBundleFileInfo 181 | { 182 | name = bundle, 183 | path = path, 184 | rootPath = directoryPath, 185 | size = new FileInfo(path).Length, 186 | directDepends = assetBundleManifest.GetDirectDependencies(bundle), 187 | allDepends = assetBundleManifest.GetAllDependencies(bundle) 188 | }; 189 | infos.Add(info); 190 | } 191 | #endif 192 | manifestAb.Unload(true); 193 | return infos; 194 | } 195 | 196 | /// 197 | /// 直接递归所有文件 198 | /// 199 | /// 200 | /// 201 | private static List AnalyzAllFiles(string directoryPath) 202 | { 203 | List infos = new List(); 204 | string bom = "Unity"; 205 | char[] flag = new char[5]; 206 | string[] files = Directory.GetFiles(directoryPath, "*", SearchOption.AllDirectories); 207 | foreach (var file in files) 208 | { 209 | using (StreamReader streamReader = new StreamReader(file)) 210 | { 211 | if (streamReader.Read(flag, 0, flag.Length) == flag.Length && new string(flag) == bom) 212 | { 213 | AssetBundleFileInfo info = new AssetBundleFileInfo 214 | { 215 | name = file.Substring(directoryPath.Length + 1), 216 | path = file, 217 | rootPath = directoryPath, 218 | size = streamReader.BaseStream.Length, 219 | directDepends = new string[] { }, 220 | allDepends = new string[] { } 221 | }; 222 | infos.Add(info); 223 | } 224 | } 225 | } 226 | 227 | return infos; 228 | } 229 | 230 | private static void AnalyzeBundleFiles(List infos) 231 | { 232 | // 分析被依赖的关系 233 | foreach (var info in infos) 234 | { 235 | List beDepends = new List(); 236 | foreach (var info2 in infos) 237 | { 238 | if (info2.name == info.name) 239 | { 240 | continue; 241 | } 242 | 243 | if (info2.allDepends.Contains(info.name)) 244 | { 245 | beDepends.Add(info2.name); 246 | } 247 | } 248 | info.beDepends = beDepends.ToArray(); 249 | } 250 | 251 | // 以下不能保证百分百找到所有的资源,最准确的方式是解密AssetBundle格式 252 | foreach (var info in infos) 253 | { 254 | #if UNITY_5_3_OR_NEWER 255 | AssetBundle ab = AssetBundle.LoadFromFile(info.path); 256 | #else 257 | AssetBundle ab = AssetBundle.CreateFromMemoryImmediate(File.ReadAllBytes(info.path)); 258 | #endif 259 | if (ab) 260 | { 261 | try 262 | { 263 | #if UNITY_5_3_OR_NEWER 264 | if (!ab.isStreamedSceneAssetBundle) 265 | #else 266 | if (true) 267 | #endif 268 | { 269 | if (!analyzeOnlyScene) 270 | { 271 | #if UNITY_5 || UNITY_5_3_OR_NEWER 272 | Object[] objs = ab.LoadAllAssets(); 273 | #else 274 | Object[] objs = ab.LoadAll(); 275 | #endif 276 | foreach (var o in objs) 277 | { 278 | AnalyzeObjectReference(info, o); 279 | AnalyzeObjectComponent(info, o); 280 | } 281 | AnalyzeObjectsCompleted(info); 282 | } 283 | } 284 | else 285 | { 286 | #if UNITY_5_3_OR_NEWER 287 | info.isScene = true; 288 | sAnalyzeScene.AddBundleSceneInfo(info, ab.GetAllScenePaths()); 289 | #endif 290 | } 291 | } 292 | finally 293 | { 294 | ab.Unload(true); 295 | } 296 | } 297 | } 298 | } 299 | 300 | private static PropertyInfo inspectorMode; 301 | 302 | /// 303 | /// 分析对象的引用 304 | /// 305 | /// 306 | /// 307 | public static void AnalyzeObjectReference(AssetBundleFileInfo info, Object o) 308 | { 309 | if (o == null || info.objDict.ContainsKey(o)) 310 | { 311 | return; 312 | } 313 | 314 | var serializedObject = new SerializedObject(o); 315 | info.objDict.Add(o, serializedObject); 316 | 317 | if (inspectorMode == null) 318 | { 319 | inspectorMode = typeof(SerializedObject).GetProperty("inspectorMode", BindingFlags.NonPublic | BindingFlags.Instance); 320 | } 321 | inspectorMode.SetValue(serializedObject, InspectorMode.Debug, null); 322 | 323 | var it = serializedObject.GetIterator(); 324 | while (it.NextVisible(true)) 325 | { 326 | if (it.propertyType == SerializedPropertyType.ObjectReference && it.objectReferenceValue != null) 327 | { 328 | AnalyzeObjectReference(info, it.objectReferenceValue); 329 | } 330 | } 331 | 332 | // 只能用另一种方式获取的引用 333 | AnalyzeObjectReference2(info, o); 334 | } 335 | 336 | /// 337 | /// 动画控制器比较特殊,不能通过序列化得到 338 | /// 339 | /// 340 | /// 341 | private static void AnalyzeObjectReference2(AssetBundleFileInfo info, Object o) 342 | { 343 | AnimatorController ac = o as AnimatorController; 344 | if (ac) 345 | { 346 | #if UNITY_5 || UNITY_5_3_OR_NEWER 347 | foreach (var clip in ac.animationClips) 348 | { 349 | AnalyzeObjectReference(info, clip); 350 | } 351 | #else 352 | List list = new List(); 353 | for (int i = 0; i < ac.layerCount; i++) 354 | { 355 | AnimatorControllerLayer layer = ac.GetLayer(i); 356 | list.AddRange(AnimatorStateMachine_StatesRecursive(layer.stateMachine)); 357 | } 358 | foreach (State state in list) 359 | { 360 | var clip = state.GetMotion() as AnimationClip; 361 | if (clip) 362 | { 363 | AnalyzeObjectReference(info, clip); 364 | } 365 | } 366 | #endif 367 | } 368 | } 369 | 370 | #if !(UNITY_5 || UNITY_5_3_OR_NEWER) 371 | private static List AnimatorStateMachine_StatesRecursive(StateMachine stateMachine) 372 | { 373 | List list = new List(); 374 | for (int i = 0; i < stateMachine.stateCount; i++) 375 | { 376 | list.Add(stateMachine.GetState(i)); 377 | } 378 | for (int i = 0; i < stateMachine.stateMachineCount; i++) 379 | { 380 | list.AddRange(AnimatorStateMachine_StatesRecursive(stateMachine.GetStateMachine(i))); 381 | } 382 | return list; 383 | } 384 | #endif 385 | 386 | /// 387 | /// 分析脚本的引用(这只在脚本在工程里时才有效) 388 | /// 389 | /// 390 | /// 391 | public static void AnalyzeObjectComponent(AssetBundleFileInfo info, Object o) 392 | { 393 | var go = o as GameObject; 394 | if (!go) 395 | { 396 | return; 397 | } 398 | 399 | var components = go.GetComponentsInChildren(true); 400 | foreach (var component in components) 401 | { 402 | if (!component) 403 | { 404 | continue; 405 | } 406 | 407 | AnalyzeObjectReference(info, component); 408 | } 409 | } 410 | 411 | public static void AnalyzeObjectsCompleted(AssetBundleFileInfo info) 412 | { 413 | foreach (var kv in info.objDict) 414 | { 415 | AssetBundleFilesAnalyzeObject.ObjectAddToFileInfo(kv.Key, kv.Value, info); 416 | kv.Value.Dispose(); 417 | } 418 | info.objDict.Clear(); 419 | } 420 | 421 | #endregion 422 | } 423 | } -------------------------------------------------------------------------------- /ReporterProject/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: 18 7 | productGUID: 1992a8fd9339ca0418243e3282e3a6a0 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: ReporterProject 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | displayResolutionDialog: 1 56 | iosUseCustomAppBackgroundBehavior: 0 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 0 68 | androidBlitType: 0 69 | defaultIsNativeResolution: 1 70 | macRetinaSupport: 1 71 | runInBackground: 0 72 | captureSingleScreen: 0 73 | muteOtherAudioSources: 0 74 | Prepare IOS For Recording: 0 75 | Force IOS Speakers When Recording: 0 76 | deferSystemGesturesMode: 0 77 | hideHomeButton: 0 78 | submitAnalytics: 1 79 | usePlayerLog: 1 80 | bakeCollisionMeshes: 0 81 | forceSingleInstance: 0 82 | resizableWindow: 0 83 | useMacAppStoreValidation: 0 84 | macAppStoreCategory: public.app-category.games 85 | gpuSkinning: 0 86 | graphicsJobs: 0 87 | xboxPIXTextureCapture: 0 88 | xboxEnableAvatar: 0 89 | xboxEnableKinect: 0 90 | xboxEnableKinectAutoTracking: 0 91 | xboxEnableFitness: 0 92 | visibleInBackground: 0 93 | allowFullscreenSwitch: 1 94 | graphicsJobMode: 0 95 | fullscreenMode: 1 96 | xboxSpeechDB: 0 97 | xboxEnableHeadOrientation: 0 98 | xboxEnableGuest: 0 99 | xboxEnablePIXSampling: 0 100 | metalFramebufferOnly: 0 101 | xboxOneResolution: 0 102 | xboxOneSResolution: 0 103 | xboxOneXResolution: 3 104 | xboxOneMonoLoggingLevel: 0 105 | xboxOneLoggingLevel: 1 106 | xboxOneDisableEsram: 0 107 | xboxOneEnableTypeOptimization: 0 108 | xboxOnePresentImmediateThreshold: 0 109 | switchQueueCommandMemory: 1048576 110 | switchQueueControlMemory: 16384 111 | switchQueueComputeMemory: 262144 112 | switchNVNShaderPoolsGranularity: 33554432 113 | switchNVNDefaultPoolsGranularity: 16777216 114 | switchNVNOtherPoolsGranularity: 16777216 115 | switchNVNMaxPublicTextureIDCount: 0 116 | switchNVNMaxPublicSamplerIDCount: 0 117 | vulkanEnableSetSRGBWrite: 0 118 | m_SupportedAspectRatios: 119 | 4:3: 1 120 | 5:4: 1 121 | 16:10: 1 122 | 16:9: 1 123 | Others: 1 124 | bundleVersion: 1.0 125 | preloadedAssets: [] 126 | metroInputSource: 0 127 | wsaTransparentSwapchain: 0 128 | m_HolographicPauseOnTrackingLoss: 1 129 | xboxOneDisableKinectGpuReservation: 0 130 | xboxOneEnable7thCore: 1 131 | isWsaHolographicRemotingEnabled: 0 132 | vrSettings: 133 | cardboard: 134 | depthFormat: 0 135 | enableTransitionView: 0 136 | daydream: 137 | depthFormat: 0 138 | useSustainedPerformanceMode: 0 139 | enableVideoLayer: 0 140 | useProtectedVideoMemory: 0 141 | minimumSupportedHeadTracking: 0 142 | maximumSupportedHeadTracking: 1 143 | hololens: 144 | depthFormat: 1 145 | depthBufferSharingEnabled: 1 146 | oculus: 147 | sharedDepthBuffer: 1 148 | dashSupport: 1 149 | lowOverheadMode: 0 150 | protectedContext: 0 151 | v2Signing: 0 152 | enable360StereoCapture: 0 153 | protectGraphicsMemory: 0 154 | enableFrameTimingStats: 0 155 | useHDRDisplay: 0 156 | m_ColorGamuts: 00000000 157 | targetPixelDensity: 30 158 | resolutionScalingMode: 0 159 | androidSupportedAspectRatio: 1 160 | androidMaxAspectRatio: 2.1 161 | applicationIdentifier: 162 | Android: com.Company.ProductName 163 | Standalone: unity.DefaultCompany.ReporterProject 164 | iOS: com.Company.ProductName 165 | tvOS: com.Company.ProductName 166 | buildNumber: 167 | iOS: 0 168 | AndroidBundleVersionCode: 1 169 | AndroidMinSdkVersion: 16 170 | AndroidTargetSdkVersion: 0 171 | AndroidPreferredInstallLocation: 1 172 | aotOptions: 173 | stripEngineCode: 1 174 | iPhoneStrippingLevel: 0 175 | iPhoneScriptCallOptimization: 0 176 | ForceInternetPermission: 0 177 | ForceSDCardPermission: 0 178 | CreateWallpaper: 0 179 | APKExpansionFiles: 0 180 | keepLoadedShadersAlive: 0 181 | StripUnusedMeshComponents: 0 182 | VertexChannelCompressionMask: 214 183 | iPhoneSdkVersion: 988 184 | iOSTargetOSVersionString: 9.0 185 | tvOSSdkVersion: 0 186 | tvOSRequireExtendedGameController: 0 187 | tvOSTargetOSVersionString: 9.0 188 | uIPrerenderedIcon: 0 189 | uIRequiresPersistentWiFi: 0 190 | uIRequiresFullScreen: 1 191 | uIStatusBarHidden: 1 192 | uIExitOnSuspend: 0 193 | uIStatusBarStyle: 0 194 | iPhoneSplashScreen: {fileID: 0} 195 | iPhoneHighResSplashScreen: {fileID: 0} 196 | iPhoneTallHighResSplashScreen: {fileID: 0} 197 | iPhone47inSplashScreen: {fileID: 0} 198 | iPhone55inPortraitSplashScreen: {fileID: 0} 199 | iPhone55inLandscapeSplashScreen: {fileID: 0} 200 | iPhone58inPortraitSplashScreen: {fileID: 0} 201 | iPhone58inLandscapeSplashScreen: {fileID: 0} 202 | iPadPortraitSplashScreen: {fileID: 0} 203 | iPadHighResPortraitSplashScreen: {fileID: 0} 204 | iPadLandscapeSplashScreen: {fileID: 0} 205 | iPadHighResLandscapeSplashScreen: {fileID: 0} 206 | appleTVSplashScreen: {fileID: 0} 207 | appleTVSplashScreen2x: {fileID: 0} 208 | tvOSSmallIconLayers: [] 209 | tvOSSmallIconLayers2x: [] 210 | tvOSLargeIconLayers: [] 211 | tvOSLargeIconLayers2x: [] 212 | tvOSTopShelfImageLayers: [] 213 | tvOSTopShelfImageLayers2x: [] 214 | tvOSTopShelfImageWideLayers: [] 215 | tvOSTopShelfImageWideLayers2x: [] 216 | iOSLaunchScreenType: 0 217 | iOSLaunchScreenPortrait: {fileID: 0} 218 | iOSLaunchScreenLandscape: {fileID: 0} 219 | iOSLaunchScreenBackgroundColor: 220 | serializedVersion: 2 221 | rgba: 0 222 | iOSLaunchScreenFillPct: 100 223 | iOSLaunchScreenSize: 100 224 | iOSLaunchScreenCustomXibPath: 225 | iOSLaunchScreeniPadType: 0 226 | iOSLaunchScreeniPadImage: {fileID: 0} 227 | iOSLaunchScreeniPadBackgroundColor: 228 | serializedVersion: 2 229 | rgba: 0 230 | iOSLaunchScreeniPadFillPct: 100 231 | iOSLaunchScreeniPadSize: 100 232 | iOSLaunchScreeniPadCustomXibPath: 233 | iOSUseLaunchScreenStoryboard: 0 234 | iOSLaunchScreenCustomStoryboardPath: 235 | iOSDeviceRequirements: [] 236 | iOSURLSchemes: [] 237 | iOSBackgroundModes: 0 238 | iOSMetalForceHardShadows: 0 239 | metalEditorSupport: 1 240 | metalAPIValidation: 1 241 | iOSRenderExtraFrameOnPause: 1 242 | iosCopyPluginsCodeInsteadOfSymlink: 0 243 | appleDeveloperTeamID: 244 | iOSManualSigningProvisioningProfileID: 245 | tvOSManualSigningProvisioningProfileID: 246 | iOSManualSigningProvisioningProfileType: 0 247 | tvOSManualSigningProvisioningProfileType: 0 248 | appleEnableAutomaticSigning: 0 249 | iOSRequireARKit: 0 250 | iOSAutomaticallyDetectAndAddCapabilities: 1 251 | appleEnableProMotion: 0 252 | clonedFromGUID: 00000000000000000000000000000000 253 | templatePackageId: 254 | templateDefaultScene: 255 | AndroidTargetArchitectures: 5 256 | AndroidSplashScreenScale: 0 257 | androidSplashScreen: {fileID: 0} 258 | AndroidKeystoreName: 259 | AndroidKeyaliasName: 260 | AndroidBuildApkPerCpuArchitecture: 0 261 | AndroidTVCompatibility: 1 262 | AndroidIsGame: 1 263 | AndroidEnableTango: 0 264 | androidEnableBanner: 1 265 | androidUseLowAccuracyLocation: 0 266 | m_AndroidBanners: 267 | - width: 320 268 | height: 180 269 | banner: {fileID: 0} 270 | androidGamepadSupportLevel: 0 271 | resolutionDialogBanner: {fileID: 0} 272 | m_BuildTargetIcons: [] 273 | m_BuildTargetPlatformIcons: [] 274 | m_BuildTargetBatching: [] 275 | m_BuildTargetGraphicsAPIs: [] 276 | m_BuildTargetVRSettings: 277 | - m_BuildTarget: Android 278 | m_Enabled: 0 279 | m_Devices: 280 | - Oculus 281 | - m_BuildTarget: Metro 282 | m_Enabled: 0 283 | m_Devices: [] 284 | - m_BuildTarget: N3DS 285 | m_Enabled: 0 286 | m_Devices: [] 287 | - m_BuildTarget: PS3 288 | m_Enabled: 0 289 | m_Devices: [] 290 | - m_BuildTarget: PS4 291 | m_Enabled: 0 292 | m_Devices: 293 | - PlayStationVR 294 | - m_BuildTarget: PSM 295 | m_Enabled: 0 296 | m_Devices: [] 297 | - m_BuildTarget: PSP2 298 | m_Enabled: 0 299 | m_Devices: [] 300 | - m_BuildTarget: SamsungTV 301 | m_Enabled: 0 302 | m_Devices: [] 303 | - m_BuildTarget: Standalone 304 | m_Enabled: 0 305 | m_Devices: 306 | - Oculus 307 | - m_BuildTarget: Tizen 308 | m_Enabled: 0 309 | m_Devices: [] 310 | - m_BuildTarget: WebGL 311 | m_Enabled: 0 312 | m_Devices: [] 313 | - m_BuildTarget: WebPlayer 314 | m_Enabled: 0 315 | m_Devices: [] 316 | - m_BuildTarget: WiiU 317 | m_Enabled: 0 318 | m_Devices: [] 319 | - m_BuildTarget: Xbox360 320 | m_Enabled: 0 321 | m_Devices: [] 322 | - m_BuildTarget: XboxOne 323 | m_Enabled: 0 324 | m_Devices: [] 325 | - m_BuildTarget: iOS 326 | m_Enabled: 0 327 | m_Devices: [] 328 | - m_BuildTarget: tvOS 329 | m_Enabled: 0 330 | m_Devices: [] 331 | m_BuildTargetEnableVuforiaSettings: [] 332 | openGLRequireES31: 0 333 | openGLRequireES31AEP: 0 334 | m_TemplateCustomTags: {} 335 | mobileMTRendering: 336 | iPhone: 1 337 | tvOS: 1 338 | m_BuildTargetGroupLightmapEncodingQuality: 339 | - m_BuildTarget: Standalone 340 | m_EncodingQuality: 1 341 | - m_BuildTarget: XboxOne 342 | m_EncodingQuality: 1 343 | - m_BuildTarget: PS4 344 | m_EncodingQuality: 1 345 | m_BuildTargetGroupLightmapSettings: [] 346 | playModeTestRunnerEnabled: 0 347 | runPlayModeTestAsEditModeTest: 0 348 | actionOnDotNetUnhandledException: 1 349 | enableInternalProfiler: 0 350 | logObjCUncaughtExceptions: 1 351 | enableCrashReportAPI: 0 352 | cameraUsageDescription: 353 | locationUsageDescription: 354 | microphoneUsageDescription: 355 | switchNetLibKey: 356 | switchSocketMemoryPoolSize: 6144 357 | switchSocketAllocatorPoolSize: 128 358 | switchSocketConcurrencyLimit: 14 359 | switchScreenResolutionBehavior: 2 360 | switchUseCPUProfiler: 0 361 | switchApplicationID: 0x01004b9000490000 362 | switchNSODependencies: 363 | switchTitleNames_0: 364 | switchTitleNames_1: 365 | switchTitleNames_2: 366 | switchTitleNames_3: 367 | switchTitleNames_4: 368 | switchTitleNames_5: 369 | switchTitleNames_6: 370 | switchTitleNames_7: 371 | switchTitleNames_8: 372 | switchTitleNames_9: 373 | switchTitleNames_10: 374 | switchTitleNames_11: 375 | switchTitleNames_12: 376 | switchTitleNames_13: 377 | switchTitleNames_14: 378 | switchTitleNames_15: 379 | switchPublisherNames_0: 380 | switchPublisherNames_1: 381 | switchPublisherNames_2: 382 | switchPublisherNames_3: 383 | switchPublisherNames_4: 384 | switchPublisherNames_5: 385 | switchPublisherNames_6: 386 | switchPublisherNames_7: 387 | switchPublisherNames_8: 388 | switchPublisherNames_9: 389 | switchPublisherNames_10: 390 | switchPublisherNames_11: 391 | switchPublisherNames_12: 392 | switchPublisherNames_13: 393 | switchPublisherNames_14: 394 | switchPublisherNames_15: 395 | switchIcons_0: {fileID: 0} 396 | switchIcons_1: {fileID: 0} 397 | switchIcons_2: {fileID: 0} 398 | switchIcons_3: {fileID: 0} 399 | switchIcons_4: {fileID: 0} 400 | switchIcons_5: {fileID: 0} 401 | switchIcons_6: {fileID: 0} 402 | switchIcons_7: {fileID: 0} 403 | switchIcons_8: {fileID: 0} 404 | switchIcons_9: {fileID: 0} 405 | switchIcons_10: {fileID: 0} 406 | switchIcons_11: {fileID: 0} 407 | switchIcons_12: {fileID: 0} 408 | switchIcons_13: {fileID: 0} 409 | switchIcons_14: {fileID: 0} 410 | switchIcons_15: {fileID: 0} 411 | switchSmallIcons_0: {fileID: 0} 412 | switchSmallIcons_1: {fileID: 0} 413 | switchSmallIcons_2: {fileID: 0} 414 | switchSmallIcons_3: {fileID: 0} 415 | switchSmallIcons_4: {fileID: 0} 416 | switchSmallIcons_5: {fileID: 0} 417 | switchSmallIcons_6: {fileID: 0} 418 | switchSmallIcons_7: {fileID: 0} 419 | switchSmallIcons_8: {fileID: 0} 420 | switchSmallIcons_9: {fileID: 0} 421 | switchSmallIcons_10: {fileID: 0} 422 | switchSmallIcons_11: {fileID: 0} 423 | switchSmallIcons_12: {fileID: 0} 424 | switchSmallIcons_13: {fileID: 0} 425 | switchSmallIcons_14: {fileID: 0} 426 | switchSmallIcons_15: {fileID: 0} 427 | switchManualHTML: 428 | switchAccessibleURLs: 429 | switchLegalInformation: 430 | switchMainThreadStackSize: 1048576 431 | switchPresenceGroupId: 432 | switchLogoHandling: 0 433 | switchReleaseVersion: 0 434 | switchDisplayVersion: 1.0.0 435 | switchStartupUserAccount: 0 436 | switchTouchScreenUsage: 0 437 | switchSupportedLanguagesMask: 0 438 | switchLogoType: 0 439 | switchApplicationErrorCodeCategory: 440 | switchUserAccountSaveDataSize: 0 441 | switchUserAccountSaveDataJournalSize: 0 442 | switchApplicationAttribute: 0 443 | switchCardSpecSize: -1 444 | switchCardSpecClock: -1 445 | switchRatingsMask: 0 446 | switchRatingsInt_0: 0 447 | switchRatingsInt_1: 0 448 | switchRatingsInt_2: 0 449 | switchRatingsInt_3: 0 450 | switchRatingsInt_4: 0 451 | switchRatingsInt_5: 0 452 | switchRatingsInt_6: 0 453 | switchRatingsInt_7: 0 454 | switchRatingsInt_8: 0 455 | switchRatingsInt_9: 0 456 | switchRatingsInt_10: 0 457 | switchRatingsInt_11: 0 458 | switchRatingsInt_12: 0 459 | switchLocalCommunicationIds_0: 460 | switchLocalCommunicationIds_1: 461 | switchLocalCommunicationIds_2: 462 | switchLocalCommunicationIds_3: 463 | switchLocalCommunicationIds_4: 464 | switchLocalCommunicationIds_5: 465 | switchLocalCommunicationIds_6: 466 | switchLocalCommunicationIds_7: 467 | switchParentalControl: 0 468 | switchAllowsScreenshot: 1 469 | switchAllowsVideoCapturing: 1 470 | switchAllowsRuntimeAddOnContentInstall: 0 471 | switchDataLossConfirmation: 0 472 | switchUserAccountLockEnabled: 0 473 | switchSystemResourceMemory: 16777216 474 | switchSupportedNpadStyles: 6 475 | switchNativeFsCacheSize: 32 476 | switchIsHoldTypeHorizontal: 0 477 | switchSupportedNpadCount: 8 478 | switchSocketConfigEnabled: 0 479 | switchTcpInitialSendBufferSize: 32 480 | switchTcpInitialReceiveBufferSize: 64 481 | switchTcpAutoSendBufferSizeMax: 256 482 | switchTcpAutoReceiveBufferSizeMax: 256 483 | switchUdpSendBufferSize: 9 484 | switchUdpReceiveBufferSize: 42 485 | switchSocketBufferEfficiency: 4 486 | switchSocketInitializeEnabled: 1 487 | switchNetworkInterfaceManagerInitializeEnabled: 1 488 | switchPlayerConnectionEnabled: 1 489 | ps4NPAgeRating: 12 490 | ps4NPTitleSecret: 491 | ps4NPTrophyPackPath: 492 | ps4ParentalLevel: 1 493 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 494 | ps4Category: 0 495 | ps4MasterVersion: 01.00 496 | ps4AppVersion: 01.00 497 | ps4AppType: 0 498 | ps4ParamSfxPath: 499 | ps4VideoOutPixelFormat: 0 500 | ps4VideoOutInitialWidth: 1920 501 | ps4VideoOutBaseModeInitialWidth: 1920 502 | ps4VideoOutReprojectionRate: 120 503 | ps4PronunciationXMLPath: 504 | ps4PronunciationSIGPath: 505 | ps4BackgroundImagePath: 506 | ps4StartupImagePath: 507 | ps4StartupImagesFolder: 508 | ps4IconImagesFolder: 509 | ps4SaveDataImagePath: 510 | ps4SdkOverride: 511 | ps4BGMPath: 512 | ps4ShareFilePath: 513 | ps4ShareOverlayImagePath: 514 | ps4PrivacyGuardImagePath: 515 | ps4ExtraSceSysFile: 516 | ps4NPtitleDatPath: 517 | ps4RemotePlayKeyAssignment: -1 518 | ps4RemotePlayKeyMappingDir: 519 | ps4PlayTogetherPlayerCount: 0 520 | ps4EnterButtonAssignment: 1 521 | ps4ApplicationParam1: 0 522 | ps4ApplicationParam2: 0 523 | ps4ApplicationParam3: 0 524 | ps4ApplicationParam4: 0 525 | ps4DownloadDataSize: 0 526 | ps4GarlicHeapSize: 2048 527 | ps4ProGarlicHeapSize: 2560 528 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 529 | ps4pnSessions: 1 530 | ps4pnPresence: 1 531 | ps4pnFriends: 1 532 | ps4pnGameCustomData: 1 533 | playerPrefsSupport: 0 534 | enableApplicationExit: 0 535 | resetTempFolder: 1 536 | restrictedAudioUsageRights: 0 537 | ps4UseResolutionFallback: 0 538 | ps4ReprojectionSupport: 0 539 | ps4UseAudio3dBackend: 0 540 | ps4SocialScreenEnabled: 0 541 | ps4ScriptOptimizationLevel: 3 542 | ps4Audio3dVirtualSpeakerCount: 14 543 | ps4attribCpuUsage: 0 544 | ps4PatchPkgPath: 545 | ps4PatchLatestPkgPath: 546 | ps4PatchChangeinfoPath: 547 | ps4PatchDayOne: 0 548 | ps4attribUserManagement: 0 549 | ps4attribMoveSupport: 0 550 | ps4attrib3DSupport: 0 551 | ps4attribShareSupport: 0 552 | ps4attribExclusiveVR: 0 553 | ps4disableAutoHideSplash: 0 554 | ps4videoRecordingFeaturesUsed: 0 555 | ps4contentSearchFeaturesUsed: 0 556 | ps4CompatibilityPS5: 0 557 | ps4GPU800MHz: 1 558 | ps4attribEyeToEyeDistanceSettingVR: 0 559 | ps4IncludedModules: [] 560 | monoEnv: 561 | splashScreenBackgroundSourceLandscape: {fileID: 0} 562 | splashScreenBackgroundSourcePortrait: {fileID: 0} 563 | spritePackerPolicy: 564 | webGLMemorySize: 256 565 | webGLExceptionSupport: 1 566 | webGLNameFilesAsHashes: 0 567 | webGLDataCaching: 1 568 | webGLDebugSymbols: 0 569 | webGLEmscriptenArgs: 570 | webGLModulesDirectory: 571 | webGLTemplate: APPLICATION:Default 572 | webGLAnalyzeBuildSize: 0 573 | webGLUseEmbeddedResources: 0 574 | webGLCompressionFormat: 1 575 | webGLLinkerTarget: 1 576 | webGLThreadsSupport: 0 577 | scriptingDefineSymbols: {} 578 | platformArchitecture: {} 579 | scriptingBackend: 580 | Android: 0 581 | Standalone: 0 582 | WebPlayer: 0 583 | il2cppCompilerConfiguration: {} 584 | managedStrippingLevel: {} 585 | incrementalIl2cppBuild: {} 586 | allowUnsafeCode: 0 587 | additionalIl2CppArgs: 588 | scriptingRuntimeVersion: 1 589 | apiCompatibilityLevelPerPlatform: {} 590 | m_RenderingPath: 1 591 | m_MobileRenderingPath: 1 592 | metroPackageName: ReporterProject 593 | metroPackageVersion: 594 | metroCertificatePath: 595 | metroCertificatePassword: 596 | metroCertificateSubject: 597 | metroCertificateIssuer: 598 | metroCertificateNotAfter: 0000000000000000 599 | metroApplicationDescription: ReporterProject 600 | wsaImages: {} 601 | metroTileShortName: 602 | metroTileShowName: 0 603 | metroMediumTileShowName: 0 604 | metroLargeTileShowName: 0 605 | metroWideTileShowName: 0 606 | metroSupportStreamingInstall: 0 607 | metroLastRequiredScene: 0 608 | metroDefaultTileSize: 1 609 | metroTileForegroundText: 1 610 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 611 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 612 | a: 1} 613 | metroSplashScreenUseBackgroundColor: 0 614 | platformCapabilities: {} 615 | metroTargetDeviceFamilies: {} 616 | metroFTAName: 617 | metroFTAFileTypes: [] 618 | metroProtocolName: 619 | metroCompilationOverrides: 1 620 | XboxOneProductId: 621 | XboxOneUpdateKey: 622 | XboxOneSandboxId: 623 | XboxOneContentId: 624 | XboxOneTitleId: 625 | XboxOneSCId: 626 | XboxOneGameOsOverridePath: 627 | XboxOnePackagingOverridePath: 628 | XboxOneAppManifestOverridePath: 629 | XboxOneVersion: 1.0.0.0 630 | XboxOnePackageEncryption: 0 631 | XboxOnePackageUpdateGranularity: 2 632 | XboxOneDescription: 633 | XboxOneLanguage: 634 | - enus 635 | XboxOneCapability: [] 636 | XboxOneGameRating: {} 637 | XboxOneIsContentPackage: 0 638 | XboxOneEnableGPUVariability: 0 639 | XboxOneSockets: {} 640 | XboxOneSplashScreen: {fileID: 0} 641 | XboxOneAllowedProductIds: [] 642 | XboxOnePersistentLocalStorageSize: 0 643 | XboxOneXTitleMemory: 8 644 | xboxOneScriptCompiler: 0 645 | XboxOneOverrideIdentityName: 646 | vrEditorSettings: 647 | daydream: 648 | daydreamIconForeground: {fileID: 0} 649 | daydreamIconBackground: {fileID: 0} 650 | cloudServicesEnabled: 651 | Analytics: 0 652 | Build: 0 653 | Collab: 0 654 | ErrorHub: 0 655 | Game_Performance: 0 656 | Hub: 0 657 | Purchasing: 0 658 | UNet: 0 659 | Unity_Ads: 0 660 | luminIcon: 661 | m_Name: 662 | m_ModelFolderPath: 663 | m_PortalFolderPath: 664 | luminCert: 665 | m_CertPath: 666 | m_PrivateKeyPath: 667 | luminIsChannelApp: 0 668 | luminVersion: 669 | m_VersionCode: 1 670 | m_VersionName: 671 | facebookSdkVersion: 672 | facebookAppId: 673 | facebookCookies: 1 674 | facebookLogging: 1 675 | facebookStatus: 1 676 | facebookXfbml: 0 677 | facebookFrictionlessRequests: 1 678 | apiCompatibilityLevel: 6 679 | cloudProjectId: 680 | framebufferDepthMemorylessMode: 0 681 | projectName: 682 | organizationId: 683 | cloudEnabled: 0 684 | enableNativePlatformBackendsForNewInputSystem: 0 685 | disableOldInputManagerSupport: 0 686 | legacyClampBlendShapeWeights: 1 687 | --------------------------------------------------------------------------------