├── .gitignore ├── Assets ├── TestAssets.meta ├── TestAssets │ ├── EmptyScriptableObject.asset │ ├── EmptyScriptableObject.asset.meta │ ├── FullScriptableObject.asset │ ├── FullScriptableObject.asset.meta │ ├── ObjectWithNullArrayItemsAndRefs.prefab │ ├── ObjectWithNullArrayItemsAndRefs.prefab.meta │ ├── PrefabScript.cs │ ├── PrefabScript.cs.meta │ ├── PrefabWithMissingScript.prefab │ ├── PrefabWithMissingScript.prefab.meta │ ├── RefAndEmptyArrayScriptableObject.asset │ ├── RefAndEmptyArrayScriptableObject.asset.meta │ ├── ScriptWithListAndRefs.cs │ ├── ScriptWithListAndRefs.cs.meta │ ├── ScriptWithRefs.cs │ ├── ScriptWithRefs.cs.meta │ ├── ScriptableObjectWithListAndRefs.cs │ ├── ScriptableObjectWithListAndRefs.cs.meta │ ├── TestPrefab.prefab │ ├── TestPrefab.prefab.meta │ ├── UnusedScript.cs │ └── UnusedScript.cs.meta ├── TestSceneWithRefsToDeletedScriptAndSprite.unity └── TestSceneWithRefsToDeletedScriptAndSprite.unity.meta ├── LICENSE ├── Packages ├── MissingRefsHunter │ ├── Editor.meta │ ├── Editor │ │ ├── MissingReferencesHunter.Editor.asmdef │ │ ├── MissingReferencesHunter.Editor.asmdef.meta │ │ ├── MissingReferencesHunter.cs │ │ └── MissingReferencesHunter.cs.meta │ ├── LICENSE │ ├── LICENSE.meta │ ├── README.md │ ├── README.md.meta │ ├── package.json │ └── package.json.meta ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset ├── README.md └── Screenshots ├── main_window.png └── missing_reference_example.png /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Uu]ser[Ss]ettings/ 12 | */[Oo]bj/* 13 | 14 | # MemoryCaptures can get excessive in size. 15 | # They also could contain extremely sensitive data 16 | /[Mm]emoryCaptures/ 17 | 18 | # Asset meta data should only be ignored when the corresponding asset is also ignored 19 | !/[Aa]ssets/**/*.meta 20 | 21 | # Uncomment this line if you wish to ignore the asset store tools plugin 22 | # /[Aa]ssets/AssetStoreTools* 23 | 24 | # Autogenerated Jetbrains Rider plugin 25 | /[Aa]ssets/Plugins/Editor/JetBrains* 26 | 27 | # Visual Studio cache directory 28 | .vs/ 29 | 30 | # Gradle cache directory 31 | .gradle/ 32 | 33 | # Jetbrains Rider cache directory 34 | .idea/ 35 | 36 | # Autogenerated VS/MD/Consulo solution and project files 37 | ExportedObj/ 38 | .consulo/ 39 | *.csproj 40 | *.unityproj 41 | *.sln 42 | *.suo 43 | *.tmp 44 | *.user 45 | *.userprefs 46 | *.pidb 47 | *.booproj 48 | *.svd 49 | *.pdb 50 | *.mdb 51 | *.opendb 52 | *.VC.db 53 | 54 | # Unity3D generated meta files 55 | *.pidb.meta 56 | *.pdb.meta 57 | *.mdb.meta 58 | 59 | # Unity3D generated file on crash reports 60 | sysinfo.txt 61 | 62 | # Builds 63 | *.apk 64 | *.unitypackage 65 | 66 | # Crashlytics generated file 67 | crashlytics-build.properties 68 | 69 | # Packed Addressables 70 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 71 | 72 | # Temporary auto-generated Android Assets 73 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 74 | /[Aa]ssets/[Ss]treamingAssets/aa/* 75 | 76 | # Exceptions 77 | !*.dll 78 | !*.obj 79 | 80 | # Archives 81 | *.zip 82 | *.rar 83 | # Archives' meta files 84 | *.zip.meta 85 | *.rar.meta 86 | -------------------------------------------------------------------------------- /Assets/TestAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08f4e12a217701540af6eb63fd06d770 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TestAssets/EmptyScriptableObject.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: bef3012b725b74b30bed87c657796e9d, type: 3} 13 | m_Name: EmptyScriptableObject 14 | m_EditorClassIdentifier: 15 | _prefab: {fileID: 0} 16 | _array: [] 17 | -------------------------------------------------------------------------------- /Assets/TestAssets/EmptyScriptableObject.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd9039fcdc3194ad1824d171ec2eb061 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TestAssets/FullScriptableObject.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: bef3012b725b74b30bed87c657796e9d, type: 3} 13 | m_Name: FullScriptableObject 14 | m_EditorClassIdentifier: 15 | _prefab: {fileID: 3877470943573448465, guid: 06679ffdcb2c74424abc579ca81c4a07, type: 3} 16 | _array: 17 | - {fileID: 3877470943573448465, guid: 06679ffdcb2c74424abc579ca81c4a07, type: 3} 18 | - {fileID: 3877470943573448465, guid: 06679ffdcb2c74424abc579ca81c4a07, type: 3} 19 | -------------------------------------------------------------------------------- /Assets/TestAssets/FullScriptableObject.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d50a5be4f4d4f4c84a17c6300f18a405 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TestAssets/ObjectWithNullArrayItemsAndRefs.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &1323749619953254296 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 6250822273188979800} 12 | m_Layer: 0 13 | m_Name: GameObject 14 | m_TagString: Untagged 15 | m_Icon: {fileID: 0} 16 | m_NavMeshLayer: 0 17 | m_StaticEditorFlags: 0 18 | m_IsActive: 1 19 | --- !u!4 &6250822273188979800 20 | Transform: 21 | m_ObjectHideFlags: 0 22 | m_CorrespondingSourceObject: {fileID: 0} 23 | m_PrefabInstance: {fileID: 0} 24 | m_PrefabAsset: {fileID: 0} 25 | m_GameObject: {fileID: 1323749619953254296} 26 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 27 | m_LocalPosition: {x: 0, y: 0, z: 0} 28 | m_LocalScale: {x: 1, y: 1, z: 1} 29 | m_Children: [] 30 | m_Father: {fileID: 9034069790450628545} 31 | m_RootOrder: 0 32 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 33 | --- !u!1 &9034069790450628547 34 | GameObject: 35 | m_ObjectHideFlags: 0 36 | m_CorrespondingSourceObject: {fileID: 0} 37 | m_PrefabInstance: {fileID: 0} 38 | m_PrefabAsset: {fileID: 0} 39 | serializedVersion: 6 40 | m_Component: 41 | - component: {fileID: 9034069790450628545} 42 | - component: {fileID: 9034069790450628546} 43 | m_Layer: 0 44 | m_Name: ObjectWithNullArrayItemsAndRefs 45 | m_TagString: Untagged 46 | m_Icon: {fileID: 0} 47 | m_NavMeshLayer: 0 48 | m_StaticEditorFlags: 0 49 | m_IsActive: 1 50 | --- !u!4 &9034069790450628545 51 | Transform: 52 | m_ObjectHideFlags: 0 53 | m_CorrespondingSourceObject: {fileID: 0} 54 | m_PrefabInstance: {fileID: 0} 55 | m_PrefabAsset: {fileID: 0} 56 | m_GameObject: {fileID: 9034069790450628547} 57 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 58 | m_LocalPosition: {x: 0, y: 0, z: 0} 59 | m_LocalScale: {x: 1, y: 1, z: 1} 60 | m_Children: 61 | - {fileID: 6250822273188979800} 62 | m_Father: {fileID: 0} 63 | m_RootOrder: 0 64 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 65 | --- !u!114 &9034069790450628546 66 | MonoBehaviour: 67 | m_ObjectHideFlags: 0 68 | m_CorrespondingSourceObject: {fileID: 0} 69 | m_PrefabInstance: {fileID: 0} 70 | m_PrefabAsset: {fileID: 0} 71 | m_GameObject: {fileID: 9034069790450628547} 72 | m_Enabled: 1 73 | m_EditorHideFlags: 0 74 | m_Script: {fileID: 11500000, guid: f6ead6d55cc584774a5090f91d12c1f1, type: 3} 75 | m_Name: 76 | m_EditorClassIdentifier: 77 | _prefabWithRef: {fileID: 3877470943573448465, guid: 06679ffdcb2c74424abc579ca81c4a07, type: 3} 78 | _prefabWithoutRef: {fileID: 0} 79 | _fullArray: 80 | - {fileID: 3877470943573448465, guid: 06679ffdcb2c74424abc579ca81c4a07, type: 3} 81 | - {fileID: 3877470943573448465, guid: 06679ffdcb2c74424abc579ca81c4a07, type: 3} 82 | _sparseArray: 83 | - {fileID: 0} 84 | - {fileID: 3877470943573448465, guid: 06679ffdcb2c74424abc579ca81c4a07, type: 3} 85 | _internalRef: {fileID: 1323749619953254296} 86 | _internalNullRef: {fileID: 0} 87 | -------------------------------------------------------------------------------- /Assets/TestAssets/ObjectWithNullArrayItemsAndRefs.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 886125d1e65644683830aee821fce9be 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TestAssets/PrefabScript.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class PrefabScript : MonoBehaviour 6 | { 7 | // Start is called before the first frame update 8 | void Start() 9 | { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update() 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/TestAssets/PrefabScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77ef92ed5e10a421fbdb64f2675e3f9e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TestAssets/PrefabWithMissingScript.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &4611226272866427309 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 2215801346851220935} 12 | - component: {fileID: 485141722788143904} 13 | m_Layer: 0 14 | m_Name: PrefabWithMissingScript 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &2215801346851220935 21 | Transform: 22 | m_ObjectHideFlags: 0 23 | m_CorrespondingSourceObject: {fileID: 0} 24 | m_PrefabInstance: {fileID: 0} 25 | m_PrefabAsset: {fileID: 0} 26 | m_GameObject: {fileID: 4611226272866427309} 27 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 28 | m_LocalPosition: {x: 0, y: 0, z: 0} 29 | m_LocalScale: {x: 1, y: 1, z: 1} 30 | m_Children: [] 31 | m_Father: {fileID: 0} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!114 &485141722788143904 35 | MonoBehaviour: 36 | m_ObjectHideFlags: 0 37 | m_CorrespondingSourceObject: {fileID: 0} 38 | m_PrefabInstance: {fileID: 0} 39 | m_PrefabAsset: {fileID: 0} 40 | m_GameObject: {fileID: 4611226272866427309} 41 | m_Enabled: 1 42 | m_EditorHideFlags: 0 43 | m_Script: {fileID: 11500000, guid: 10c4bba41f616407381522fa21bea58a, type: 3} 44 | m_Name: 45 | m_EditorClassIdentifier: 46 | -------------------------------------------------------------------------------- /Assets/TestAssets/PrefabWithMissingScript.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 907ce32be2c14476dbd53049d17b8554 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TestAssets/RefAndEmptyArrayScriptableObject.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: bef3012b725b74b30bed87c657796e9d, type: 3} 13 | m_Name: RefAndEmptyArrayScriptableObject 14 | m_EditorClassIdentifier: 15 | _prefab: {fileID: 3877470943573448465, guid: 06679ffdcb2c74424abc579ca81c4a07, type: 3} 16 | _array: [] 17 | -------------------------------------------------------------------------------- /Assets/TestAssets/RefAndEmptyArrayScriptableObject.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4da108d1e449c453da3c931a348b5087 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TestAssets/ScriptWithListAndRefs.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | // ReSharper disable once CheckNamespace 5 | public class ScriptWithListAndRefs : MonoBehaviour 6 | { 7 | [SerializeField] private PrefabScript _prefabWithRef; 8 | [SerializeField] private PrefabScript _prefabWithoutRef; 9 | 10 | [SerializeField] private List _fullArray; 11 | [SerializeField] private List _sparseArray; 12 | 13 | [SerializeField] private GameObject _internalRef; 14 | [SerializeField] private GameObject _internalNullRef; 15 | } 16 | -------------------------------------------------------------------------------- /Assets/TestAssets/ScriptWithListAndRefs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6ead6d55cc584774a5090f91d12c1f1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TestAssets/ScriptWithRefs.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class ScriptWithRefs : MonoBehaviour 6 | { 7 | // Start is called before the first frame update 8 | void Start() 9 | { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update() 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/TestAssets/ScriptWithRefs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fb3026facc504c71b8a813b9d849a04 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TestAssets/ScriptableObjectWithListAndRefs.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | [CreateAssetMenu(fileName = "TestScriptableObject", menuName = "Test/Create Test Scriptable Object")] 5 | // ReSharper disable once CheckNamespace 6 | public class ScriptableObjectWithListAndRefs : ScriptableObject 7 | { 8 | [SerializeField] private PrefabScript _prefab; 9 | [SerializeField] private List _array; 10 | } -------------------------------------------------------------------------------- /Assets/TestAssets/ScriptableObjectWithListAndRefs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bef3012b725b74b30bed87c657796e9d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TestAssets/TestPrefab.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &8536041434094803613 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 8587987234284414181} 12 | - component: {fileID: 3877470943573448465} 13 | m_Layer: 0 14 | m_Name: TestPrefab 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &8587987234284414181 21 | Transform: 22 | m_ObjectHideFlags: 0 23 | m_CorrespondingSourceObject: {fileID: 0} 24 | m_PrefabInstance: {fileID: 0} 25 | m_PrefabAsset: {fileID: 0} 26 | m_GameObject: {fileID: 8536041434094803613} 27 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 28 | m_LocalPosition: {x: 0, y: 0, z: 0} 29 | m_LocalScale: {x: 1, y: 1, z: 1} 30 | m_Children: [] 31 | m_Father: {fileID: 0} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!114 &3877470943573448465 35 | MonoBehaviour: 36 | m_ObjectHideFlags: 0 37 | m_CorrespondingSourceObject: {fileID: 0} 38 | m_PrefabInstance: {fileID: 0} 39 | m_PrefabAsset: {fileID: 0} 40 | m_GameObject: {fileID: 8536041434094803613} 41 | m_Enabled: 1 42 | m_EditorHideFlags: 0 43 | m_Script: {fileID: 11500000, guid: 77ef92ed5e10a421fbdb64f2675e3f9e, type: 3} 44 | m_Name: 45 | m_EditorClassIdentifier: 46 | -------------------------------------------------------------------------------- /Assets/TestAssets/TestPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06679ffdcb2c74424abc579ca81c4a07 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TestAssets/UnusedScript.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class UnusedScript : MonoBehaviour 6 | { 7 | // Start is called before the first frame update 8 | void Start() 9 | { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update() 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/TestAssets/UnusedScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7138d830e32b6c44e892e729d0b8878d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TestSceneWithRefsToDeletedScriptAndSprite.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.44657868, g: 0.4964124, b: 0.574817, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &609363349 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 609363351} 135 | - component: {fileID: 609363350} 136 | m_Layer: 0 137 | m_Name: Sprite 138 | m_TagString: Untagged 139 | m_Icon: {fileID: 0} 140 | m_NavMeshLayer: 0 141 | m_StaticEditorFlags: 0 142 | m_IsActive: 1 143 | --- !u!212 &609363350 144 | SpriteRenderer: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInstance: {fileID: 0} 148 | m_PrefabAsset: {fileID: 0} 149 | m_GameObject: {fileID: 609363349} 150 | m_Enabled: 1 151 | m_CastShadows: 0 152 | m_ReceiveShadows: 0 153 | m_DynamicOccludee: 1 154 | m_MotionVectors: 1 155 | m_LightProbeUsage: 1 156 | m_ReflectionProbeUsage: 1 157 | m_RayTracingMode: 0 158 | m_RayTraceProcedural: 0 159 | m_RenderingLayerMask: 1 160 | m_RendererPriority: 0 161 | m_Materials: 162 | - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 163 | m_StaticBatchInfo: 164 | firstSubMesh: 0 165 | subMeshCount: 0 166 | m_StaticBatchRoot: {fileID: 0} 167 | m_ProbeAnchor: {fileID: 0} 168 | m_LightProbeVolumeOverride: {fileID: 0} 169 | m_ScaleInLightmap: 1 170 | m_ReceiveGI: 1 171 | m_PreserveUVs: 0 172 | m_IgnoreNormalsForChartDetection: 0 173 | m_ImportantGI: 0 174 | m_StitchLightmapSeams: 1 175 | m_SelectedEditorRenderState: 0 176 | m_MinimumChartSize: 4 177 | m_AutoUVMaxDistance: 0.5 178 | m_AutoUVMaxAngle: 89 179 | m_LightmapParameters: {fileID: 0} 180 | m_SortingLayerID: 0 181 | m_SortingLayer: 0 182 | m_SortingOrder: 0 183 | m_Sprite: {fileID: 21300000, guid: 025c3ba24d138ba42ad6943f24e878b1, type: 3} 184 | m_Color: {r: 1, g: 1, b: 1, a: 1} 185 | m_FlipX: 0 186 | m_FlipY: 0 187 | m_DrawMode: 0 188 | m_Size: {x: 1, y: 1} 189 | m_AdaptiveModeThreshold: 0.5 190 | m_SpriteTileMode: 0 191 | m_WasSpriteAssigned: 0 192 | m_MaskInteraction: 0 193 | m_SpriteSortPoint: 0 194 | --- !u!4 &609363351 195 | Transform: 196 | m_ObjectHideFlags: 0 197 | m_CorrespondingSourceObject: {fileID: 0} 198 | m_PrefabInstance: {fileID: 0} 199 | m_PrefabAsset: {fileID: 0} 200 | m_GameObject: {fileID: 609363349} 201 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 202 | m_LocalPosition: {x: 0, y: 0, z: 0} 203 | m_LocalScale: {x: 1, y: 1, z: 1} 204 | m_Children: [] 205 | m_Father: {fileID: 0} 206 | m_RootOrder: 3 207 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 208 | --- !u!1 &1246592621 209 | GameObject: 210 | m_ObjectHideFlags: 0 211 | m_CorrespondingSourceObject: {fileID: 0} 212 | m_PrefabInstance: {fileID: 0} 213 | m_PrefabAsset: {fileID: 0} 214 | serializedVersion: 6 215 | m_Component: 216 | - component: {fileID: 1246592623} 217 | - component: {fileID: 1246592622} 218 | m_Layer: 0 219 | m_Name: Directional Light 220 | m_TagString: Untagged 221 | m_Icon: {fileID: 0} 222 | m_NavMeshLayer: 0 223 | m_StaticEditorFlags: 0 224 | m_IsActive: 1 225 | --- !u!108 &1246592622 226 | Light: 227 | m_ObjectHideFlags: 0 228 | m_CorrespondingSourceObject: {fileID: 0} 229 | m_PrefabInstance: {fileID: 0} 230 | m_PrefabAsset: {fileID: 0} 231 | m_GameObject: {fileID: 1246592621} 232 | m_Enabled: 1 233 | serializedVersion: 10 234 | m_Type: 1 235 | m_Shape: 0 236 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 237 | m_Intensity: 1 238 | m_Range: 10 239 | m_SpotAngle: 30 240 | m_InnerSpotAngle: 21.80208 241 | m_CookieSize: 10 242 | m_Shadows: 243 | m_Type: 2 244 | m_Resolution: -1 245 | m_CustomResolution: -1 246 | m_Strength: 1 247 | m_Bias: 0.05 248 | m_NormalBias: 0.4 249 | m_NearPlane: 0.2 250 | m_CullingMatrixOverride: 251 | e00: 1 252 | e01: 0 253 | e02: 0 254 | e03: 0 255 | e10: 0 256 | e11: 1 257 | e12: 0 258 | e13: 0 259 | e20: 0 260 | e21: 0 261 | e22: 1 262 | e23: 0 263 | e30: 0 264 | e31: 0 265 | e32: 0 266 | e33: 1 267 | m_UseCullingMatrixOverride: 0 268 | m_Cookie: {fileID: 0} 269 | m_DrawHalo: 0 270 | m_Flare: {fileID: 0} 271 | m_RenderMode: 0 272 | m_CullingMask: 273 | serializedVersion: 2 274 | m_Bits: 4294967295 275 | m_RenderingLayerMask: 1 276 | m_Lightmapping: 4 277 | m_LightShadowCasterMode: 0 278 | m_AreaSize: {x: 1, y: 1} 279 | m_BounceIntensity: 1 280 | m_ColorTemperature: 6570 281 | m_UseColorTemperature: 0 282 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 283 | m_UseBoundingSphereOverride: 0 284 | m_UseViewFrustumForShadowCasterCull: 1 285 | m_ShadowRadius: 0 286 | m_ShadowAngle: 0 287 | --- !u!4 &1246592623 288 | Transform: 289 | m_ObjectHideFlags: 0 290 | m_CorrespondingSourceObject: {fileID: 0} 291 | m_PrefabInstance: {fileID: 0} 292 | m_PrefabAsset: {fileID: 0} 293 | m_GameObject: {fileID: 1246592621} 294 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 295 | m_LocalPosition: {x: 0, y: 3, z: 0} 296 | m_LocalScale: {x: 1, y: 1, z: 1} 297 | m_Children: [] 298 | m_Father: {fileID: 0} 299 | m_RootOrder: 1 300 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 301 | --- !u!1 &1693775776 302 | GameObject: 303 | m_ObjectHideFlags: 0 304 | m_CorrespondingSourceObject: {fileID: 0} 305 | m_PrefabInstance: {fileID: 0} 306 | m_PrefabAsset: {fileID: 0} 307 | serializedVersion: 6 308 | m_Component: 309 | - component: {fileID: 1693775778} 310 | - component: {fileID: 1693775777} 311 | m_Layer: 0 312 | m_Name: TestScript 313 | m_TagString: Untagged 314 | m_Icon: {fileID: 0} 315 | m_NavMeshLayer: 0 316 | m_StaticEditorFlags: 0 317 | m_IsActive: 1 318 | --- !u!114 &1693775777 319 | MonoBehaviour: 320 | m_ObjectHideFlags: 0 321 | m_CorrespondingSourceObject: {fileID: 0} 322 | m_PrefabInstance: {fileID: 0} 323 | m_PrefabAsset: {fileID: 0} 324 | m_GameObject: {fileID: 1693775776} 325 | m_Enabled: 1 326 | m_EditorHideFlags: 0 327 | m_Script: {fileID: 11500000, guid: d7edb8132627226418e7780a3e33746f, type: 3} 328 | m_Name: 329 | m_EditorClassIdentifier: 330 | --- !u!4 &1693775778 331 | Transform: 332 | m_ObjectHideFlags: 0 333 | m_CorrespondingSourceObject: {fileID: 0} 334 | m_PrefabInstance: {fileID: 0} 335 | m_PrefabAsset: {fileID: 0} 336 | m_GameObject: {fileID: 1693775776} 337 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 338 | m_LocalPosition: {x: 0, y: 0, z: 0} 339 | m_LocalScale: {x: 1, y: 1, z: 1} 340 | m_Children: [] 341 | m_Father: {fileID: 0} 342 | m_RootOrder: 2 343 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 344 | --- !u!1 &1818636308 345 | GameObject: 346 | m_ObjectHideFlags: 0 347 | m_CorrespondingSourceObject: {fileID: 0} 348 | m_PrefabInstance: {fileID: 0} 349 | m_PrefabAsset: {fileID: 0} 350 | serializedVersion: 6 351 | m_Component: 352 | - component: {fileID: 1818636311} 353 | - component: {fileID: 1818636310} 354 | - component: {fileID: 1818636309} 355 | m_Layer: 0 356 | m_Name: Main Camera 357 | m_TagString: MainCamera 358 | m_Icon: {fileID: 0} 359 | m_NavMeshLayer: 0 360 | m_StaticEditorFlags: 0 361 | m_IsActive: 1 362 | --- !u!81 &1818636309 363 | AudioListener: 364 | m_ObjectHideFlags: 0 365 | m_CorrespondingSourceObject: {fileID: 0} 366 | m_PrefabInstance: {fileID: 0} 367 | m_PrefabAsset: {fileID: 0} 368 | m_GameObject: {fileID: 1818636308} 369 | m_Enabled: 1 370 | --- !u!20 &1818636310 371 | Camera: 372 | m_ObjectHideFlags: 0 373 | m_CorrespondingSourceObject: {fileID: 0} 374 | m_PrefabInstance: {fileID: 0} 375 | m_PrefabAsset: {fileID: 0} 376 | m_GameObject: {fileID: 1818636308} 377 | m_Enabled: 1 378 | serializedVersion: 2 379 | m_ClearFlags: 1 380 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 381 | m_projectionMatrixMode: 1 382 | m_GateFitMode: 2 383 | m_FOVAxisMode: 0 384 | m_SensorSize: {x: 36, y: 24} 385 | m_LensShift: {x: 0, y: 0} 386 | m_FocalLength: 50 387 | m_NormalizedViewPortRect: 388 | serializedVersion: 2 389 | x: 0 390 | y: 0 391 | width: 1 392 | height: 1 393 | near clip plane: 0.3 394 | far clip plane: 1000 395 | field of view: 60 396 | orthographic: 0 397 | orthographic size: 5 398 | m_Depth: -1 399 | m_CullingMask: 400 | serializedVersion: 2 401 | m_Bits: 4294967295 402 | m_RenderingPath: -1 403 | m_TargetTexture: {fileID: 0} 404 | m_TargetDisplay: 0 405 | m_TargetEye: 3 406 | m_HDR: 1 407 | m_AllowMSAA: 1 408 | m_AllowDynamicResolution: 0 409 | m_ForceIntoRT: 0 410 | m_OcclusionCulling: 1 411 | m_StereoConvergence: 10 412 | m_StereoSeparation: 0.022 413 | --- !u!4 &1818636311 414 | Transform: 415 | m_ObjectHideFlags: 0 416 | m_CorrespondingSourceObject: {fileID: 0} 417 | m_PrefabInstance: {fileID: 0} 418 | m_PrefabAsset: {fileID: 0} 419 | m_GameObject: {fileID: 1818636308} 420 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 421 | m_LocalPosition: {x: 0, y: 1, z: -10} 422 | m_LocalScale: {x: 1, y: 1, z: 1} 423 | m_Children: [] 424 | m_Father: {fileID: 0} 425 | m_RootOrder: 0 426 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 427 | -------------------------------------------------------------------------------- /Assets/TestSceneWithRefsToDeletedScriptAndSprite.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3281a03037abdd84ba7e21b9f352eb5a 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Alexey Perov 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 | -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 148b1f434bab04b47bcdcf3c31b8d859 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/Editor/MissingReferencesHunter.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "MissingReferencesHunter.Editor", 3 | "references": [], 4 | "includePlatforms": [ 5 | "Editor" 6 | ], 7 | "excludePlatforms": [], 8 | "allowUnsafeCode": false, 9 | "overrideReferences": false, 10 | "precompiledReferences": [], 11 | "autoReferenced": true, 12 | "defineConstraints": [], 13 | "versionDefines": [], 14 | "noEngineReferences": false 15 | } -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/Editor/MissingReferencesHunter.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0bbde703baa0f41328a4cd00c5d14880 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/Editor/MissingReferencesHunter.cs: -------------------------------------------------------------------------------- 1 | // #define LOGS 2 | 3 | using System; 4 | using System.Collections; 5 | using System.Collections.Generic; 6 | using System.IO; 7 | using System.Linq; 8 | using System.Text.RegularExpressions; 9 | using UnityEditor; 10 | using UnityEngine; 11 | using Object = UnityEngine.Object; 12 | 13 | // ReSharper disable StringLiteralTypo 14 | // ReSharper disable UnusedAutoPropertyAccessor.Global 15 | // ReSharper disable MemberCanBePrivate.Global 16 | 17 | 18 | // ReSharper disable once CheckNamespace 19 | namespace MissingReferencesHunter 20 | { 21 | public class MissingReferencesWindow : EditorWindow 22 | { 23 | private class Result 24 | { 25 | public List Assets { get; } = new List(); 26 | public HashSet Guids { get; } = new HashSet(); 27 | public HashSet FileIDs { get; } = new HashSet(); 28 | public string OutputDescription { get; set; } 29 | 30 | public Dictionary FieldTypeCounters { get; } = new Dictionary(); 31 | public int FieldTypeSum { get; set; } 32 | 33 | public int MissingFileIDAndGuidCases { get; set; } 34 | public int MissingFileIDCases { get; set; } 35 | public int MissingGuidCases { get; set; } 36 | public int MissingLocalFileIDCases { get; set; } 37 | public int EmptyFileIDCases { get; set; } 38 | } 39 | 40 | private class OutputSettings 41 | { 42 | public const int PageSize = 35; 43 | 44 | public int? PageToShow { get; set; } 45 | 46 | public string PathFilter { get; set; } 47 | 48 | public bool ShowMissingFileIDAndGuid { get; set; } = true; 49 | public bool ShowMissingGuid { get; set; } = true; 50 | public bool ShowMissingFileID { get; set; } 51 | public bool ShowMissingLocalFileID { get; set; } 52 | public bool ShowEmptyLocalRefs { get; set; } 53 | public bool ShowFileIDIssues { get; set; } 54 | 55 | public HashSet FieldTypesToShow { get; } = new HashSet(); 56 | } 57 | 58 | private Result _result; 59 | private OutputSettings _outputSettings; 60 | 61 | private bool _analysisOngoing; 62 | 63 | private bool _infoFoldout; 64 | 65 | private Vector2 _pagesScroll = Vector2.zero; 66 | private Vector2 _fieldTypesScroll = Vector2.zero; 67 | private Vector2 _assetsScroll = Vector2.zero; 68 | 69 | private readonly List _keyWordsToIgnore = new List 70 | { 71 | "objectReference: {fileID:", 72 | "m_CorrespondingSourceObject: {fileID:", 73 | "m_PrefabInstance: {fileID:", 74 | "m_PrefabAsset: {fileID:", 75 | "m_GameObject: {fileID:", 76 | "m_Icon: {fileID:", 77 | "m_Father: {fileID:" 78 | }; 79 | 80 | private readonly List _keyWordsToIgnoreInSceneAsset = new List 81 | { 82 | "m_OcclusionCullingData: {fileID:", 83 | "m_HaloTexture: {fileID:", 84 | "m_CustomReflection: {fileID:", 85 | "m_Sun: {fileID:", 86 | "m_LightmapParameters: {fileID:", 87 | "m_LightingDataAsset: {fileID:", 88 | "m_LightingSettings: {fileID:", 89 | "m_NavMeshData: {fileID:", 90 | "m_Icon: {fileID:", 91 | "m_StaticBatchRoot: {fileID:", 92 | "m_ProbeAnchor: {fileID:", 93 | "m_LightProbeVolumeOverride: {fileID:", 94 | "m_Cookie: {fileID:", 95 | "m_Flare: {fileID:", 96 | "m_TargetTexture: {fileID:", 97 | }; 98 | 99 | private readonly List _defaultIgnorePatterns = new List 100 | { 101 | @"ProjectSettings/", 102 | @"Packages/", 103 | @"\.asmdef$", 104 | @"link\.xml$", 105 | @"\.csv$", 106 | @"\.md$", 107 | @"\.json$", 108 | @"\.xml$", 109 | @"\.txt$" 110 | }; 111 | 112 | [MenuItem("Tools/Missing References Hunter")] 113 | public static void LaunchUnreferencedAssetsWindow() 114 | { 115 | GetWindow("Missing References"); 116 | } 117 | 118 | private void OnDestroy() 119 | { 120 | Clear(); 121 | } 122 | 123 | private static void Clear() 124 | { 125 | EditorUtility.UnloadUnusedAssetsImmediate(); 126 | } 127 | 128 | private IEnumerator PopulateMissingReferencesList() 129 | { 130 | _analysisOngoing = true; 131 | 132 | _result = new Result(); 133 | 134 | _outputSettings = new OutputSettings 135 | { 136 | PageToShow = 0 137 | }; 138 | 139 | Clear(); 140 | Show(); 141 | 142 | var assetPaths = AssetDatabase.GetAllAssetPaths().ToList(); 143 | 144 | EditorUtility.ClearProgressBar(); 145 | 146 | var regexFileAndGuid = new Regex(@"fileID: \d+, guid: [a-f0-9]" + "{" + "32" + "}"); 147 | var regexFileID = new Regex(@"{fileID: \d+}"); 148 | var regexTypeStart = new Regex(@"^[a-zA-Z0-9_ ]+:"); 149 | 150 | var count = 0; 151 | for (var assetIndex = 0; assetIndex < assetPaths.Count; assetIndex++) 152 | { 153 | if (assetIndex % 20000 == 0) 154 | { 155 | GC.Collect(); 156 | yield return 0.05f; 157 | GC.Collect(); 158 | } 159 | 160 | var assetPath = assetPaths[assetIndex]; 161 | EditorUtility.DisplayProgressBar("Missing References", "Searching for missing references", 162 | (float)count / assetPaths.Count); 163 | count++; 164 | 165 | var assetObject = AssetDatabase.LoadAssetAtPath(assetPath); 166 | 167 | if (assetObject == null) 168 | { 169 | Debug.LogWarning($"Unable to load an asset at path: {assetPath}"); 170 | continue; 171 | } 172 | 173 | if (!AssetDatabase.TryGetGUIDAndLocalFileIdentifier(assetObject, out var guidStr, out long fileId)) 174 | { 175 | Debug.LogWarning($"Unable to load guid and local id at path: {assetPath}"); 176 | continue; 177 | } 178 | 179 | _result.Guids.Add(guidStr); 180 | _result.FileIDs.Add(fileId); 181 | 182 | var isIncluded = IsIncludedInAnalysis(assetPath); 183 | 184 | if (!isIncluded) 185 | continue; 186 | 187 | var type = AssetDatabase.GetMainAssetTypeAtPath(assetPath); 188 | var validAssetType = IsValidType(assetPath, type); 189 | 190 | if (!validAssetType) 191 | continue; 192 | 193 | if (!CanAnalyzeType(type)) 194 | continue; 195 | 196 | var typeName = GetReadableTypeName(type); 197 | 198 | var lines = TryReadAsLines(assetPath); 199 | 200 | #if LOGS 201 | Debug.LogWarning("[Analyzing: " + assetPath + " Lines: " + lines.Length + "]"); 202 | #endif 203 | 204 | var refsData = new AssetReferencesData(); 205 | 206 | if (lines.Length > 0) 207 | { 208 | for (var index = 0; index < lines.Length; index++) 209 | { 210 | var lineOriginal = lines[index]; 211 | var line = lineOriginal; 212 | 213 | var systemLine = false; 214 | 215 | foreach (var keyword in _keyWordsToIgnore) 216 | { 217 | if (line.Contains(keyword)) 218 | { 219 | systemLine = true; 220 | break; 221 | } 222 | } 223 | 224 | if (systemLine) 225 | { 226 | continue; 227 | } 228 | 229 | if (type == typeof(SceneAsset)) 230 | { 231 | foreach (var keyword in _keyWordsToIgnoreInSceneAsset) 232 | { 233 | if (line.Contains(keyword)) 234 | { 235 | systemLine = true; 236 | break; 237 | } 238 | } 239 | } 240 | 241 | if (systemLine) 242 | { 243 | continue; 244 | } 245 | 246 | if (line.Contains("guid:")) 247 | { 248 | var guidMatches = regexFileAndGuid.Matches(line); 249 | 250 | for (var i = 0; i < guidMatches.Count; i++) 251 | { 252 | var match = guidMatches[i]; 253 | var str = match.Value; 254 | 255 | var localIdPart = str.Substring(7, str.IndexOf(",", StringComparison.Ordinal) - 7); 256 | localIdPart = localIdPart.Trim(); 257 | 258 | if (!long.TryParse(localIdPart, out var localFileID)) 259 | { 260 | Debug.LogWarning($"Unable to parse local id {localIdPart}"); 261 | } 262 | 263 | var externalGuid = str.Substring(str.Length - 32); 264 | var guidValid = !externalGuid.StartsWith("0000000000"); 265 | var localIdValid = localFileID > 0; 266 | 267 | if (!localIdValid && !guidValid) 268 | { 269 | Debug.LogWarning($"Both local id and guid are invalid at {str}"); 270 | continue; 271 | } 272 | 273 | var referenceData = new ExternalReferenceRegistry(localIdValid, guidValid, localFileID, 274 | externalGuid, index); 275 | refsData.ExternalReferences.Add(referenceData); 276 | 277 | var extendedPlaceDataRecorded = false; 278 | 279 | if (guidValid) 280 | { 281 | var existsInAssets = _result.Guids.Contains(externalGuid) || 282 | !string.IsNullOrEmpty( 283 | AssetDatabase.GUIDToAssetPath(externalGuid)); 284 | 285 | referenceData.GuidExistsInAssets = existsInAssets; 286 | 287 | if (!existsInAssets) 288 | { 289 | RecordGuidPlaceData(index, lines, referenceData); 290 | extendedPlaceDataRecorded = true; 291 | } 292 | } 293 | 294 | if (!extendedPlaceDataRecorded) 295 | { 296 | referenceData.Sample.Add(lines[index]); 297 | } 298 | 299 | FindFieldType(regexTypeStart, index, lines, referenceData); 300 | } 301 | } 302 | else if (line.Contains("fileID:")) 303 | { 304 | var fileIdMatches = regexFileID.Matches(line); 305 | 306 | for (var i = 0; i < fileIdMatches.Count; i++) 307 | { 308 | var match = fileIdMatches[i]; 309 | var str = match.Value; 310 | 311 | str = str.Substring(9); 312 | str = str.Replace("}", string.Empty); 313 | 314 | var localFileID = str; 315 | 316 | #if LOGS 317 | Debug.Log($"Found FileID: {localFileID} [Length: {localFileID.Length}] at {index}"); 318 | #endif 319 | 320 | if (localFileID == "0") 321 | { 322 | refsData.EmptyFileIDs.Add(new EmptyLocalFileIDRegistry(index)); 323 | } 324 | else 325 | { 326 | if (long.TryParse(localFileID, out var id)) 327 | { 328 | refsData.LocalReferences.Add(new LocalReferenceRegistry(id, index)); 329 | } 330 | else 331 | { 332 | Debug.LogWarning($"Unable to parse local id {localFileID}"); 333 | } 334 | } 335 | } 336 | } 337 | } 338 | } 339 | 340 | foreach (var localId in refsData.LocalReferences) 341 | { 342 | for (var index = 0; index < lines.Length; index++) 343 | { 344 | var line = lines[index]; 345 | if (index != localId.Line && line.Contains(localId.IdStr)) 346 | { 347 | localId.LocalUsagesCount++; 348 | } 349 | } 350 | } 351 | 352 | _result.Assets.Add(new AssetData(assetPath, type, typeName, guidStr, refsData)); 353 | } 354 | 355 | GC.Collect(); 356 | yield return 0.05f; 357 | GC.Collect(); 358 | 359 | foreach (var asset in _result.Assets) 360 | { 361 | foreach (var registry in asset.RefsData.LocalReferences) 362 | { 363 | registry.ExistsInAssets = _result.FileIDs.Contains(registry.Id); 364 | } 365 | 366 | foreach (var registry in asset.RefsData.ExternalReferences) 367 | { 368 | if (registry.FileIDValid) 369 | { 370 | registry.FileIDExistsInAssets = _result.FileIDs.Contains(registry.FileID) 371 | || asset.RefsData.LocalReferences.Any(x => x.Id == registry.FileID); 372 | } 373 | } 374 | 375 | asset.RefsData.CalculateCounters(); 376 | 377 | foreach (var registry in asset.RefsData.ExternalReferences) 378 | { 379 | if (!string.IsNullOrWhiteSpace(registry.FieldType) && registry.WarningLevel > 0) 380 | { 381 | asset.MissingFieldTypes.Add(registry.FieldType); 382 | 383 | if (!_result.FieldTypeCounters.ContainsKey(registry.FieldType)) 384 | _result.FieldTypeCounters[registry.FieldType] = 1; 385 | else 386 | _result.FieldTypeCounters[registry.FieldType] += 1; 387 | 388 | _result.FieldTypeSum++; 389 | } 390 | } 391 | } 392 | 393 | _result.MissingFileIDAndGuidCases = _result.Assets.Count(x => x.RefsData.MissingFileIDAndGuid > 0); 394 | _result.MissingGuidCases = _result.Assets.Count(x => x.RefsData.MissingGuid > 0); 395 | _result.MissingFileIDCases = _result.Assets.Count(x => x.RefsData.MissingFileID > 0); 396 | _result.MissingLocalFileIDCases = _result.Assets.Count(x => x.RefsData.MissingLocalFileID > 0); 397 | _result.EmptyFileIDCases = _result.Assets.Count(x => x.RefsData.EmptyFileIDs.Count > 0); 398 | 399 | var casesWithNoWarnings = _result.Assets.Count(x => !x.RefsData.HasWarnings); 400 | var assetsWithWarnings = _result.Assets.Count - casesWithNoWarnings; 401 | 402 | _result.OutputDescription = $"Assets with GUID related Issues: {assetsWithWarnings}"; 403 | 404 | EditorUtility.ClearProgressBar(); 405 | 406 | Debug.Log(_result.OutputDescription); 407 | 408 | _analysisOngoing = false; 409 | 410 | string[] TryReadAsLines(string path) 411 | { 412 | if (Directory.Exists(path)) 413 | return Array.Empty(); 414 | 415 | try 416 | { 417 | return File.ReadAllLines(path); 418 | } 419 | catch (Exception e) 420 | { 421 | Debug.LogError(e); 422 | return Array.Empty(); 423 | } 424 | } 425 | 426 | string GetReadableTypeName(Type type) 427 | { 428 | string typeName; 429 | 430 | if (type != null) 431 | { 432 | typeName = type.ToString(); 433 | typeName = typeName.Replace("UnityEngine.", string.Empty); 434 | typeName = typeName.Replace("UnityEditor.", string.Empty); 435 | } 436 | else 437 | { 438 | typeName = "Missing Type"; 439 | } 440 | 441 | return typeName; 442 | } 443 | 444 | bool IsIncludedInAnalysis(string path) 445 | { 446 | var notExcluded = _defaultIgnorePatterns.All(pattern 447 | => string.IsNullOrEmpty(pattern) || !Regex.Match(path, pattern).Success); 448 | 449 | return notExcluded; 450 | } 451 | 452 | bool IsValidType(string path, Type type) 453 | { 454 | if (type != null) 455 | { 456 | if (type == typeof(DefaultAsset)) // DefaultAsset goes for e.g. folders. 457 | { 458 | return false; 459 | } 460 | 461 | return true; 462 | } 463 | Debug.LogWarning($"Invalid asset type found at {path}"); 464 | return false; 465 | } 466 | 467 | bool CanAnalyzeType(Type type) 468 | { 469 | return type == typeof(GameObject) || type == typeof(SceneAsset) 470 | || DerivesFromOrEqual(type, typeof(ScriptableObject)); 471 | } 472 | 473 | static bool DerivesFromOrEqual(Type a, Type b) 474 | { 475 | #if UNITY_WSA && ENABLE_DOTNET && !UNITY_EDITOR 476 | return b == a || b.GetTypeInfo().IsAssignableFrom(a.GetTypeInfo()); 477 | #else 478 | return b == a || b.IsAssignableFrom(a); 479 | #endif 480 | } 481 | } 482 | 483 | private static void FindFieldType(Regex regexTypeStart, int index, string[] lines, ExternalReferenceRegistry referenceData) 484 | { 485 | for (var j = index; j >= 0; j--) 486 | { 487 | var match = regexTypeStart.Match(lines[j]); 488 | if (match.Success) 489 | { 490 | var typeValue = match.Value.Replace(":", string.Empty).Trim(); 491 | if (!string.IsNullOrWhiteSpace(typeValue)) 492 | { 493 | referenceData.FieldType = typeValue; 494 | break; 495 | } 496 | } 497 | } 498 | } 499 | 500 | private static void RecordGuidPlaceData(int index, string[] lines, ExternalReferenceRegistry referenceData) 501 | { 502 | for (var j = index - 4; j < index + 5; j++) 503 | { 504 | if (j >= 0 && j < lines.Length) 505 | { 506 | referenceData.Sample.Add(lines[j]); 507 | } 508 | } 509 | 510 | var holderName = string.Empty; 511 | const string nameTag = "m_Name:"; 512 | 513 | for (var j = index; j >= 0; j--) 514 | { 515 | if (lines[j].Contains(nameTag)) 516 | { 517 | var nameCandidate = lines[j].Replace(nameTag, string.Empty).Trim(); 518 | 519 | if (!string.IsNullOrWhiteSpace(nameCandidate)) 520 | { 521 | holderName = nameCandidate; 522 | break; 523 | } 524 | } 525 | } 526 | 527 | referenceData.HolderName = holderName; 528 | } 529 | 530 | private void OnGUI() 531 | { 532 | GUIUtilities.HorizontalLine(); 533 | 534 | DrawAnalysisControlSection(); 535 | 536 | GUIUtilities.HorizontalLine(); 537 | 538 | DrawInfoSection(); 539 | 540 | GUIUtilities.HorizontalLine(); 541 | 542 | if (_result == null || _analysisOngoing) 543 | { 544 | return; 545 | } 546 | 547 | if (_result.Assets.Count == 0) 548 | { 549 | EditorGUILayout.LabelField("No missing references found"); 550 | return; 551 | } 552 | 553 | var assets = _result.Assets; 554 | 555 | if (!string.IsNullOrEmpty(_outputSettings.PathFilter)) 556 | { 557 | assets = assets.Where(x => x.Path.Contains(_outputSettings.PathFilter)).ToList(); 558 | } 559 | 560 | var filteredAssets = new List(); 561 | 562 | foreach (var asset in assets) 563 | { 564 | if (_outputSettings.FieldTypesToShow.Count > 0) 565 | { 566 | if (!_outputSettings.FieldTypesToShow.Any(x => asset.MissingFieldTypes.Contains(x))) 567 | { 568 | continue; 569 | } 570 | } 571 | 572 | if (_outputSettings.ShowMissingFileIDAndGuid && asset.RefsData.MissingFileIDAndGuid > 0) 573 | { 574 | filteredAssets.Add(asset); 575 | continue; 576 | } 577 | 578 | if (_outputSettings.ShowMissingFileID && asset.RefsData.MissingFileID > 0) 579 | { 580 | filteredAssets.Add(asset); 581 | continue; 582 | } 583 | 584 | if (_outputSettings.ShowMissingGuid && asset.RefsData.MissingGuid > 0) 585 | { 586 | filteredAssets.Add(asset); 587 | continue; 588 | } 589 | 590 | if (_outputSettings.ShowMissingLocalFileID && asset.RefsData.MissingLocalFileID > 0) 591 | { 592 | filteredAssets.Add(asset); 593 | continue; 594 | } 595 | 596 | if (_outputSettings.ShowEmptyLocalRefs && asset.RefsData.EmptyFileIDs.Count > 0) 597 | { 598 | filteredAssets.Add(asset); 599 | } 600 | } 601 | 602 | EditorGUILayout.BeginHorizontal(); 603 | EditorGUILayout.LabelField(_result.OutputDescription); 604 | 605 | EditorGUILayout.EndHorizontal(); 606 | 607 | _pagesScroll = EditorGUILayout.BeginScrollView(_pagesScroll); 608 | 609 | EditorGUILayout.BeginHorizontal(); 610 | 611 | var prevColor = GUI.color; 612 | GUI.color = !_outputSettings.PageToShow.HasValue ? Color.yellow : Color.white; 613 | 614 | if (GUILayout.Button("All", GUILayout.Width(30f))) 615 | { 616 | _outputSettings.PageToShow = null; 617 | } 618 | 619 | GUI.color = prevColor; 620 | 621 | var totalCount = filteredAssets.Count; 622 | var pagesCount = totalCount / OutputSettings.PageSize + (totalCount % OutputSettings.PageSize > 0 ? 1 : 0); 623 | 624 | for (var i = 0; i < pagesCount; i++) 625 | { 626 | prevColor = GUI.color; 627 | GUI.color = _outputSettings.PageToShow == i ? Color.yellow : Color.white; 628 | 629 | if (GUILayout.Button((i + 1).ToString(), GUILayout.Width(30f))) 630 | { 631 | _outputSettings.PageToShow = i; 632 | } 633 | 634 | GUI.color = prevColor; 635 | } 636 | 637 | if (_outputSettings.PageToShow.HasValue && _outputSettings.PageToShow > pagesCount - 1) 638 | { 639 | _outputSettings.PageToShow = pagesCount - 1; 640 | } 641 | 642 | if (_outputSettings.PageToShow.HasValue && pagesCount == 0) 643 | { 644 | _outputSettings.PageToShow = null; 645 | } 646 | 647 | EditorGUILayout.EndHorizontal(); 648 | EditorGUILayout.EndScrollView(); 649 | 650 | GUIUtilities.HorizontalLine(); 651 | 652 | EditorGUILayout.BeginHorizontal(); 653 | 654 | var textFieldStyle = EditorStyles.textField; 655 | var prevTextFieldAlignment = textFieldStyle.alignment; 656 | textFieldStyle.alignment = TextAnchor.MiddleCenter; 657 | 658 | _outputSettings.PathFilter = EditorGUILayout.TextField("Path Contains:", 659 | _outputSettings.PathFilter, GUILayout.Width(400f)); 660 | 661 | EditorGUILayout.EndHorizontal(); 662 | 663 | GUIUtilities.HorizontalLine(); 664 | 665 | EditorGUILayout.LabelField("Filter by Type:"); 666 | 667 | _fieldTypesScroll = GUILayout.BeginScrollView(_fieldTypesScroll); 668 | 669 | EditorGUILayout.BeginHorizontal(); 670 | 671 | prevColor = GUI.color; 672 | 673 | var allSelected = _outputSettings.FieldTypesToShow.Count == 0 || 674 | _outputSettings.FieldTypesToShow.Count == _result.FieldTypeCounters.Count; 675 | 676 | GUI.color = allSelected ? Color.cyan : Color.white; 677 | 678 | if (GUILayout.Button($"All [{_result.FieldTypeSum}]")) 679 | { 680 | if (allSelected) 681 | _outputSettings.FieldTypesToShow.Clear(); 682 | else 683 | { 684 | foreach (var (key, _) in _result.FieldTypeCounters) 685 | { 686 | _outputSettings.FieldTypesToShow.Add(key); 687 | } 688 | } 689 | } 690 | 691 | GUI.color = prevColor; 692 | 693 | foreach (var pair in _result.FieldTypeCounters) 694 | { 695 | prevColor = GUI.color; 696 | 697 | var selected = _outputSettings.FieldTypesToShow.Contains(pair.Key); 698 | 699 | GUI.color = selected ? Color.cyan : Color.white; 700 | 701 | if (GUILayout.Button($"{pair.Key}")) 702 | { 703 | if (_outputSettings.FieldTypesToShow.Contains(pair.Key)) 704 | _outputSettings.FieldTypesToShow.Remove(pair.Key); 705 | else 706 | _outputSettings.FieldTypesToShow.Add(pair.Key); 707 | } 708 | 709 | GUI.color = prevColor; 710 | } 711 | 712 | EditorGUILayout.EndHorizontal(); 713 | 714 | GUILayout.EndScrollView(); 715 | 716 | GUIUtilities.HorizontalLine(); 717 | 718 | EditorGUILayout.BeginHorizontal(); 719 | 720 | var assetsWithMissingExternalRefs = $"Missing both FileID and Guid [{_result.MissingFileIDAndGuidCases}]: "; 721 | GUI.color = _outputSettings.ShowMissingFileIDAndGuid ? Color.red : Color.gray; 722 | if (GUILayout.Button(assetsWithMissingExternalRefs + (_outputSettings.ShowMissingFileIDAndGuid ? "Shown" : "Hidden"))) 723 | { 724 | _outputSettings.ShowMissingFileIDAndGuid = !_outputSettings.ShowMissingFileIDAndGuid; 725 | } 726 | 727 | var assetsWithMissingGuids = $"Missing Guid [{_result.MissingGuidCases}]: "; 728 | GUI.color = _outputSettings.ShowMissingGuid ? Color.yellow : Color.gray; 729 | if (GUILayout.Button(assetsWithMissingGuids + (_outputSettings.ShowMissingGuid ? "Shown" : "Hidden"))) 730 | { 731 | _outputSettings.ShowMissingGuid = !_outputSettings.ShowMissingGuid; 732 | } 733 | 734 | EditorGUILayout.EndHorizontal(); 735 | 736 | EditorGUILayout.BeginHorizontal(); 737 | 738 | GUI.color = prevColor; 739 | 740 | _outputSettings.ShowFileIDIssues = 741 | EditorGUILayout.Toggle("Show FileID Issues:", _outputSettings.ShowFileIDIssues); 742 | 743 | GUILayout.FlexibleSpace(); 744 | 745 | EditorGUILayout.EndHorizontal(); 746 | 747 | if (_outputSettings.ShowFileIDIssues) 748 | { 749 | EditorGUILayout.BeginHorizontal(); 750 | 751 | var assetsWithMissingFileID = $"Missing FileID [{_result.MissingFileIDCases}]: "; 752 | GUI.color = _outputSettings.ShowMissingFileID ? Color.cyan : Color.gray; 753 | if (GUILayout.Button(assetsWithMissingFileID + 754 | (_outputSettings.ShowMissingFileID ? "Shown" : "Hidden"))) 755 | { 756 | _outputSettings.ShowMissingFileID = !_outputSettings.ShowMissingFileID; 757 | } 758 | 759 | var assetWithMissingLocalFileID = $"Missing Local FileID [{_result.MissingLocalFileIDCases}]: "; 760 | GUI.color = _outputSettings.ShowMissingLocalFileID ? Color.cyan : Color.gray; 761 | if (GUILayout.Button(assetWithMissingLocalFileID + 762 | (_outputSettings.ShowMissingLocalFileID ? "Shown" : "Hidden"))) 763 | { 764 | _outputSettings.ShowMissingLocalFileID = !_outputSettings.ShowMissingLocalFileID; 765 | } 766 | 767 | var assetWithEmptyLocalFileID = $"Empty Local FileID [{_result.EmptyFileIDCases}]: "; 768 | GUI.color = _outputSettings.ShowEmptyLocalRefs ? Color.cyan : Color.gray; 769 | if (GUILayout.Button(assetWithEmptyLocalFileID + 770 | (_outputSettings.ShowEmptyLocalRefs ? "Shown" : "Hidden"))) 771 | { 772 | _outputSettings.ShowEmptyLocalRefs = !_outputSettings.ShowEmptyLocalRefs; 773 | } 774 | 775 | EditorGUILayout.EndHorizontal(); 776 | } 777 | 778 | GUI.color = prevColor; 779 | 780 | textFieldStyle.alignment = prevTextFieldAlignment; 781 | 782 | GUIUtilities.HorizontalLine(); 783 | 784 | _assetsScroll = GUILayout.BeginScrollView(_assetsScroll); 785 | 786 | EditorGUILayout.BeginVertical(); 787 | 788 | for (var i = 0; i < filteredAssets.Count; i++) 789 | { 790 | if (_outputSettings.PageToShow.HasValue) 791 | { 792 | var page = _outputSettings.PageToShow.Value; 793 | if (i < page * OutputSettings.PageSize || i >= (page + 1) * OutputSettings.PageSize) 794 | { 795 | continue; 796 | } 797 | } 798 | 799 | var asset = filteredAssets[i]; 800 | EditorGUILayout.BeginHorizontal(); 801 | 802 | if (GUILayout.Button(!asset.Foldout ? "Expand >>>" : "Colapse <<<", GUILayout.Width(100f))) 803 | { 804 | asset.Foldout = !asset.Foldout; 805 | } 806 | 807 | EditorGUILayout.LabelField(i.ToString(), GUILayout.Width(25f)); 808 | 809 | prevColor = GUI.color; 810 | GUI.color = asset.ValidType ? Color.white : Color.red; 811 | EditorGUILayout.LabelField(asset.TypeName.Length > 16 812 | ? (asset.TypeName.Substring(0, 14) + "..") : asset.TypeName, GUILayout.Width(100f)); 813 | GUI.color = prevColor; 814 | 815 | if (asset.ValidType) 816 | { 817 | var guiContent = EditorGUIUtility.ObjectContent(null, asset.Type); 818 | guiContent.text = Path.GetFileName(asset.Path); 819 | 820 | var alignment = GUI.skin.button.alignment; 821 | GUI.skin.button.alignment = TextAnchor.MiddleLeft; 822 | 823 | if (GUILayout.Button(guiContent, GUILayout.Width(280f), GUILayout.Height(18f))) 824 | { 825 | Selection.objects = new[] { AssetDatabase.LoadMainAssetAtPath(asset.Path) }; 826 | } 827 | 828 | GUI.skin.button.alignment = alignment; 829 | } 830 | 831 | prevColor = GUI.color; 832 | GUI.color = asset.RefsData.MissingFileIDAndGuid > 0 ? Color.red : Color.white; 833 | EditorGUILayout.LabelField("Missing FileID and Guid: " + asset.RefsData.MissingFileIDAndGuid, GUILayout.Width(160f)); 834 | GUI.color = asset.RefsData.MissingGuid > 0 ? Color.yellow : Color.white; 835 | EditorGUILayout.LabelField("Missing Guid: " + asset.RefsData.MissingGuid, GUILayout.Width(120f)); 836 | 837 | if (_outputSettings.ShowFileIDIssues) 838 | { 839 | GUI.color = asset.RefsData.MissingFileID > 0 ? Color.cyan : Color.white; 840 | EditorGUILayout.LabelField("Missing FileID: " + asset.RefsData.MissingFileID, 841 | GUILayout.Width(120f)); 842 | GUI.color = asset.RefsData.MissingLocalFileID > 0 ? Color.yellow : Color.white; 843 | EditorGUILayout.LabelField("Missing Local FileID: " + asset.RefsData.MissingLocalFileID, 844 | GUILayout.Width(140f)); 845 | GUI.color = asset.RefsData.EmptyFileIDs.Count > 0 ? Color.white : Color.gray; 846 | EditorGUILayout.LabelField("Empty FileID: " + asset.RefsData.EmptyFileIDs.Count, 847 | GUILayout.Width(140f)); 848 | } 849 | 850 | GUI.color = prevColor; 851 | 852 | EditorGUILayout.EndHorizontal(); 853 | 854 | 855 | if (asset.Foldout) 856 | { 857 | GUIUtilities.HorizontalLine(); 858 | 859 | if (_outputSettings.ShowMissingFileIDAndGuid || _outputSettings.ShowMissingFileID || 860 | _outputSettings.ShowMissingGuid) 861 | { 862 | foreach (var registry in asset.RefsData.ExternalReferences.Where(x => x.WarningLevel > 0)) 863 | { 864 | var fileIdIssue = registry.FileIDValid && !registry.FileIDExistsInAssets; 865 | var guidIssue = registry.GuidValid && !registry.GuidExistsInAssets; 866 | 867 | if (!_outputSettings.ShowMissingFileID && !guidIssue) 868 | continue; 869 | 870 | if (fileIdIssue) 871 | { 872 | if (_outputSettings.ShowFileIDIssues || guidIssue) 873 | { 874 | EditorGUILayout.BeginHorizontal(); 875 | prevColor = GUI.color; 876 | GUI.color = Color.yellow; 877 | EditorGUILayout.LabelField($"Missing FileID {registry.FileID}"); 878 | GUI.color = prevColor; 879 | if (GUILayout.Button("Copy")) 880 | { 881 | GUIUtility.systemCopyBuffer = registry.FileID.ToString(); 882 | } 883 | 884 | GUILayout.FlexibleSpace(); 885 | EditorGUILayout.EndHorizontal(); 886 | } 887 | else 888 | { 889 | continue; 890 | } 891 | } 892 | 893 | if (guidIssue) 894 | { 895 | EditorGUILayout.BeginHorizontal(); 896 | prevColor = GUI.color; 897 | GUI.color = Color.yellow; 898 | EditorGUILayout.LabelField($"Missing GUID {registry.Guid}", GUILayout.Width(310f)); 899 | GUI.color = prevColor; 900 | if (GUILayout.Button("Copy")) 901 | { 902 | GUIUtility.systemCopyBuffer = registry.Guid; 903 | } 904 | 905 | GUILayout.FlexibleSpace(); 906 | EditorGUILayout.EndHorizontal(); 907 | } 908 | 909 | var holderPostfix = string.Empty; 910 | 911 | if (!string.IsNullOrEmpty(registry.HolderName)) 912 | { 913 | holderPostfix = $"in [{registry.HolderName}] "; 914 | } 915 | 916 | var typePostfix = string.Empty; 917 | 918 | if (!string.IsNullOrEmpty(registry.FieldType)) 919 | { 920 | typePostfix = $" [{registry.FieldType}]"; 921 | } 922 | 923 | EditorGUILayout.LabelField($"{holderPostfix}at line [{registry.Line + 1}]{typePostfix}"); 924 | 925 | prevColor = GUI.color; 926 | 927 | foreach (var sampleLine in registry.Sample) 928 | { 929 | GUI.color = sampleLine.Contains(registry.Guid) ? Color.white : Color.gray; 930 | EditorGUILayout.LabelField($"> {sampleLine}"); 931 | } 932 | 933 | GUI.color = prevColor; 934 | 935 | GUIUtilities.HorizontalLine(); 936 | } 937 | } 938 | 939 | if (_outputSettings.ShowEmptyLocalRefs || _outputSettings.ShowMissingLocalFileID) 940 | { 941 | foreach (var unknownLocalId in asset.RefsData.LocalReferences.Where(x => 942 | x.LocalUsagesCount == 0 && !x.ExistsInAssets)) 943 | { 944 | EditorGUILayout.LabelField( 945 | $"Unknown FileID at [{unknownLocalId.Line + 1}] {unknownLocalId.Id}"); 946 | GUIUtilities.HorizontalLine(); 947 | } 948 | } 949 | } 950 | 951 | GUIUtilities.HorizontalLine(); 952 | } 953 | 954 | GUILayout.FlexibleSpace(); 955 | 956 | EditorGUILayout.EndVertical(); 957 | GUILayout.EndScrollView(); 958 | } 959 | 960 | private void DrawAnalysisControlSection() 961 | { 962 | EditorGUILayout.BeginHorizontal(); 963 | 964 | GUILayout.FlexibleSpace(); 965 | 966 | var prevColor = GUI.color; 967 | GUI.color = Color.green; 968 | 969 | if (_analysisOngoing) 970 | { 971 | GUILayout.Label("Analysis ongoing..."); 972 | } 973 | else 974 | { 975 | if (GUILayout.Button("Run Analysis", GUILayout.Width(300f))) 976 | { 977 | PocketEditorCoroutine.Start(PopulateMissingReferencesList(), this); 978 | } 979 | } 980 | 981 | GUI.color = prevColor; 982 | 983 | GUILayout.FlexibleSpace(); 984 | 985 | EditorGUILayout.EndHorizontal(); 986 | } 987 | 988 | private void DrawInfoSection() 989 | { 990 | EditorGUILayout.LabelField("[Missing FileID and Guid] - in 100% of cases indicates an error"); 991 | EditorGUILayout.LabelField("[Missing Guid] - most likely indicates an error"); 992 | EditorGUILayout.LabelField("Other FileID issues most likely do not indicate errors and are hidden by default"); 993 | 994 | _infoFoldout = EditorGUILayout.Foldout(_infoFoldout, "Full Info"); 995 | 996 | if (!_infoFoldout) 997 | { 998 | return; 999 | } 1000 | 1001 | EditorGUILayout.BeginVertical(); 1002 | 1003 | EditorGUILayout.LabelField("Unity uses FileID and GUID entities to identify and assign assets to each other"); 1004 | EditorGUILayout.LabelField("This tool scans all assets to find all FileIDs and / or GUIDs that are assigned to a field"); 1005 | EditorGUILayout.LabelField("but do not exist neither in current asset nor in all project"); 1006 | 1007 | GUIUtilities.HorizontalLine(); 1008 | 1009 | EditorGUILayout.LabelField("There are several types of issues that might occur during this analysis"); 1010 | 1011 | var prevColor = GUI.color; 1012 | GUI.color = Color.red; 1013 | 1014 | EditorGUILayout.LabelField("[Missing FileID and Guid] - both identificators do not exist"); 1015 | EditorGUILayout.LabelField("* in that case we are 100% sure that there is a missing reference so we mark it with red color"); 1016 | 1017 | GUI.color = Color.yellow; 1018 | 1019 | EditorGUILayout.LabelField("[Missing Guid] - only Guid does not exist"); 1020 | EditorGUILayout.LabelField("[Missing FileId] - only FileId does not exist"); 1021 | 1022 | EditorGUILayout.LabelField("* this issues need further investigation by you"); 1023 | EditorGUILayout.LabelField("* there might be or not a missing reference since it can be somehow processed by some internal code"); 1024 | EditorGUILayout.LabelField("* however [Missing Guid] most of the times indicates that there are some errors so we mark it as yellow"); 1025 | EditorGUILayout.LabelField("* [Missing FileId] usually involves more internal nuances and less likely indicates an error and so we mark it as non-warning (cyan)"); 1026 | 1027 | GUI.color = Color.white; 1028 | 1029 | GUIUtilities.HorizontalLine(); 1030 | 1031 | GUI.color = Color.cyan; 1032 | 1033 | EditorGUILayout.LabelField("In most cases you just need to fix [Missing FileID and Guid] and [Missing Guid] issues"); 1034 | EditorGUILayout.LabelField("That is why other filters are hidden by default and most of the users won't need them"); 1035 | 1036 | GUI.color = Color.white; 1037 | 1038 | GUIUtilities.HorizontalLine(); 1039 | 1040 | EditorGUILayout.LabelField("* please also note that not all missing references are presented in Unity inspector"); 1041 | EditorGUILayout.LabelField("* some of them might be hidden if current serialization doesn't cover fields that contain errors"); 1042 | EditorGUILayout.LabelField("* or some of them might be replaced by custom inspectors etc etc"); 1043 | 1044 | GUI.color = Color.yellow; 1045 | 1046 | EditorGUILayout.LabelField("* so in some cases you need to enable Debug inspector view or even dive into the asset file text contents"); 1047 | 1048 | GUI.color = Color.white; 1049 | 1050 | GUIUtilities.HorizontalLine(); 1051 | 1052 | EditorGUILayout.LabelField("This tool also collects some other info:"); 1053 | 1054 | EditorGUILayout.LabelField("[Missing Local FileID] - might indicate that there is some issue with internal objects referencing each other"); 1055 | EditorGUILayout.LabelField("[Empty Local FileID] - might indicate an empty internal field"); 1056 | EditorGUILayout.LabelField("* these two fields most likely won't provide any usefull data for most users"); 1057 | EditorGUILayout.LabelField("* however since we collect it for the analysis purpose we kept them in UI"); 1058 | 1059 | EditorGUILayout.EndVertical(); 1060 | 1061 | GUI.color = prevColor; 1062 | 1063 | GUIUtilities.HorizontalLine(); 1064 | } 1065 | } 1066 | 1067 | public class LocalReferenceRegistry 1068 | { 1069 | public LocalReferenceRegistry(long id, int line) 1070 | { 1071 | Id = id; 1072 | IdStr = id.ToString(); 1073 | Line = line; 1074 | } 1075 | 1076 | public bool IdValid => Id > 0; 1077 | 1078 | public long Id { get; } 1079 | public string IdStr { get; } 1080 | public int Line { get; } 1081 | 1082 | public int LocalUsagesCount { get; set; } 1083 | public bool ExistsInAssets { get; set; } 1084 | } 1085 | 1086 | public class EmptyLocalFileIDRegistry 1087 | { 1088 | public EmptyLocalFileIDRegistry(int line) 1089 | { 1090 | Line = line; 1091 | } 1092 | 1093 | public int Line { get; } 1094 | } 1095 | 1096 | public class ExternalReferenceRegistry 1097 | { 1098 | public ExternalReferenceRegistry( 1099 | bool fileIdValid, bool guidValid, 1100 | long fileId, string guid, int line) 1101 | { 1102 | FileIDValid = fileIdValid; 1103 | GuidValid = guidValid; 1104 | FileID = fileId; 1105 | Guid = guid; 1106 | Line = line; 1107 | } 1108 | 1109 | public bool FileIDValid { get; } 1110 | public bool GuidValid { get; } 1111 | 1112 | public long FileID { get; } 1113 | public string Guid { get; } 1114 | 1115 | public int Line { get; } 1116 | 1117 | public string FieldType { get; set; } 1118 | 1119 | public List Sample { get; } = new List(); 1120 | public bool FileIDExistsInAssets { get; set; } 1121 | public bool GuidExistsInAssets { get; set; } 1122 | public string HolderName { get; set; } 1123 | 1124 | public int WarningLevel { get; private set; } 1125 | 1126 | public void UpdateWarningLevel() 1127 | { 1128 | WarningLevel = 0; 1129 | 1130 | if (FileIDValid && !FileIDExistsInAssets) 1131 | WarningLevel++; 1132 | 1133 | if (GuidValid && !GuidExistsInAssets) 1134 | WarningLevel++; 1135 | } 1136 | } 1137 | 1138 | public class AssetReferencesData 1139 | { 1140 | public List ExternalReferences { get; } = new List(); 1141 | public List LocalReferences { get; } = new List(); 1142 | public List EmptyFileIDs { get; } = new List(); 1143 | 1144 | public int MissingFileIDAndGuid { get; private set; } 1145 | public int MissingGuid { get; private set; } 1146 | public int MissingFileID { get; private set; } 1147 | public int MissingLocalFileID { get; private set; } 1148 | 1149 | public bool HasWarnings => MissingFileIDAndGuid > 0 || MissingGuid > 0; 1150 | 1151 | public void CalculateCounters() 1152 | { 1153 | MissingFileIDAndGuid = ExternalReferences.Count(x => x.FileIDValid && x.GuidValid && !x.FileIDExistsInAssets && !x.GuidExistsInAssets); 1154 | MissingGuid = ExternalReferences.Count(x => x.GuidValid && !x.GuidExistsInAssets); 1155 | MissingFileID = ExternalReferences.Count(x => x.FileIDValid && !x.FileIDExistsInAssets && LocalReferences.All(l => l.Id != x.FileID)); 1156 | MissingLocalFileID = LocalReferences.Count(x => x.IdValid && x.LocalUsagesCount == 0 && !x.ExistsInAssets); 1157 | 1158 | foreach (var registry in ExternalReferences) 1159 | { 1160 | registry.UpdateWarningLevel(); 1161 | } 1162 | } 1163 | } 1164 | 1165 | public class AssetData 1166 | { 1167 | public AssetData(string path, Type type, string typeName, string guid, AssetReferencesData refsData) 1168 | { 1169 | Path = path; 1170 | Type = type; 1171 | TypeName = typeName; 1172 | Guid = guid; 1173 | RefsData = refsData; 1174 | } 1175 | 1176 | public string Path { get; } 1177 | public Type Type { get; } 1178 | public string TypeName { get; } 1179 | public string Guid { get; } 1180 | public AssetReferencesData RefsData { get; } 1181 | public HashSet MissingFieldTypes { get; } = new HashSet(); 1182 | public bool ValidType => Type != null; 1183 | 1184 | public bool Foldout { get; set; } 1185 | } 1186 | 1187 | public static class GUIUtilities 1188 | { 1189 | private static void HorizontalLine( 1190 | int marginTop, 1191 | int marginBottom, 1192 | int height, 1193 | Color color 1194 | ) 1195 | { 1196 | EditorGUILayout.BeginHorizontal(); 1197 | var rect = EditorGUILayout.GetControlRect( 1198 | false, 1199 | height, 1200 | new GUIStyle { margin = new RectOffset(0, 0, marginTop, marginBottom) } 1201 | ); 1202 | 1203 | EditorGUI.DrawRect(rect, color); 1204 | EditorGUILayout.EndHorizontal(); 1205 | } 1206 | 1207 | public static void HorizontalLine( 1208 | int marginTop = 5, 1209 | int marginBottom = 5, 1210 | int height = 2 1211 | ) 1212 | { 1213 | HorizontalLine(marginTop, marginBottom, height, new Color(0.5f, 0.5f, 0.5f, 1)); 1214 | } 1215 | } 1216 | 1217 | internal class PocketEditorCoroutine 1218 | { 1219 | private readonly bool _hasOwner; 1220 | private readonly WeakReference _ownerReference; 1221 | private IEnumerator _routine; 1222 | private double? _lastTimeWaitStarted; 1223 | 1224 | public static PocketEditorCoroutine Start(IEnumerator routine, EditorWindow owner = null) 1225 | { 1226 | return new PocketEditorCoroutine(routine, owner); 1227 | } 1228 | 1229 | private PocketEditorCoroutine(IEnumerator routine, EditorWindow owner = null) 1230 | { 1231 | _routine = routine ?? throw new ArgumentNullException(nameof(routine)); 1232 | EditorApplication.update += OnUpdate; 1233 | if (owner == null) return; 1234 | _ownerReference = new WeakReference(owner); 1235 | _hasOwner = true; 1236 | } 1237 | 1238 | public void Stop() 1239 | { 1240 | EditorApplication.update -= OnUpdate; 1241 | _routine = null; 1242 | } 1243 | 1244 | private void OnUpdate() 1245 | { 1246 | if (_hasOwner && (_ownerReference == null || _ownerReference is { IsAlive: false })) 1247 | { 1248 | Stop(); 1249 | return; 1250 | } 1251 | 1252 | var result = MoveNext(_routine); 1253 | if (!result.HasValue || result.Value) return; 1254 | Stop(); 1255 | } 1256 | 1257 | private bool? MoveNext(IEnumerator enumerator) 1258 | { 1259 | if (enumerator.Current is not float current) 1260 | return enumerator.MoveNext(); 1261 | 1262 | _lastTimeWaitStarted ??= EditorApplication.timeSinceStartup; 1263 | 1264 | if (!(_lastTimeWaitStarted.Value + current 1265 | <= EditorApplication.timeSinceStartup)) 1266 | return null; 1267 | 1268 | _lastTimeWaitStarted = null; 1269 | return enumerator.MoveNext(); 1270 | } 1271 | } 1272 | } -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/Editor/MissingReferencesHunter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dfd3b99aff944464496b70997928db22 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Alexey Perov 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 | -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 957c5c1d3a1b1924394462d0a24fc880 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/README.md: -------------------------------------------------------------------------------- 1 | 2 | ## Installation 3 | Install via git url by adding this entry in your **manifest.json** 4 | 5 | `"missing-references-hunter": "https://github.com/AlexeyPerov/Unity-MissingReferences-Hunter.git?path=Packages/MissingRefsHunter"` 6 | -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53a511fe4e317c84f9ef983ad2220304 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "missing-references-hunter", 3 | "version": "0.0.1", 4 | "displayName": "Missing References Hunter", 5 | "description": "This tool finds missing or null references in Unity project assets.", 6 | "unity": "2019.3", 7 | "keywords": [ 8 | "references", 9 | "tool" 10 | ], 11 | "author": { 12 | "name": "Alexey Perov", 13 | "url": "https://github.com/AlexeyPerov/Unity-MissingReferences-Hunter" 14 | } 15 | } -------------------------------------------------------------------------------- /Packages/MissingRefsHunter/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 492df23f237984a4cb090fec798c4634 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.animation": "5.0.9", 4 | "com.unity.2d.pixel-perfect": "4.0.1", 5 | "com.unity.2d.psdimporter": "4.1.2", 6 | "com.unity.2d.sprite": "1.0.0", 7 | "com.unity.2d.spriteshape": "5.1.6", 8 | "com.unity.2d.tilemap": "1.0.0", 9 | "com.unity.collab-proxy": "1.15.4", 10 | "com.unity.ide.rider": "2.0.7", 11 | "com.unity.ide.visualstudio": "2.0.12", 12 | "com.unity.ide.vscode": "1.2.4", 13 | "com.unity.test-framework": "1.1.29", 14 | "com.unity.textmeshpro": "3.0.6", 15 | "com.unity.timeline": "1.4.8", 16 | "com.unity.ugui": "1.0.0", 17 | "com.unity.modules.ai": "1.0.0", 18 | "com.unity.modules.androidjni": "1.0.0", 19 | "com.unity.modules.animation": "1.0.0", 20 | "com.unity.modules.assetbundle": "1.0.0", 21 | "com.unity.modules.audio": "1.0.0", 22 | "com.unity.modules.cloth": "1.0.0", 23 | "com.unity.modules.director": "1.0.0", 24 | "com.unity.modules.imageconversion": "1.0.0", 25 | "com.unity.modules.imgui": "1.0.0", 26 | "com.unity.modules.jsonserialize": "1.0.0", 27 | "com.unity.modules.particlesystem": "1.0.0", 28 | "com.unity.modules.physics": "1.0.0", 29 | "com.unity.modules.physics2d": "1.0.0", 30 | "com.unity.modules.screencapture": "1.0.0", 31 | "com.unity.modules.terrain": "1.0.0", 32 | "com.unity.modules.terrainphysics": "1.0.0", 33 | "com.unity.modules.tilemap": "1.0.0", 34 | "com.unity.modules.ui": "1.0.0", 35 | "com.unity.modules.uielements": "1.0.0", 36 | "com.unity.modules.umbra": "1.0.0", 37 | "com.unity.modules.unityanalytics": "1.0.0", 38 | "com.unity.modules.unitywebrequest": "1.0.0", 39 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 40 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 41 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 42 | "com.unity.modules.unitywebrequestwww": "1.0.0", 43 | "com.unity.modules.vehicles": "1.0.0", 44 | "com.unity.modules.video": "1.0.0", 45 | "com.unity.modules.vr": "1.0.0", 46 | "com.unity.modules.wind": "1.0.0", 47 | "com.unity.modules.xr": "1.0.0" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.animation": { 4 | "version": "5.0.9", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.2d.common": "4.0.3", 9 | "com.unity.mathematics": "1.1.0", 10 | "com.unity.2d.sprite": "1.0.0", 11 | "com.unity.modules.animation": "1.0.0", 12 | "com.unity.modules.uielements": "1.0.0" 13 | }, 14 | "url": "https://packages.unity.com" 15 | }, 16 | "com.unity.2d.common": { 17 | "version": "4.0.3", 18 | "depth": 1, 19 | "source": "registry", 20 | "dependencies": { 21 | "com.unity.2d.sprite": "1.0.0", 22 | "com.unity.modules.uielements": "1.0.0" 23 | }, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.2d.path": { 27 | "version": "4.0.2", 28 | "depth": 1, 29 | "source": "registry", 30 | "dependencies": {}, 31 | "url": "https://packages.unity.com" 32 | }, 33 | "com.unity.2d.pixel-perfect": { 34 | "version": "4.0.1", 35 | "depth": 0, 36 | "source": "registry", 37 | "dependencies": {}, 38 | "url": "https://packages.unity.com" 39 | }, 40 | "com.unity.2d.psdimporter": { 41 | "version": "4.1.2", 42 | "depth": 0, 43 | "source": "registry", 44 | "dependencies": { 45 | "com.unity.2d.common": "4.0.3", 46 | "com.unity.2d.animation": "5.0.9", 47 | "com.unity.2d.sprite": "1.0.0" 48 | }, 49 | "url": "https://packages.unity.com" 50 | }, 51 | "com.unity.2d.sprite": { 52 | "version": "1.0.0", 53 | "depth": 0, 54 | "source": "builtin", 55 | "dependencies": {} 56 | }, 57 | "com.unity.2d.spriteshape": { 58 | "version": "5.1.6", 59 | "depth": 0, 60 | "source": "registry", 61 | "dependencies": { 62 | "com.unity.mathematics": "1.1.0", 63 | "com.unity.2d.common": "4.0.3", 64 | "com.unity.2d.path": "4.0.2", 65 | "com.unity.modules.physics2d": "1.0.0" 66 | }, 67 | "url": "https://packages.unity.com" 68 | }, 69 | "com.unity.2d.tilemap": { 70 | "version": "1.0.0", 71 | "depth": 0, 72 | "source": "builtin", 73 | "dependencies": {} 74 | }, 75 | "com.unity.collab-proxy": { 76 | "version": "1.15.4", 77 | "depth": 0, 78 | "source": "registry", 79 | "dependencies": { 80 | "com.unity.nuget.newtonsoft-json": "2.0.0", 81 | "com.unity.services.core": "1.0.1" 82 | }, 83 | "url": "https://packages.unity.com" 84 | }, 85 | "com.unity.ext.nunit": { 86 | "version": "1.0.6", 87 | "depth": 1, 88 | "source": "registry", 89 | "dependencies": {}, 90 | "url": "https://packages.unity.com" 91 | }, 92 | "com.unity.ide.rider": { 93 | "version": "2.0.7", 94 | "depth": 0, 95 | "source": "registry", 96 | "dependencies": { 97 | "com.unity.test-framework": "1.1.1" 98 | }, 99 | "url": "https://packages.unity.com" 100 | }, 101 | "com.unity.ide.visualstudio": { 102 | "version": "2.0.12", 103 | "depth": 0, 104 | "source": "registry", 105 | "dependencies": { 106 | "com.unity.test-framework": "1.1.9" 107 | }, 108 | "url": "https://packages.unity.com" 109 | }, 110 | "com.unity.ide.vscode": { 111 | "version": "1.2.4", 112 | "depth": 0, 113 | "source": "registry", 114 | "dependencies": {}, 115 | "url": "https://packages.unity.com" 116 | }, 117 | "com.unity.mathematics": { 118 | "version": "1.1.0", 119 | "depth": 1, 120 | "source": "registry", 121 | "dependencies": {}, 122 | "url": "https://packages.unity.com" 123 | }, 124 | "com.unity.nuget.newtonsoft-json": { 125 | "version": "2.0.0", 126 | "depth": 1, 127 | "source": "registry", 128 | "dependencies": {}, 129 | "url": "https://packages.unity.com" 130 | }, 131 | "com.unity.services.core": { 132 | "version": "1.0.1", 133 | "depth": 1, 134 | "source": "registry", 135 | "dependencies": { 136 | "com.unity.modules.unitywebrequest": "1.0.0" 137 | }, 138 | "url": "https://packages.unity.com" 139 | }, 140 | "com.unity.test-framework": { 141 | "version": "1.1.29", 142 | "depth": 0, 143 | "source": "registry", 144 | "dependencies": { 145 | "com.unity.ext.nunit": "1.0.6", 146 | "com.unity.modules.imgui": "1.0.0", 147 | "com.unity.modules.jsonserialize": "1.0.0" 148 | }, 149 | "url": "https://packages.unity.com" 150 | }, 151 | "com.unity.textmeshpro": { 152 | "version": "3.0.6", 153 | "depth": 0, 154 | "source": "registry", 155 | "dependencies": { 156 | "com.unity.ugui": "1.0.0" 157 | }, 158 | "url": "https://packages.unity.com" 159 | }, 160 | "com.unity.timeline": { 161 | "version": "1.4.8", 162 | "depth": 0, 163 | "source": "registry", 164 | "dependencies": { 165 | "com.unity.modules.director": "1.0.0", 166 | "com.unity.modules.animation": "1.0.0", 167 | "com.unity.modules.audio": "1.0.0", 168 | "com.unity.modules.particlesystem": "1.0.0" 169 | }, 170 | "url": "https://packages.unity.com" 171 | }, 172 | "com.unity.ugui": { 173 | "version": "1.0.0", 174 | "depth": 0, 175 | "source": "builtin", 176 | "dependencies": { 177 | "com.unity.modules.ui": "1.0.0", 178 | "com.unity.modules.imgui": "1.0.0" 179 | } 180 | }, 181 | "missing-references-hunter": { 182 | "version": "file:MissingRefsHunter", 183 | "depth": 0, 184 | "source": "embedded", 185 | "dependencies": {} 186 | }, 187 | "com.unity.modules.ai": { 188 | "version": "1.0.0", 189 | "depth": 0, 190 | "source": "builtin", 191 | "dependencies": {} 192 | }, 193 | "com.unity.modules.androidjni": { 194 | "version": "1.0.0", 195 | "depth": 0, 196 | "source": "builtin", 197 | "dependencies": {} 198 | }, 199 | "com.unity.modules.animation": { 200 | "version": "1.0.0", 201 | "depth": 0, 202 | "source": "builtin", 203 | "dependencies": {} 204 | }, 205 | "com.unity.modules.assetbundle": { 206 | "version": "1.0.0", 207 | "depth": 0, 208 | "source": "builtin", 209 | "dependencies": {} 210 | }, 211 | "com.unity.modules.audio": { 212 | "version": "1.0.0", 213 | "depth": 0, 214 | "source": "builtin", 215 | "dependencies": {} 216 | }, 217 | "com.unity.modules.cloth": { 218 | "version": "1.0.0", 219 | "depth": 0, 220 | "source": "builtin", 221 | "dependencies": { 222 | "com.unity.modules.physics": "1.0.0" 223 | } 224 | }, 225 | "com.unity.modules.director": { 226 | "version": "1.0.0", 227 | "depth": 0, 228 | "source": "builtin", 229 | "dependencies": { 230 | "com.unity.modules.audio": "1.0.0", 231 | "com.unity.modules.animation": "1.0.0" 232 | } 233 | }, 234 | "com.unity.modules.imageconversion": { 235 | "version": "1.0.0", 236 | "depth": 0, 237 | "source": "builtin", 238 | "dependencies": {} 239 | }, 240 | "com.unity.modules.imgui": { 241 | "version": "1.0.0", 242 | "depth": 0, 243 | "source": "builtin", 244 | "dependencies": {} 245 | }, 246 | "com.unity.modules.jsonserialize": { 247 | "version": "1.0.0", 248 | "depth": 0, 249 | "source": "builtin", 250 | "dependencies": {} 251 | }, 252 | "com.unity.modules.particlesystem": { 253 | "version": "1.0.0", 254 | "depth": 0, 255 | "source": "builtin", 256 | "dependencies": {} 257 | }, 258 | "com.unity.modules.physics": { 259 | "version": "1.0.0", 260 | "depth": 0, 261 | "source": "builtin", 262 | "dependencies": {} 263 | }, 264 | "com.unity.modules.physics2d": { 265 | "version": "1.0.0", 266 | "depth": 0, 267 | "source": "builtin", 268 | "dependencies": {} 269 | }, 270 | "com.unity.modules.screencapture": { 271 | "version": "1.0.0", 272 | "depth": 0, 273 | "source": "builtin", 274 | "dependencies": { 275 | "com.unity.modules.imageconversion": "1.0.0" 276 | } 277 | }, 278 | "com.unity.modules.subsystems": { 279 | "version": "1.0.0", 280 | "depth": 1, 281 | "source": "builtin", 282 | "dependencies": { 283 | "com.unity.modules.jsonserialize": "1.0.0" 284 | } 285 | }, 286 | "com.unity.modules.terrain": { 287 | "version": "1.0.0", 288 | "depth": 0, 289 | "source": "builtin", 290 | "dependencies": {} 291 | }, 292 | "com.unity.modules.terrainphysics": { 293 | "version": "1.0.0", 294 | "depth": 0, 295 | "source": "builtin", 296 | "dependencies": { 297 | "com.unity.modules.physics": "1.0.0", 298 | "com.unity.modules.terrain": "1.0.0" 299 | } 300 | }, 301 | "com.unity.modules.tilemap": { 302 | "version": "1.0.0", 303 | "depth": 0, 304 | "source": "builtin", 305 | "dependencies": { 306 | "com.unity.modules.physics2d": "1.0.0" 307 | } 308 | }, 309 | "com.unity.modules.ui": { 310 | "version": "1.0.0", 311 | "depth": 0, 312 | "source": "builtin", 313 | "dependencies": {} 314 | }, 315 | "com.unity.modules.uielements": { 316 | "version": "1.0.0", 317 | "depth": 0, 318 | "source": "builtin", 319 | "dependencies": { 320 | "com.unity.modules.ui": "1.0.0", 321 | "com.unity.modules.imgui": "1.0.0", 322 | "com.unity.modules.jsonserialize": "1.0.0", 323 | "com.unity.modules.uielementsnative": "1.0.0" 324 | } 325 | }, 326 | "com.unity.modules.uielementsnative": { 327 | "version": "1.0.0", 328 | "depth": 1, 329 | "source": "builtin", 330 | "dependencies": { 331 | "com.unity.modules.ui": "1.0.0", 332 | "com.unity.modules.imgui": "1.0.0", 333 | "com.unity.modules.jsonserialize": "1.0.0" 334 | } 335 | }, 336 | "com.unity.modules.umbra": { 337 | "version": "1.0.0", 338 | "depth": 0, 339 | "source": "builtin", 340 | "dependencies": {} 341 | }, 342 | "com.unity.modules.unityanalytics": { 343 | "version": "1.0.0", 344 | "depth": 0, 345 | "source": "builtin", 346 | "dependencies": { 347 | "com.unity.modules.unitywebrequest": "1.0.0", 348 | "com.unity.modules.jsonserialize": "1.0.0" 349 | } 350 | }, 351 | "com.unity.modules.unitywebrequest": { 352 | "version": "1.0.0", 353 | "depth": 0, 354 | "source": "builtin", 355 | "dependencies": {} 356 | }, 357 | "com.unity.modules.unitywebrequestassetbundle": { 358 | "version": "1.0.0", 359 | "depth": 0, 360 | "source": "builtin", 361 | "dependencies": { 362 | "com.unity.modules.assetbundle": "1.0.0", 363 | "com.unity.modules.unitywebrequest": "1.0.0" 364 | } 365 | }, 366 | "com.unity.modules.unitywebrequestaudio": { 367 | "version": "1.0.0", 368 | "depth": 0, 369 | "source": "builtin", 370 | "dependencies": { 371 | "com.unity.modules.unitywebrequest": "1.0.0", 372 | "com.unity.modules.audio": "1.0.0" 373 | } 374 | }, 375 | "com.unity.modules.unitywebrequesttexture": { 376 | "version": "1.0.0", 377 | "depth": 0, 378 | "source": "builtin", 379 | "dependencies": { 380 | "com.unity.modules.unitywebrequest": "1.0.0", 381 | "com.unity.modules.imageconversion": "1.0.0" 382 | } 383 | }, 384 | "com.unity.modules.unitywebrequestwww": { 385 | "version": "1.0.0", 386 | "depth": 0, 387 | "source": "builtin", 388 | "dependencies": { 389 | "com.unity.modules.unitywebrequest": "1.0.0", 390 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 391 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 392 | "com.unity.modules.audio": "1.0.0", 393 | "com.unity.modules.assetbundle": "1.0.0", 394 | "com.unity.modules.imageconversion": "1.0.0" 395 | } 396 | }, 397 | "com.unity.modules.vehicles": { 398 | "version": "1.0.0", 399 | "depth": 0, 400 | "source": "builtin", 401 | "dependencies": { 402 | "com.unity.modules.physics": "1.0.0" 403 | } 404 | }, 405 | "com.unity.modules.video": { 406 | "version": "1.0.0", 407 | "depth": 0, 408 | "source": "builtin", 409 | "dependencies": { 410 | "com.unity.modules.audio": "1.0.0", 411 | "com.unity.modules.ui": "1.0.0", 412 | "com.unity.modules.unitywebrequest": "1.0.0" 413 | } 414 | }, 415 | "com.unity.modules.vr": { 416 | "version": "1.0.0", 417 | "depth": 0, 418 | "source": "builtin", 419 | "dependencies": { 420 | "com.unity.modules.jsonserialize": "1.0.0", 421 | "com.unity.modules.physics": "1.0.0", 422 | "com.unity.modules.xr": "1.0.0" 423 | } 424 | }, 425 | "com.unity.modules.wind": { 426 | "version": "1.0.0", 427 | "depth": 0, 428 | "source": "builtin", 429 | "dependencies": {} 430 | }, 431 | "com.unity.modules.xr": { 432 | "version": "1.0.0", 433 | "depth": 0, 434 | "source": "builtin", 435 | "dependencies": { 436 | "com.unity.modules.physics": "1.0.0", 437 | "com.unity.modules.jsonserialize": "1.0.0", 438 | "com.unity.modules.subsystems": "1.0.0" 439 | } 440 | } 441 | } 442 | } 443 | -------------------------------------------------------------------------------- /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 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 0 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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: 13 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_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0.1 18 | m_ClothInterCollisionStiffness: 0.2 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 26 | m_ContactPairsMode: 0 27 | m_BroadphaseType: 0 28 | m_WorldBounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 250, y: 250, z: 250} 31 | m_WorldSubdivisions: 8 32 | m_FrictionType: 0 33 | m_EnableEnhancedDeterminism: 0 34 | m_EnableUnifiedHeightmaps: 1 35 | m_SolverType: 0 36 | m_DefaultMaxAngularSpeed: 50 37 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/SampleScene.unity 10 | guid: 2cda990e2423bbf4892e6590ba056729 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /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: 10 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 1 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 4 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;asmref;rsp 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_SerializeInlineMappingsOnOneLine: 1 31 | m_AssetPipelineMode: 1 32 | m_CacheServerMode: 0 33 | m_CacheServerEndpoint: 34 | m_CacheServerNamespacePrefix: default 35 | m_CacheServerEnableDownload: 1 36 | m_CacheServerEnableUpload: 1 37 | -------------------------------------------------------------------------------- /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: 13 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_VideoShadersIncludeMode: 2 32 | m_AlwaysIncludedShaders: 33 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 40 | m_PreloadedShaders: [] 41 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 42 | m_CustomRenderPipeline: {fileID: 0} 43 | m_TransparencySortMode: 0 44 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 45 | m_DefaultRenderingPath: 1 46 | m_DefaultMobileRenderingPath: 1 47 | m_TierSettings: [] 48 | m_LightmapStripping: 0 49 | m_FogStripping: 0 50 | m_InstancingStripping: 0 51 | m_LightmapKeepPlain: 1 52 | m_LightmapKeepDirCombined: 1 53 | m_LightmapKeepDynamicPlain: 1 54 | m_LightmapKeepDynamicDirCombined: 1 55 | m_LightmapKeepShadowMask: 1 56 | m_LightmapKeepSubtractive: 1 57 | m_FogKeepLinear: 1 58 | m_FogKeepExp: 1 59 | m_FogKeepExp2: 1 60 | m_AlbedoSwatchInfos: [] 61 | m_LightsUseLinearIntensity: 0 62 | m_LightsUseColorTemperature: 0 63 | m_LogWhenShaderIsCompiled: 0 64 | -------------------------------------------------------------------------------- /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 | - serializedVersion: 3 297 | m_Name: Enable Debug Button 1 298 | descriptiveName: 299 | descriptiveNegativeName: 300 | negativeButton: 301 | positiveButton: left ctrl 302 | altNegativeButton: 303 | altPositiveButton: joystick button 8 304 | gravity: 0 305 | dead: 0 306 | sensitivity: 0 307 | snap: 0 308 | invert: 0 309 | type: 0 310 | axis: 0 311 | joyNum: 0 312 | - serializedVersion: 3 313 | m_Name: Enable Debug Button 2 314 | descriptiveName: 315 | descriptiveNegativeName: 316 | negativeButton: 317 | positiveButton: backspace 318 | altNegativeButton: 319 | altPositiveButton: joystick button 9 320 | gravity: 0 321 | dead: 0 322 | sensitivity: 0 323 | snap: 0 324 | invert: 0 325 | type: 0 326 | axis: 0 327 | joyNum: 0 328 | - serializedVersion: 3 329 | m_Name: Debug Reset 330 | descriptiveName: 331 | descriptiveNegativeName: 332 | negativeButton: 333 | positiveButton: left alt 334 | altNegativeButton: 335 | altPositiveButton: joystick button 1 336 | gravity: 0 337 | dead: 0 338 | sensitivity: 0 339 | snap: 0 340 | invert: 0 341 | type: 0 342 | axis: 0 343 | joyNum: 0 344 | - serializedVersion: 3 345 | m_Name: Debug Next 346 | descriptiveName: 347 | descriptiveNegativeName: 348 | negativeButton: 349 | positiveButton: page down 350 | altNegativeButton: 351 | altPositiveButton: joystick button 5 352 | gravity: 0 353 | dead: 0 354 | sensitivity: 0 355 | snap: 0 356 | invert: 0 357 | type: 0 358 | axis: 0 359 | joyNum: 0 360 | - serializedVersion: 3 361 | m_Name: Debug Previous 362 | descriptiveName: 363 | descriptiveNegativeName: 364 | negativeButton: 365 | positiveButton: page up 366 | altNegativeButton: 367 | altPositiveButton: joystick button 4 368 | gravity: 0 369 | dead: 0 370 | sensitivity: 0 371 | snap: 0 372 | invert: 0 373 | type: 0 374 | axis: 0 375 | joyNum: 0 376 | - serializedVersion: 3 377 | m_Name: Debug Validate 378 | descriptiveName: 379 | descriptiveNegativeName: 380 | negativeButton: 381 | positiveButton: return 382 | altNegativeButton: 383 | altPositiveButton: joystick button 0 384 | gravity: 0 385 | dead: 0 386 | sensitivity: 0 387 | snap: 0 388 | invert: 0 389 | type: 0 390 | axis: 0 391 | joyNum: 0 392 | - serializedVersion: 3 393 | m_Name: Debug Persistent 394 | descriptiveName: 395 | descriptiveNegativeName: 396 | negativeButton: 397 | positiveButton: right shift 398 | altNegativeButton: 399 | altPositiveButton: joystick button 2 400 | gravity: 0 401 | dead: 0 402 | sensitivity: 0 403 | snap: 0 404 | invert: 0 405 | type: 0 406 | axis: 0 407 | joyNum: 0 408 | - serializedVersion: 3 409 | m_Name: Debug Multiplier 410 | descriptiveName: 411 | descriptiveNegativeName: 412 | negativeButton: 413 | positiveButton: left shift 414 | altNegativeButton: 415 | altPositiveButton: joystick button 3 416 | gravity: 0 417 | dead: 0 418 | sensitivity: 0 419 | snap: 0 420 | invert: 0 421 | type: 0 422 | axis: 0 423 | joyNum: 0 424 | - serializedVersion: 3 425 | m_Name: Debug Horizontal 426 | descriptiveName: 427 | descriptiveNegativeName: 428 | negativeButton: left 429 | positiveButton: right 430 | altNegativeButton: 431 | altPositiveButton: 432 | gravity: 1000 433 | dead: 0.001 434 | sensitivity: 1000 435 | snap: 0 436 | invert: 0 437 | type: 0 438 | axis: 0 439 | joyNum: 0 440 | - serializedVersion: 3 441 | m_Name: Debug Vertical 442 | descriptiveName: 443 | descriptiveNegativeName: 444 | negativeButton: down 445 | positiveButton: up 446 | altNegativeButton: 447 | altPositiveButton: 448 | gravity: 1000 449 | dead: 0.001 450 | sensitivity: 1000 451 | snap: 0 452 | invert: 0 453 | type: 0 454 | axis: 0 455 | joyNum: 0 456 | - serializedVersion: 3 457 | m_Name: Debug Vertical 458 | descriptiveName: 459 | descriptiveNegativeName: 460 | negativeButton: down 461 | positiveButton: up 462 | altNegativeButton: 463 | altPositiveButton: 464 | gravity: 1000 465 | dead: 0.001 466 | sensitivity: 1000 467 | snap: 0 468 | invert: 0 469 | type: 2 470 | axis: 6 471 | joyNum: 0 472 | - serializedVersion: 3 473 | m_Name: Debug Horizontal 474 | descriptiveName: 475 | descriptiveNegativeName: 476 | negativeButton: left 477 | positiveButton: right 478 | altNegativeButton: 479 | altPositiveButton: 480 | gravity: 1000 481 | dead: 0.001 482 | sensitivity: 1000 483 | snap: 0 484 | invert: 0 485 | type: 2 486 | axis: 5 487 | joyNum: 0 488 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 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 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreviewPackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | oneTimeWarningShown: 0 20 | m_Registries: 21 | - m_Id: main 22 | m_Name: 23 | m_Url: https://packages.unity.com 24 | m_Scopes: [] 25 | m_IsDefault: 1 26 | m_Capabilities: 7 27 | m_UserSelectedRegistryName: 28 | m_UserAddingNewScopedRegistry: 0 29 | m_RegistryInfoDraft: 30 | m_ErrorMessage: 31 | m_Original: 32 | m_Id: 33 | m_Name: 34 | m_Url: 35 | m_Scopes: [] 36 | m_IsDefault: 0 37 | m_Capabilities: 0 38 | m_Modified: 0 39 | m_Name: 40 | m_Url: 41 | m_Scopes: 42 | - 43 | m_SelectedScopeIndex: 0 44 | -------------------------------------------------------------------------------- /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: 5 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_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_SimulationMode: 0 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /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: 22 7 | productGUID: 630410c13676646df8aa7294c8571a45 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: UnityMissingRefsHunter 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: 1920 46 | defaultScreenHeight: 1080 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 1 70 | androidBlitType: 0 71 | androidResizableWindow: 0 72 | androidDefaultWindowWidth: 1920 73 | androidDefaultWindowHeight: 1080 74 | androidMinimumWindowWidth: 400 75 | androidMinimumWindowHeight: 300 76 | androidFullscreenMode: 1 77 | defaultIsNativeResolution: 1 78 | macRetinaSupport: 1 79 | runInBackground: 0 80 | captureSingleScreen: 0 81 | muteOtherAudioSources: 0 82 | Prepare IOS For Recording: 0 83 | Force IOS Speakers When Recording: 0 84 | deferSystemGesturesMode: 0 85 | hideHomeButton: 0 86 | submitAnalytics: 1 87 | usePlayerLog: 1 88 | bakeCollisionMeshes: 0 89 | forceSingleInstance: 0 90 | useFlipModelSwapchain: 1 91 | resizableWindow: 0 92 | useMacAppStoreValidation: 0 93 | macAppStoreCategory: public.app-category.games 94 | gpuSkinning: 0 95 | xboxPIXTextureCapture: 0 96 | xboxEnableAvatar: 0 97 | xboxEnableKinect: 0 98 | xboxEnableKinectAutoTracking: 0 99 | xboxEnableFitness: 0 100 | visibleInBackground: 1 101 | allowFullscreenSwitch: 1 102 | fullscreenMode: 1 103 | xboxSpeechDB: 0 104 | xboxEnableHeadOrientation: 0 105 | xboxEnableGuest: 0 106 | xboxEnablePIXSampling: 0 107 | metalFramebufferOnly: 0 108 | xboxOneResolution: 0 109 | xboxOneSResolution: 0 110 | xboxOneXResolution: 3 111 | xboxOneMonoLoggingLevel: 0 112 | xboxOneLoggingLevel: 1 113 | xboxOneDisableEsram: 0 114 | xboxOneEnableTypeOptimization: 0 115 | xboxOnePresentImmediateThreshold: 0 116 | switchQueueCommandMemory: 1048576 117 | switchQueueControlMemory: 16384 118 | switchQueueComputeMemory: 262144 119 | switchNVNShaderPoolsGranularity: 33554432 120 | switchNVNDefaultPoolsGranularity: 16777216 121 | switchNVNOtherPoolsGranularity: 16777216 122 | switchNVNMaxPublicTextureIDCount: 0 123 | switchNVNMaxPublicSamplerIDCount: 0 124 | stadiaPresentMode: 0 125 | stadiaTargetFramerate: 0 126 | vulkanNumSwapchainBuffers: 3 127 | vulkanEnableSetSRGBWrite: 0 128 | vulkanEnablePreTransform: 0 129 | vulkanEnableLateAcquireNextImage: 0 130 | vulkanEnableCommandBufferRecycling: 1 131 | m_SupportedAspectRatios: 132 | 4:3: 1 133 | 5:4: 1 134 | 16:10: 1 135 | 16:9: 1 136 | Others: 1 137 | bundleVersion: 1.0 138 | preloadedAssets: [] 139 | metroInputSource: 0 140 | wsaTransparentSwapchain: 0 141 | m_HolographicPauseOnTrackingLoss: 1 142 | xboxOneDisableKinectGpuReservation: 1 143 | xboxOneEnable7thCore: 1 144 | vrSettings: 145 | enable360StereoCapture: 0 146 | isWsaHolographicRemotingEnabled: 0 147 | enableFrameTimingStats: 0 148 | useHDRDisplay: 0 149 | D3DHDRBitDepth: 0 150 | m_ColorGamuts: 00000000 151 | targetPixelDensity: 30 152 | resolutionScalingMode: 0 153 | androidSupportedAspectRatio: 1 154 | androidMaxAspectRatio: 2.1 155 | applicationIdentifier: {} 156 | buildNumber: 157 | Standalone: 0 158 | iPhone: 0 159 | tvOS: 0 160 | overrideDefaultApplicationIdentifier: 0 161 | AndroidBundleVersionCode: 1 162 | AndroidMinSdkVersion: 19 163 | AndroidTargetSdkVersion: 0 164 | AndroidPreferredInstallLocation: 1 165 | aotOptions: 166 | stripEngineCode: 1 167 | iPhoneStrippingLevel: 0 168 | iPhoneScriptCallOptimization: 0 169 | ForceInternetPermission: 0 170 | ForceSDCardPermission: 0 171 | CreateWallpaper: 0 172 | APKExpansionFiles: 0 173 | keepLoadedShadersAlive: 0 174 | StripUnusedMeshComponents: 0 175 | VertexChannelCompressionMask: 4054 176 | iPhoneSdkVersion: 988 177 | iOSTargetOSVersionString: 11.0 178 | tvOSSdkVersion: 0 179 | tvOSRequireExtendedGameController: 0 180 | tvOSTargetOSVersionString: 11.0 181 | uIPrerenderedIcon: 0 182 | uIRequiresPersistentWiFi: 0 183 | uIRequiresFullScreen: 1 184 | uIStatusBarHidden: 1 185 | uIExitOnSuspend: 0 186 | uIStatusBarStyle: 0 187 | appleTVSplashScreen: {fileID: 0} 188 | appleTVSplashScreen2x: {fileID: 0} 189 | tvOSSmallIconLayers: [] 190 | tvOSSmallIconLayers2x: [] 191 | tvOSLargeIconLayers: [] 192 | tvOSLargeIconLayers2x: [] 193 | tvOSTopShelfImageLayers: [] 194 | tvOSTopShelfImageLayers2x: [] 195 | tvOSTopShelfImageWideLayers: [] 196 | tvOSTopShelfImageWideLayers2x: [] 197 | iOSLaunchScreenType: 0 198 | iOSLaunchScreenPortrait: {fileID: 0} 199 | iOSLaunchScreenLandscape: {fileID: 0} 200 | iOSLaunchScreenBackgroundColor: 201 | serializedVersion: 2 202 | rgba: 0 203 | iOSLaunchScreenFillPct: 100 204 | iOSLaunchScreenSize: 100 205 | iOSLaunchScreenCustomXibPath: 206 | iOSLaunchScreeniPadType: 0 207 | iOSLaunchScreeniPadImage: {fileID: 0} 208 | iOSLaunchScreeniPadBackgroundColor: 209 | serializedVersion: 2 210 | rgba: 0 211 | iOSLaunchScreeniPadFillPct: 100 212 | iOSLaunchScreeniPadSize: 100 213 | iOSLaunchScreeniPadCustomXibPath: 214 | iOSLaunchScreenCustomStoryboardPath: 215 | iOSLaunchScreeniPadCustomStoryboardPath: 216 | iOSDeviceRequirements: [] 217 | iOSURLSchemes: [] 218 | iOSBackgroundModes: 0 219 | iOSMetalForceHardShadows: 0 220 | metalEditorSupport: 1 221 | metalAPIValidation: 1 222 | iOSRenderExtraFrameOnPause: 0 223 | iosCopyPluginsCodeInsteadOfSymlink: 0 224 | appleDeveloperTeamID: 225 | iOSManualSigningProvisioningProfileID: 226 | tvOSManualSigningProvisioningProfileID: 227 | iOSManualSigningProvisioningProfileType: 0 228 | tvOSManualSigningProvisioningProfileType: 0 229 | appleEnableAutomaticSigning: 0 230 | iOSRequireARKit: 0 231 | iOSAutomaticallyDetectAndAddCapabilities: 1 232 | appleEnableProMotion: 0 233 | shaderPrecisionModel: 0 234 | clonedFromGUID: 10ad67313f4034357812315f3c407484 235 | templatePackageId: com.unity.template.2d@5.0.0 236 | templateDefaultScene: Assets/Scenes/SampleScene.unity 237 | useCustomMainManifest: 0 238 | useCustomLauncherManifest: 0 239 | useCustomMainGradleTemplate: 0 240 | useCustomLauncherGradleManifest: 0 241 | useCustomBaseGradleTemplate: 0 242 | useCustomGradlePropertiesTemplate: 0 243 | useCustomProguardFile: 0 244 | AndroidTargetArchitectures: 1 245 | AndroidTargetDevices: 0 246 | AndroidSplashScreenScale: 0 247 | androidSplashScreen: {fileID: 0} 248 | AndroidKeystoreName: 249 | AndroidKeyaliasName: 250 | AndroidBuildApkPerCpuArchitecture: 0 251 | AndroidTVCompatibility: 0 252 | AndroidIsGame: 1 253 | AndroidEnableTango: 0 254 | androidEnableBanner: 1 255 | androidUseLowAccuracyLocation: 0 256 | androidUseCustomKeystore: 0 257 | m_AndroidBanners: 258 | - width: 320 259 | height: 180 260 | banner: {fileID: 0} 261 | androidGamepadSupportLevel: 0 262 | chromeosInputEmulation: 1 263 | AndroidMinifyWithR8: 0 264 | AndroidMinifyRelease: 0 265 | AndroidMinifyDebug: 0 266 | AndroidValidateAppBundleSize: 1 267 | AndroidAppBundleSizeToValidate: 150 268 | m_BuildTargetIcons: [] 269 | m_BuildTargetPlatformIcons: [] 270 | m_BuildTargetBatching: [] 271 | m_BuildTargetGraphicsJobs: 272 | - m_BuildTarget: MacStandaloneSupport 273 | m_GraphicsJobs: 0 274 | - m_BuildTarget: Switch 275 | m_GraphicsJobs: 0 276 | - m_BuildTarget: MetroSupport 277 | m_GraphicsJobs: 0 278 | - m_BuildTarget: AppleTVSupport 279 | m_GraphicsJobs: 0 280 | - m_BuildTarget: BJMSupport 281 | m_GraphicsJobs: 0 282 | - m_BuildTarget: LinuxStandaloneSupport 283 | m_GraphicsJobs: 0 284 | - m_BuildTarget: PS4Player 285 | m_GraphicsJobs: 0 286 | - m_BuildTarget: iOSSupport 287 | m_GraphicsJobs: 0 288 | - m_BuildTarget: WindowsStandaloneSupport 289 | m_GraphicsJobs: 0 290 | - m_BuildTarget: XboxOnePlayer 291 | m_GraphicsJobs: 0 292 | - m_BuildTarget: LuminSupport 293 | m_GraphicsJobs: 0 294 | - m_BuildTarget: AndroidPlayer 295 | m_GraphicsJobs: 0 296 | - m_BuildTarget: WebGLSupport 297 | m_GraphicsJobs: 0 298 | m_BuildTargetGraphicsJobMode: [] 299 | m_BuildTargetGraphicsAPIs: 300 | - m_BuildTarget: AndroidPlayer 301 | m_APIs: 150000000b000000 302 | m_Automatic: 0 303 | - m_BuildTarget: iOSSupport 304 | m_APIs: 10000000 305 | m_Automatic: 1 306 | m_BuildTargetVRSettings: [] 307 | openGLRequireES31: 0 308 | openGLRequireES31AEP: 0 309 | openGLRequireES32: 0 310 | m_TemplateCustomTags: {} 311 | mobileMTRendering: 312 | Android: 1 313 | iPhone: 1 314 | tvOS: 1 315 | m_BuildTargetGroupLightmapEncodingQuality: [] 316 | m_BuildTargetGroupLightmapSettings: [] 317 | m_BuildTargetNormalMapEncoding: [] 318 | playModeTestRunnerEnabled: 0 319 | runPlayModeTestAsEditModeTest: 0 320 | actionOnDotNetUnhandledException: 1 321 | enableInternalProfiler: 0 322 | logObjCUncaughtExceptions: 1 323 | enableCrashReportAPI: 0 324 | cameraUsageDescription: 325 | locationUsageDescription: 326 | microphoneUsageDescription: 327 | bluetoothUsageDescription: 328 | switchNMETAOverride: 329 | switchNetLibKey: 330 | switchSocketMemoryPoolSize: 6144 331 | switchSocketAllocatorPoolSize: 128 332 | switchSocketConcurrencyLimit: 14 333 | switchScreenResolutionBehavior: 2 334 | switchUseCPUProfiler: 0 335 | switchUseGOLDLinker: 0 336 | switchApplicationID: 0x01004b9000490000 337 | switchNSODependencies: 338 | switchTitleNames_0: 339 | switchTitleNames_1: 340 | switchTitleNames_2: 341 | switchTitleNames_3: 342 | switchTitleNames_4: 343 | switchTitleNames_5: 344 | switchTitleNames_6: 345 | switchTitleNames_7: 346 | switchTitleNames_8: 347 | switchTitleNames_9: 348 | switchTitleNames_10: 349 | switchTitleNames_11: 350 | switchTitleNames_12: 351 | switchTitleNames_13: 352 | switchTitleNames_14: 353 | switchTitleNames_15: 354 | switchPublisherNames_0: 355 | switchPublisherNames_1: 356 | switchPublisherNames_2: 357 | switchPublisherNames_3: 358 | switchPublisherNames_4: 359 | switchPublisherNames_5: 360 | switchPublisherNames_6: 361 | switchPublisherNames_7: 362 | switchPublisherNames_8: 363 | switchPublisherNames_9: 364 | switchPublisherNames_10: 365 | switchPublisherNames_11: 366 | switchPublisherNames_12: 367 | switchPublisherNames_13: 368 | switchPublisherNames_14: 369 | switchPublisherNames_15: 370 | switchIcons_0: {fileID: 0} 371 | switchIcons_1: {fileID: 0} 372 | switchIcons_2: {fileID: 0} 373 | switchIcons_3: {fileID: 0} 374 | switchIcons_4: {fileID: 0} 375 | switchIcons_5: {fileID: 0} 376 | switchIcons_6: {fileID: 0} 377 | switchIcons_7: {fileID: 0} 378 | switchIcons_8: {fileID: 0} 379 | switchIcons_9: {fileID: 0} 380 | switchIcons_10: {fileID: 0} 381 | switchIcons_11: {fileID: 0} 382 | switchIcons_12: {fileID: 0} 383 | switchIcons_13: {fileID: 0} 384 | switchIcons_14: {fileID: 0} 385 | switchIcons_15: {fileID: 0} 386 | switchSmallIcons_0: {fileID: 0} 387 | switchSmallIcons_1: {fileID: 0} 388 | switchSmallIcons_2: {fileID: 0} 389 | switchSmallIcons_3: {fileID: 0} 390 | switchSmallIcons_4: {fileID: 0} 391 | switchSmallIcons_5: {fileID: 0} 392 | switchSmallIcons_6: {fileID: 0} 393 | switchSmallIcons_7: {fileID: 0} 394 | switchSmallIcons_8: {fileID: 0} 395 | switchSmallIcons_9: {fileID: 0} 396 | switchSmallIcons_10: {fileID: 0} 397 | switchSmallIcons_11: {fileID: 0} 398 | switchSmallIcons_12: {fileID: 0} 399 | switchSmallIcons_13: {fileID: 0} 400 | switchSmallIcons_14: {fileID: 0} 401 | switchSmallIcons_15: {fileID: 0} 402 | switchManualHTML: 403 | switchAccessibleURLs: 404 | switchLegalInformation: 405 | switchMainThreadStackSize: 1048576 406 | switchPresenceGroupId: 407 | switchLogoHandling: 0 408 | switchReleaseVersion: 0 409 | switchDisplayVersion: 1.0.0 410 | switchStartupUserAccount: 0 411 | switchTouchScreenUsage: 0 412 | switchSupportedLanguagesMask: 0 413 | switchLogoType: 0 414 | switchApplicationErrorCodeCategory: 415 | switchUserAccountSaveDataSize: 0 416 | switchUserAccountSaveDataJournalSize: 0 417 | switchApplicationAttribute: 0 418 | switchCardSpecSize: -1 419 | switchCardSpecClock: -1 420 | switchRatingsMask: 0 421 | switchRatingsInt_0: 0 422 | switchRatingsInt_1: 0 423 | switchRatingsInt_2: 0 424 | switchRatingsInt_3: 0 425 | switchRatingsInt_4: 0 426 | switchRatingsInt_5: 0 427 | switchRatingsInt_6: 0 428 | switchRatingsInt_7: 0 429 | switchRatingsInt_8: 0 430 | switchRatingsInt_9: 0 431 | switchRatingsInt_10: 0 432 | switchRatingsInt_11: 0 433 | switchRatingsInt_12: 0 434 | switchLocalCommunicationIds_0: 435 | switchLocalCommunicationIds_1: 436 | switchLocalCommunicationIds_2: 437 | switchLocalCommunicationIds_3: 438 | switchLocalCommunicationIds_4: 439 | switchLocalCommunicationIds_5: 440 | switchLocalCommunicationIds_6: 441 | switchLocalCommunicationIds_7: 442 | switchParentalControl: 0 443 | switchAllowsScreenshot: 1 444 | switchAllowsVideoCapturing: 1 445 | switchAllowsRuntimeAddOnContentInstall: 0 446 | switchDataLossConfirmation: 0 447 | switchUserAccountLockEnabled: 0 448 | switchSystemResourceMemory: 16777216 449 | switchSupportedNpadStyles: 22 450 | switchNativeFsCacheSize: 32 451 | switchIsHoldTypeHorizontal: 0 452 | switchSupportedNpadCount: 8 453 | switchSocketConfigEnabled: 0 454 | switchTcpInitialSendBufferSize: 32 455 | switchTcpInitialReceiveBufferSize: 64 456 | switchTcpAutoSendBufferSizeMax: 256 457 | switchTcpAutoReceiveBufferSizeMax: 256 458 | switchUdpSendBufferSize: 9 459 | switchUdpReceiveBufferSize: 42 460 | switchSocketBufferEfficiency: 4 461 | switchSocketInitializeEnabled: 1 462 | switchNetworkInterfaceManagerInitializeEnabled: 1 463 | switchPlayerConnectionEnabled: 1 464 | switchUseNewStyleFilepaths: 0 465 | switchUseMicroSleepForYield: 1 466 | switchMicroSleepForYieldTime: 25 467 | ps4NPAgeRating: 12 468 | ps4NPTitleSecret: 469 | ps4NPTrophyPackPath: 470 | ps4ParentalLevel: 11 471 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 472 | ps4Category: 0 473 | ps4MasterVersion: 01.00 474 | ps4AppVersion: 01.00 475 | ps4AppType: 0 476 | ps4ParamSfxPath: 477 | ps4VideoOutPixelFormat: 0 478 | ps4VideoOutInitialWidth: 1920 479 | ps4VideoOutBaseModeInitialWidth: 1920 480 | ps4VideoOutReprojectionRate: 60 481 | ps4PronunciationXMLPath: 482 | ps4PronunciationSIGPath: 483 | ps4BackgroundImagePath: 484 | ps4StartupImagePath: 485 | ps4StartupImagesFolder: 486 | ps4IconImagesFolder: 487 | ps4SaveDataImagePath: 488 | ps4SdkOverride: 489 | ps4BGMPath: 490 | ps4ShareFilePath: 491 | ps4ShareOverlayImagePath: 492 | ps4PrivacyGuardImagePath: 493 | ps4ExtraSceSysFile: 494 | ps4NPtitleDatPath: 495 | ps4RemotePlayKeyAssignment: -1 496 | ps4RemotePlayKeyMappingDir: 497 | ps4PlayTogetherPlayerCount: 0 498 | ps4EnterButtonAssignment: 2 499 | ps4ApplicationParam1: 0 500 | ps4ApplicationParam2: 0 501 | ps4ApplicationParam3: 0 502 | ps4ApplicationParam4: 0 503 | ps4DownloadDataSize: 0 504 | ps4GarlicHeapSize: 2048 505 | ps4ProGarlicHeapSize: 2560 506 | playerPrefsMaxSize: 32768 507 | ps4Passcode: bi9UOuSpM2Tlh01vOzwvSikHFswuzleh 508 | ps4pnSessions: 1 509 | ps4pnPresence: 1 510 | ps4pnFriends: 1 511 | ps4pnGameCustomData: 1 512 | playerPrefsSupport: 0 513 | enableApplicationExit: 0 514 | resetTempFolder: 1 515 | restrictedAudioUsageRights: 0 516 | ps4UseResolutionFallback: 0 517 | ps4ReprojectionSupport: 0 518 | ps4UseAudio3dBackend: 0 519 | ps4UseLowGarlicFragmentationMode: 1 520 | ps4SocialScreenEnabled: 0 521 | ps4ScriptOptimizationLevel: 2 522 | ps4Audio3dVirtualSpeakerCount: 14 523 | ps4attribCpuUsage: 0 524 | ps4PatchPkgPath: 525 | ps4PatchLatestPkgPath: 526 | ps4PatchChangeinfoPath: 527 | ps4PatchDayOne: 0 528 | ps4attribUserManagement: 0 529 | ps4attribMoveSupport: 0 530 | ps4attrib3DSupport: 0 531 | ps4attribShareSupport: 0 532 | ps4attribExclusiveVR: 0 533 | ps4disableAutoHideSplash: 0 534 | ps4videoRecordingFeaturesUsed: 0 535 | ps4contentSearchFeaturesUsed: 0 536 | ps4CompatibilityPS5: 0 537 | ps4AllowPS5Detection: 0 538 | ps4GPU800MHz: 1 539 | ps4attribEyeToEyeDistanceSettingVR: 0 540 | ps4IncludedModules: [] 541 | ps4attribVROutputEnabled: 0 542 | monoEnv: 543 | splashScreenBackgroundSourceLandscape: {fileID: 0} 544 | splashScreenBackgroundSourcePortrait: {fileID: 0} 545 | blurSplashScreenBackground: 1 546 | spritePackerPolicy: 547 | webGLMemorySize: 32 548 | webGLExceptionSupport: 1 549 | webGLNameFilesAsHashes: 0 550 | webGLDataCaching: 1 551 | webGLDebugSymbols: 0 552 | webGLEmscriptenArgs: 553 | webGLModulesDirectory: 554 | webGLTemplate: APPLICATION:Default 555 | webGLAnalyzeBuildSize: 0 556 | webGLUseEmbeddedResources: 0 557 | webGLCompressionFormat: 0 558 | webGLWasmArithmeticExceptions: 0 559 | webGLLinkerTarget: 1 560 | webGLThreadsSupport: 0 561 | webGLDecompressionFallback: 0 562 | scriptingDefineSymbols: {} 563 | additionalCompilerArguments: {} 564 | platformArchitecture: {} 565 | scriptingBackend: {} 566 | il2cppCompilerConfiguration: {} 567 | managedStrippingLevel: {} 568 | incrementalIl2cppBuild: {} 569 | suppressCommonWarnings: 1 570 | allowUnsafeCode: 0 571 | useDeterministicCompilation: 1 572 | useReferenceAssemblies: 1 573 | enableRoslynAnalyzers: 1 574 | additionalIl2CppArgs: 575 | scriptingRuntimeVersion: 1 576 | gcIncremental: 1 577 | assemblyVersionValidation: 1 578 | gcWBarrierValidation: 0 579 | apiCompatibilityLevelPerPlatform: {} 580 | m_RenderingPath: 1 581 | m_MobileRenderingPath: 1 582 | metroPackageName: 2D_BuiltInRenderer 583 | metroPackageVersion: 584 | metroCertificatePath: 585 | metroCertificatePassword: 586 | metroCertificateSubject: 587 | metroCertificateIssuer: 588 | metroCertificateNotAfter: 0000000000000000 589 | metroApplicationDescription: 2D_BuiltInRenderer 590 | wsaImages: {} 591 | metroTileShortName: 592 | metroTileShowName: 0 593 | metroMediumTileShowName: 0 594 | metroLargeTileShowName: 0 595 | metroWideTileShowName: 0 596 | metroSupportStreamingInstall: 0 597 | metroLastRequiredScene: 0 598 | metroDefaultTileSize: 1 599 | metroTileForegroundText: 2 600 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 601 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 602 | metroSplashScreenUseBackgroundColor: 0 603 | platformCapabilities: {} 604 | metroTargetDeviceFamilies: {} 605 | metroFTAName: 606 | metroFTAFileTypes: [] 607 | metroProtocolName: 608 | XboxOneProductId: 609 | XboxOneUpdateKey: 610 | XboxOneSandboxId: 611 | XboxOneContentId: 612 | XboxOneTitleId: 613 | XboxOneSCId: 614 | XboxOneGameOsOverridePath: 615 | XboxOnePackagingOverridePath: 616 | XboxOneAppManifestOverridePath: 617 | XboxOneVersion: 1.0.0.0 618 | XboxOnePackageEncryption: 0 619 | XboxOnePackageUpdateGranularity: 2 620 | XboxOneDescription: 621 | XboxOneLanguage: 622 | - enus 623 | XboxOneCapability: [] 624 | XboxOneGameRating: {} 625 | XboxOneIsContentPackage: 0 626 | XboxOneEnhancedXboxCompatibilityMode: 0 627 | XboxOneEnableGPUVariability: 1 628 | XboxOneSockets: {} 629 | XboxOneSplashScreen: {fileID: 0} 630 | XboxOneAllowedProductIds: [] 631 | XboxOnePersistentLocalStorageSize: 0 632 | XboxOneXTitleMemory: 8 633 | XboxOneOverrideIdentityName: 634 | XboxOneOverrideIdentityPublisher: 635 | vrEditorSettings: {} 636 | cloudServicesEnabled: {} 637 | luminIcon: 638 | m_Name: 639 | m_ModelFolderPath: 640 | m_PortalFolderPath: 641 | luminCert: 642 | m_CertPath: 643 | m_SignPackage: 1 644 | luminIsChannelApp: 0 645 | luminVersion: 646 | m_VersionCode: 1 647 | m_VersionName: 648 | apiCompatibilityLevel: 6 649 | activeInputHandler: 0 650 | cloudProjectId: 651 | framebufferDepthMemorylessMode: 0 652 | qualitySettingsNames: [] 653 | projectName: 654 | organizationId: 655 | cloudEnabled: 0 656 | legacyClampBlendShapeWeights: 0 657 | virtualTexturingSupportEnabled: 0 658 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2020.3.24f1 2 | m_EditorVersionWithRevision: 2020.3.24f1 (79c78de19888) 3 | -------------------------------------------------------------------------------- /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: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | skinWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | customRenderPipeline: {fileID: 0} 44 | excludedTargetPlatforms: [] 45 | - serializedVersion: 2 46 | name: Low 47 | pixelLightCount: 0 48 | shadows: 0 49 | shadowResolution: 0 50 | shadowProjection: 1 51 | shadowCascades: 1 52 | shadowDistance: 20 53 | shadowNearPlaneOffset: 3 54 | shadowCascade2Split: 0.33333334 55 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 56 | shadowmaskMode: 0 57 | skinWeights: 2 58 | textureQuality: 0 59 | anisotropicTextures: 0 60 | antiAliasing: 0 61 | softParticles: 0 62 | softVegetation: 0 63 | realtimeReflectionProbes: 0 64 | billboardsFaceCameraPosition: 0 65 | vSyncCount: 0 66 | lodBias: 0.4 67 | maximumLODLevel: 0 68 | streamingMipmapsActive: 0 69 | streamingMipmapsAddAllCameras: 1 70 | streamingMipmapsMemoryBudget: 512 71 | streamingMipmapsRenderersPerFrame: 512 72 | streamingMipmapsMaxLevelReduction: 2 73 | streamingMipmapsMaxFileIORequests: 1024 74 | particleRaycastBudget: 16 75 | asyncUploadTimeSlice: 2 76 | asyncUploadBufferSize: 16 77 | asyncUploadPersistentBuffer: 1 78 | resolutionScalingFixedDPIFactor: 1 79 | customRenderPipeline: {fileID: 0} 80 | excludedTargetPlatforms: [] 81 | - serializedVersion: 2 82 | name: Medium 83 | pixelLightCount: 1 84 | shadows: 1 85 | shadowResolution: 0 86 | shadowProjection: 1 87 | shadowCascades: 1 88 | shadowDistance: 20 89 | shadowNearPlaneOffset: 3 90 | shadowCascade2Split: 0.33333334 91 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 92 | shadowmaskMode: 0 93 | skinWeights: 2 94 | textureQuality: 0 95 | anisotropicTextures: 1 96 | antiAliasing: 0 97 | softParticles: 0 98 | softVegetation: 0 99 | realtimeReflectionProbes: 0 100 | billboardsFaceCameraPosition: 0 101 | vSyncCount: 1 102 | lodBias: 0.7 103 | maximumLODLevel: 0 104 | streamingMipmapsActive: 0 105 | streamingMipmapsAddAllCameras: 1 106 | streamingMipmapsMemoryBudget: 512 107 | streamingMipmapsRenderersPerFrame: 512 108 | streamingMipmapsMaxLevelReduction: 2 109 | streamingMipmapsMaxFileIORequests: 1024 110 | particleRaycastBudget: 64 111 | asyncUploadTimeSlice: 2 112 | asyncUploadBufferSize: 16 113 | asyncUploadPersistentBuffer: 1 114 | resolutionScalingFixedDPIFactor: 1 115 | customRenderPipeline: {fileID: 0} 116 | excludedTargetPlatforms: [] 117 | - serializedVersion: 2 118 | name: High 119 | pixelLightCount: 2 120 | shadows: 2 121 | shadowResolution: 1 122 | shadowProjection: 1 123 | shadowCascades: 2 124 | shadowDistance: 40 125 | shadowNearPlaneOffset: 3 126 | shadowCascade2Split: 0.33333334 127 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 128 | shadowmaskMode: 1 129 | skinWeights: 2 130 | textureQuality: 0 131 | anisotropicTextures: 1 132 | antiAliasing: 0 133 | softParticles: 0 134 | softVegetation: 1 135 | realtimeReflectionProbes: 1 136 | billboardsFaceCameraPosition: 1 137 | vSyncCount: 1 138 | lodBias: 1 139 | maximumLODLevel: 0 140 | streamingMipmapsActive: 0 141 | streamingMipmapsAddAllCameras: 1 142 | streamingMipmapsMemoryBudget: 512 143 | streamingMipmapsRenderersPerFrame: 512 144 | streamingMipmapsMaxLevelReduction: 2 145 | streamingMipmapsMaxFileIORequests: 1024 146 | particleRaycastBudget: 256 147 | asyncUploadTimeSlice: 2 148 | asyncUploadBufferSize: 16 149 | asyncUploadPersistentBuffer: 1 150 | resolutionScalingFixedDPIFactor: 1 151 | customRenderPipeline: {fileID: 0} 152 | excludedTargetPlatforms: [] 153 | - serializedVersion: 2 154 | name: Very High 155 | pixelLightCount: 3 156 | shadows: 2 157 | shadowResolution: 2 158 | shadowProjection: 1 159 | shadowCascades: 2 160 | shadowDistance: 70 161 | shadowNearPlaneOffset: 3 162 | shadowCascade2Split: 0.33333334 163 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 164 | shadowmaskMode: 1 165 | skinWeights: 4 166 | textureQuality: 0 167 | anisotropicTextures: 2 168 | antiAliasing: 2 169 | softParticles: 1 170 | softVegetation: 1 171 | realtimeReflectionProbes: 1 172 | billboardsFaceCameraPosition: 1 173 | vSyncCount: 1 174 | lodBias: 1.5 175 | maximumLODLevel: 0 176 | streamingMipmapsActive: 0 177 | streamingMipmapsAddAllCameras: 1 178 | streamingMipmapsMemoryBudget: 512 179 | streamingMipmapsRenderersPerFrame: 512 180 | streamingMipmapsMaxLevelReduction: 2 181 | streamingMipmapsMaxFileIORequests: 1024 182 | particleRaycastBudget: 1024 183 | asyncUploadTimeSlice: 2 184 | asyncUploadBufferSize: 16 185 | asyncUploadPersistentBuffer: 1 186 | resolutionScalingFixedDPIFactor: 1 187 | customRenderPipeline: {fileID: 0} 188 | excludedTargetPlatforms: [] 189 | - serializedVersion: 2 190 | name: Ultra 191 | pixelLightCount: 4 192 | shadows: 2 193 | shadowResolution: 2 194 | shadowProjection: 1 195 | shadowCascades: 4 196 | shadowDistance: 150 197 | shadowNearPlaneOffset: 3 198 | shadowCascade2Split: 0.33333334 199 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 200 | shadowmaskMode: 1 201 | skinWeights: 255 202 | textureQuality: 0 203 | anisotropicTextures: 2 204 | antiAliasing: 2 205 | softParticles: 1 206 | softVegetation: 1 207 | realtimeReflectionProbes: 1 208 | billboardsFaceCameraPosition: 1 209 | vSyncCount: 1 210 | lodBias: 2 211 | maximumLODLevel: 0 212 | streamingMipmapsActive: 0 213 | streamingMipmapsAddAllCameras: 1 214 | streamingMipmapsMemoryBudget: 512 215 | streamingMipmapsRenderersPerFrame: 512 216 | streamingMipmapsMaxLevelReduction: 2 217 | streamingMipmapsMaxFileIORequests: 1024 218 | particleRaycastBudget: 4096 219 | asyncUploadTimeSlice: 2 220 | asyncUploadBufferSize: 16 221 | asyncUploadPersistentBuffer: 1 222 | resolutionScalingFixedDPIFactor: 1 223 | customRenderPipeline: {fileID: 0} 224 | excludedTargetPlatforms: [] 225 | m_PerPlatformDefaultQuality: 226 | Android: 2 227 | Lumin: 5 228 | Nintendo Switch: 5 229 | PS4: 5 230 | Stadia: 5 231 | Standalone: 5 232 | WebGL: 3 233 | Windows Store Apps: 5 234 | XboxOne: 5 235 | iPhone: 2 236 | tvOS: 2 237 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /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_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | UnityAdsSettings: 27 | m_Enabled: 0 28 | m_InitializeOnStartup: 1 29 | m_TestMode: 0 30 | m_IosGameId: 31 | m_AndroidGameId: 32 | m_GameIds: {} 33 | m_GameId: 34 | PerformanceReportingSettings: 35 | m_Enabled: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Missing References Hunter Unity3D Tool ![unity](https://img.shields.io/badge/Unity-100000?style=for-the-badge&logo=unity&logoColor=white) 2 | 3 | ![stability-stable](https://img.shields.io/badge/stability-stable-green.svg) 4 | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 5 | [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity) 6 | 7 | ## 8 | This tool detects missing references in your assets. 9 | 10 | All code combined into one script for easier portability. 11 | So you can just copy-paste [MissingReferencesHunter.cs](./Packages/MissingRefsHunter/Editor/MissingReferencesHunter.cs) to your project in any Editor folder. 12 | 13 | # How it works 14 | 15 | At first, it collects all your project GUIDs and forms a map of them. 16 | 17 | Then it reads the contents off all GameObjects, ScriptableObjects and Scenes to gather GUIDs they contain. 18 | 19 | Then it simply checks whether these GUIDs are present in the map from the first step. 20 | 21 | It also checks whether GameObjects, ScriptableObjects and Scenes contain local references (e.g. fileID) to non existing parts of itself. 22 | All occurrences of {fileID: 0} are also treated as warning because they might be forgotten references. 23 | 24 | The whole process might take few minutes for huge projects. 25 | 26 | ## To list all missing references in your project... 27 | ..click on "Tools/Missing References Hunter" option which will open the window. 28 | 29 | Press "Run Analysis" button to run the analysis (can take several minutes depending on the size of your project). 30 | 31 | ![plot](./Screenshots/main_window.png) 32 | 33 | ## Working with results 34 | 35 | * [Missing FileID and Guid] - in 100% of cases indicates an error like on the screenshot below 36 | ![plot](./Screenshots/missing_reference_example.png) 37 | 38 | * [Missing Guid] - most likely indicates an error. Sometimes missing GUID can be compensated by FileID 39 | so we are not 100% that there is a problem. However the tool still marks it as a warning for you to investigate 40 | 41 | * Other FileID issues most likely do not indicate errors and are hidden by default 42 | 43 | ## How it works 44 | 45 | Unity uses FileID and GUID entities to identify and assign assets to each other 46 | 47 | This tool scans all assets to find all FileIDs and / or GUIDs that are assigned to a field 48 | but do not exist neither in current asset nor in all project 49 | 50 | 51 | There are several types of issues that might occur during this analysis 52 | 53 | * [Missing FileID and Guid] - both identifiers do not exist 54 | 55 | 56 | in that case we are 100% sure that there is a missing reference so we mark it with red color 57 | 58 | * [Missing Guid] - only Guid does not exist 59 | * [Missing FileId] - only FileId does not exist 60 | 61 | this issues need further investigation by you because there might be or not a missing reference since it can be somehow processed by some internal Unity code 62 | 63 | 64 | [Missing FileId] usually involves more internal nuances and less likely indicates an error and so we mark it as non-warning (cyan) 65 | 66 | however [Missing Guid] most of the times indicates that there are some errors so we mark it as yellow 67 | 68 | ``` 69 | In most cases you just need to fix [Missing FileID and Guid] and [Missing Guid] issues 70 | ``` 71 | 72 | That is why other filters are hidden by default and most of the users won't need them 73 | 74 | * please also note that not all missing references are presented in Unity inspector 75 | * some of them might be hidden if current serialization doesn't cover fields that contain errors 76 | * or some of them might be replaced by custom inspectors etc 77 | 78 | * so in some cases you need to enable Debug inspector view or even dive into the asset file text contents 79 | 80 | 81 | This tool also collects some other info: 82 | 83 | * [Missing Local FileID] - might indicate that there is some issue with internal objects referencing each other 84 | * [Empty Local FileID] - might indicate an empty internal field 85 | 86 | these two fields provide some very specific info that is rarely needed for most of users 87 | 88 | ## Installation 89 | 90 | 1. Just copy and paste file [MissingReferencesHunter.cs](./Packages/MissingRefsHunter/Editor/MissingReferencesHunter.cs) inside Editor folder 91 | 2. [WIP] via Unity's Package Manager 92 | 93 | ## Contributions 94 | 95 | Feel free to [report bugs, request new features](https://github.com/AlexeyPerov/Unity-MissingReferences-Hunter/issues) 96 | or to [contribute](https://github.com/AlexeyPerov/Unity-MissingReferences-Hunter/pulls) to this project! 97 | 98 | ## Other tools 99 | 100 | ##### Dependencies Hunter 101 | 102 | - To find unreferenced assets in Unity project see [Dependencies-Hunter](https://github.com/AlexeyPerov/Unity-Dependencies-Hunter). 103 | 104 | ##### Textures Hunter 105 | 106 | - To analyze your textures and atlases see [Textures-Hunter](https://github.com/AlexeyPerov/Unity-Textures-Hunter). 107 | 108 | ##### Editor Coroutines 109 | 110 | - Unity Editor Coroutines alternative version [Lite-Editor-Coroutines](https://github.com/AlexeyPerov/Unity-Lite-Editor-Coroutines). 111 | - Simplified and compact version [Pocket-Editor-Coroutines](https://github.com/AlexeyPerov/Unity-Pocket-Editor-Coroutines). 112 | -------------------------------------------------------------------------------- /Screenshots/main_window.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexeyPerov/Unity-MissingReferences-Hunter/a9e68f710b43bb20580c4e91f3e75bde91df6621/Screenshots/main_window.png -------------------------------------------------------------------------------- /Screenshots/missing_reference_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexeyPerov/Unity-MissingReferences-Hunter/a9e68f710b43bb20580c4e91f3e75bde91df6621/Screenshots/missing_reference_example.png --------------------------------------------------------------------------------