├── .gitignore ├── Assets ├── Assets.meta ├── Assets │ ├── AssetType1_01.asset │ ├── AssetType1_01.asset.meta │ ├── AssetType1_02.asset │ ├── AssetType1_02.asset.meta │ ├── AssetType2_01.asset │ ├── AssetType2_01.asset.meta │ ├── SuperName.asset │ └── SuperName.asset.meta ├── Data.meta ├── Data │ ├── CustomData1.asset │ ├── CustomData1.asset.meta │ ├── CustomData2.asset │ ├── CustomData2.asset.meta │ ├── CustomData3.asset │ └── CustomData3.asset.meta ├── Editor.meta ├── Editor │ ├── AssetDatabaseExamples.cs │ ├── AssetDatabaseExamples.cs.meta │ ├── RefactorExamples.cs │ └── RefactorExamples.cs.meta ├── Gemserk.RefactorTools.meta ├── Gemserk.RefactorTools │ ├── CHANGELOG.md │ ├── CHANGELOG.md.meta │ ├── Editor.meta │ ├── Editor │ │ ├── AssetDatabaseExt.cs │ │ ├── AssetDatabaseExt.cs.meta │ │ ├── Gemserk.RefactorTools.Editor.asmdef │ │ ├── Gemserk.RefactorTools.Editor.asmdef.meta │ │ ├── RefactorTools.cs │ │ └── RefactorTools.cs.meta │ ├── LICENSE.md │ ├── LICENSE.md.meta │ ├── README.md │ ├── README.md.meta │ ├── Tests.meta │ ├── Tests │ │ ├── AssetDatabaseExtTests.cs │ │ ├── AssetDatabaseExtTests.cs.meta │ │ ├── Gemserk.RefactorTools.Tests.asmdef │ │ └── Gemserk.RefactorTools.Tests.asmdef.meta │ ├── package.json │ └── package.json.meta ├── Models.meta ├── Models │ ├── Material.mat │ ├── Material.mat.meta │ ├── cube.fbx │ └── cube.fbx.meta ├── Prefabs.meta ├── Prefabs │ ├── Prefab1.prefab │ ├── Prefab1.prefab.meta │ ├── Prefab1VariantNoOverride.prefab │ ├── Prefab1VariantNoOverride.prefab.meta │ ├── Prefab1VariantWithOverride.prefab │ ├── Prefab1VariantWithOverride.prefab.meta │ ├── PrefabWithBrokenScript.prefab │ ├── PrefabWithBrokenScript.prefab.meta │ ├── PrefabWithDestroyableBehaviour.prefab │ ├── PrefabWithDestroyableBehaviour.prefab.meta │ ├── PrefabWithModel.prefab │ ├── PrefabWithModel.prefab.meta │ ├── PrefabWithScriptDisabledInChildren.prefab │ ├── PrefabWithScriptDisabledInChildren.prefab.meta │ ├── PrefabWithScriptInChildren.prefab │ ├── PrefabWithScriptInChildren.prefab.meta │ ├── Prefab_Definition.prefab │ ├── Prefab_Definition.prefab.meta │ ├── Prefab_TwoComponents_Interface.prefab │ └── Prefab_TwoComponents_Interface.prefab.meta ├── PublishData.asset ├── PublishData.asset.meta ├── RefactorExamplesData.meta ├── RefactorExamplesData │ ├── ChildrenBehaviour.cs │ ├── ChildrenBehaviour.cs.meta │ ├── ComponentA.cs │ ├── ComponentA.cs.meta │ ├── ComponentB.cs │ ├── ComponentB.cs.meta │ ├── ComponentC.cs │ ├── ComponentC.cs.meta │ ├── ComponentD.cs │ ├── ComponentD.cs.meta │ ├── ComponentDButAnother.cs │ ├── ComponentDButAnother.cs.meta │ ├── ComponentE.cs │ ├── ComponentE.cs.meta │ ├── ComponentException.cs │ ├── ComponentException.cs.meta │ ├── ComponentF.cs │ ├── ComponentF.cs.meta │ ├── ComponentG.cs │ ├── ComponentG.cs.meta │ ├── CustomBehaviour.cs │ ├── CustomBehaviour.cs.meta │ ├── CustomDataAsset.cs │ ├── CustomDataAsset.cs.meta │ ├── DestroyableBehaviour.cs │ ├── DestroyableBehaviour.cs.meta │ ├── ICustomComponent.cs │ └── ICustomComponent.cs.meta ├── Scenes.meta ├── Scenes │ ├── Bug_RefactorInComponent_NotMarkedDirty.unity │ ├── Bug_RefactorInComponent_NotMarkedDirty.unity.meta │ ├── Bug_RefactorInComponent_NotMarkedDirtySettings.lighting │ ├── Bug_RefactorInComponent_NotMarkedDirtySettings.lighting.meta │ ├── SceneWithComponentException1.unity │ ├── SceneWithComponentException1.unity.meta │ ├── SceneWithComponentException1Settings.lighting │ ├── SceneWithComponentException1Settings.lighting.meta │ ├── SceneWithComponentException2.unity │ ├── SceneWithComponentException2.unity.meta │ ├── SceneWithComponentException3.unity │ ├── SceneWithComponentException3.unity.meta │ ├── SceneWithData.unity │ ├── SceneWithData.unity.meta │ ├── SceneWithData2.unity │ ├── SceneWithData2.unity.meta │ ├── SceneWithDestroyableBehaviour.unity │ ├── SceneWithDestroyableBehaviour.unity.meta │ ├── SceneWithExamples_MoveComponentToChild.unity │ ├── SceneWithExamples_MoveComponentToChild.unity.meta │ ├── SceneWithExamples_MoveComponentToChild_References.unity │ ├── SceneWithExamples_MoveComponentToChild_References.unity.meta │ ├── SceneWithExamples_MoveComponentToParent.unity │ ├── SceneWithExamples_MoveComponentToParent.unity.meta │ ├── SceneWithExamples_MoveComponentToParentSettings.lighting │ └── SceneWithExamples_MoveComponentToParentSettings.lighting.meta ├── SuperNamespaace.meta └── SuperNamespaace │ ├── AssetType1.cs │ ├── AssetType1.cs.meta │ ├── AssetType2.cs │ ├── AssetType2.cs.meta │ ├── IAsset.cs │ └── IAsset.cs.meta ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── RiderScriptEditorPersistedState.asset ├── SceneTemplateSettings.json ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset ├── XRSettings.asset └── boot.config ├── README.md └── screenshots └── twitter_logo.png /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | /[Ll]ogs/ 8 | /editor-tests/ 9 | 10 | # Autogenerated Jetbrains Rider plugin 11 | [Aa]ssets/Plugins/Editor/JetBrains* 12 | 13 | # Visual Studio cache directory 14 | .vs/ 15 | 16 | # OS generated # 17 | .DS_Store 18 | .DS_Store? 19 | ._* 20 | .Spotlight-V100 21 | .Trashes 22 | ehthumbs.db 23 | Thumbs.db 24 | 25 | # Autogenerated VS/MD/Consulo solution and project files 26 | ExportedObj/ 27 | .consulo/ 28 | *.csproj 29 | *.unityproj 30 | *.sln 31 | *.suo 32 | *.tmp 33 | *.user 34 | *.userprefs 35 | *.pidb 36 | *.booproj 37 | *.svd 38 | *.pdb 39 | *.opendb 40 | 41 | # Unity3D generated meta files 42 | *.pidb.meta 43 | *.pdb.meta 44 | 45 | # Unity3D Generated File On Crash Reports 46 | sysinfo.txt 47 | 48 | # Builds 49 | *.apk 50 | *.unitypackage 51 | 52 | # Rider 53 | .idea/ 54 | 55 | buildlogs/ 56 | 57 | .vscode/settings.json 58 | 59 | MemoryCaptures/ 60 | profiler/ 61 | Recordings/ 62 | 63 | UserSettings/ 64 | /TempAssets/ -------------------------------------------------------------------------------- /Assets/Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8cdbbe9b24bae4f40a7250072804e350 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Assets/AssetType1_01.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: 7f157d760de34a14b38a6b4fc28beb5c, type: 3} 13 | m_Name: AssetType1_01 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/Assets/AssetType1_01.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4439b15c26b4cb74da04e9d2a57602f8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Assets/AssetType1_02.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: 7f157d760de34a14b38a6b4fc28beb5c, type: 3} 13 | m_Name: AssetType1_02 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/Assets/AssetType1_02.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f9fa60a382595b4aa5d7a1280e8a252 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Assets/AssetType2_01.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: 413550ce815a46bfa1445e8eee33913c, type: 3} 13 | m_Name: AssetType2_01 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/Assets/AssetType2_01.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b18e9deb38017d4bbe24af981305c22 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Assets/SuperName.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: 413550ce815a46bfa1445e8eee33913c, type: 3} 13 | m_Name: SuperName 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/Assets/SuperName.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 293fe40685f153e47becbcc8e5cdc78e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Data.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 186092b68319c664f95325175166d74a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Data/CustomData1.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: 5a948b7db7efff149b3aac919c1f8f8a, type: 3} 13 | m_Name: CustomData1 14 | m_EditorClassIdentifier: 15 | previousValue: 52 16 | newValue: 17 | -------------------------------------------------------------------------------- /Assets/Data/CustomData1.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 813f806e772c3f14a8b3fce6f239269d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Data/CustomData2.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: 5a948b7db7efff149b3aac919c1f8f8a, type: 3} 13 | m_Name: CustomData2 14 | m_EditorClassIdentifier: 15 | previousValue: 33 16 | newValue: 17 | -------------------------------------------------------------------------------- /Assets/Data/CustomData2.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc3772db03354e6479e25476de0d986a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Data/CustomData3.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: 5a948b7db7efff149b3aac919c1f8f8a, type: 3} 13 | m_Name: CustomData3 14 | m_EditorClassIdentifier: 15 | previousValue: 33 16 | newValue: 17 | -------------------------------------------------------------------------------- /Assets/Data/CustomData3.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65373c753b8e40940b3ff255b5edca6c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fa350535e912654b8905289f3bd3946 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/AssetDatabaseExamples.cs: -------------------------------------------------------------------------------- 1 | using Gemserk.RefactorTools.Editor; 2 | using RefactorExamplesData; 3 | using SuperNamespaace; 4 | using UnityEditor; 5 | using UnityEngine; 6 | 7 | public static class AssetDatabaseExamples 8 | { 9 | [MenuItem("Examples/AssetDatabase/Find Assets Of Type (generics)")] 10 | public static void FindAssetsOfTypeGenerics() 11 | { 12 | var assets = AssetDatabaseExt.FindAssets(); 13 | foreach (var asset in assets) 14 | { 15 | Debug.Log(asset.name); 16 | } 17 | } 18 | 19 | [MenuItem("Examples/AssetDatabase/Find Assets Of Type")] 20 | public static void FindAssetsOfType() 21 | { 22 | var assets = AssetDatabaseExt.FindAssets(typeof(AssetType2)); 23 | foreach (var asset in assets) 24 | { 25 | Debug.Log(asset.name); 26 | } 27 | } 28 | 29 | [MenuItem("Examples/AssetDatabase/Find Assets Of Type Matching Name")] 30 | public static void FindAssetsOfTypeMatchingName() 31 | { 32 | var assets = AssetDatabaseExt.FindAssets(typeof(AssetType2), "Super"); 33 | foreach (var asset in assets) 34 | { 35 | Debug.Log(asset.name); 36 | } 37 | } 38 | 39 | [MenuItem("Examples/AssetDatabase/Find Assets Of interface Type")] 40 | public static void FindAssetsOfInterfaceType() 41 | { 42 | var assets = AssetDatabaseExt.FindAssetsAll(typeof(IAsset)); 43 | foreach (var asset in assets) 44 | { 45 | Debug.Log(asset.name); 46 | } 47 | } 48 | 49 | [MenuItem("Examples/AssetDatabase/Find Prefabs with text")] 50 | public static void FindPrefabsWithText() 51 | { 52 | var assets = AssetDatabaseExt.FindPrefabs(AssetDatabaseExt.FindOptions.ConsiderInactiveChildren, "Definition"); 53 | foreach (var asset in assets) 54 | { 55 | Debug.Log(asset.name); 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /Assets/Editor/AssetDatabaseExamples.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b75d1ef86954c2d94548017d810a175 3 | timeCreated: 1675620240 -------------------------------------------------------------------------------- /Assets/Editor/RefactorExamples.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da2467eca94405f41a67797be4805b6b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 686c0a7c7f6b101499c018c11a0c9b51 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 0.1.0 2 | 3 | * Changed: Refactor data now specifies with enum its source type and the path is for the prefab or for the scene. 4 | 5 | # 0.0.19 6 | 7 | * Added: new parameter to specify if default debug must be enabled or not (false by default). 8 | * Added: new parameter to specify if refactor should stop on any failure or not (false by default). 9 | * Fix: continue refactoring prefabs if one refactor fails with exception 10 | * Fix: continue refactoring scene if one object refactor from scene fails. 11 | 12 | # 0.0.18 13 | 14 | * fix: use exact match for new script when replacing scripts 15 | 16 | # 0.0.17 17 | 18 | * ReplaceScript returns bool value, true if found scripts to replace and false otherwise. 19 | 20 | # 0.0.16 21 | 22 | * Find Prefabs now allow using some text for filtering when looking for assets with the AssetDatabase, before filtering by type. 23 | 24 | # 0.0.15 25 | 26 | * New FindAssetsAll that allows any type, even interfaces, when searching for assets in the AssetsDatabase. 27 | 28 | # 0.0.14 29 | 30 | * Refactor methods for Components/MonoBehaviours work now with interfaces. 31 | 32 | # 0.0.13 33 | 34 | * New ReplaceScript refactor method, to change from one MonoBehaviour to another. 35 | * DestroyMonoBehaviour refactor receives optional refactor parameters now too. 36 | 37 | # 0.0.12 38 | 39 | * Display progress bar for find prefabs. 40 | * Added API to find assets with specific text in the name. 41 | 42 | # 0.0.11 43 | 44 | * Show user save modified scenes dialog before refactoring (if considering scenes). 45 | 46 | # 0.0.10 47 | 48 | * Added general result for prefabs refactor to show failed prefabs (when missing scripts for example) and scenes. 49 | 50 | # 0.0.9 51 | 52 | * Now FindPrefabs can search for components in inactive children too. 53 | 54 | # 0.0.8 55 | 56 | * Added support for FindAssets(type) instead of just generics. 57 | 58 | # 0.0.7 59 | 60 | * Check scenes and prefab parameters are not null. 61 | * Fixed bug with search filter with FindAssets() 62 | 63 | # 0.0.6 64 | 65 | * Fixed to sort by root prefab first when refactoring. 66 | 67 | # 0.0.5 68 | 69 | * Changed to pass prefabs and scenes as parameters. 70 | 71 | # 0.0.4 72 | 73 | * Downgraded to Unity 2019.4.x. 74 | 75 | # 0.0.3 76 | 77 | * Changing to have a ParameterObject to declare how refactor should behave. 78 | * Added RefactorResult struct to return after the refactor to allow the generic logic to do more stuff (in the future). 79 | * Added more info in RefactorData. 80 | 81 | # 0.0.2 82 | 83 | * Added general refactor to remove MonoBehaviour from prefabs and scenes, and optinally destroy the empty GameObject in case there are no more components. 84 | 85 | # 0.0.1 86 | 87 | * Initial version -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7bf9f7e818b301047baf6d27062d08be 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa3146f2b8ecabb47b5fbac44ee2f4f4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Editor/AssetDatabaseExt.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using UnityEditor; 5 | using UnityEngine; 6 | using Object = UnityEngine.Object; 7 | 8 | namespace Gemserk.RefactorTools.Editor 9 | { 10 | public static class AssetDatabaseExt 11 | { 12 | [Flags] 13 | public enum FindOptions 14 | { 15 | None = 1 << 0, 16 | ConsiderChildren = 1 << 1, 17 | ConsiderInactiveChildren = 1 << 2 18 | } 19 | 20 | public static string GetSearchFilter() 21 | { 22 | return GetSearchFilter(typeof(T)); 23 | } 24 | 25 | public static string GetSearchFilter(Type type) 26 | { 27 | return $"t:{type.Name}"; 28 | } 29 | 30 | public static List FindAssets(string[] folders = null) where T : Object 31 | { 32 | return FindAssets(typeof(T), folders).Select(t => t as T).ToList(); 33 | } 34 | 35 | public static List FindAssets(string text, string[] folders = null) where T : Object 36 | { 37 | return FindAssets(typeof(T), text, folders).Select(t => t as T).ToList(); 38 | } 39 | 40 | public static List FindAssets(Type type, string[] folders = null) 41 | { 42 | return FindAssets(type, null, folders); 43 | } 44 | 45 | public static List FindAssets(Type type, string text, string[] folders = null) 46 | { 47 | var searchFilter = GetSearchFilter(type); 48 | 49 | if (!string.IsNullOrEmpty(text)) 50 | { 51 | searchFilter += $" {text}"; 52 | } 53 | 54 | var guids = AssetDatabase.FindAssets(searchFilter, folders); 55 | return guids.Select(g => AssetDatabase.LoadAssetAtPath( 56 | AssetDatabase.GUIDToAssetPath(g), type)).ToList(); 57 | } 58 | 59 | /// 60 | /// Similar to FindAssets but the main difference is that it doesn't filter by Type before searching but 61 | /// after, so it will be a bit slower, finding all objects and then checking them if they match the type. 62 | /// 63 | /// The type the asset should match (can be an interface) 64 | /// Text filters for the search pattern. 65 | /// The folders to lookout for assets. 66 | /// 67 | public static List FindAssetsAll(Type type, string text = null, string[] folders = null) 68 | { 69 | var assets = FindAssets(typeof(Object), text, folders); 70 | return assets.Where(type.IsInstanceOfType).ToList(); 71 | } 72 | 73 | public static List FindAssetsAll(string text = null, string[] folders = null) 74 | { 75 | return FindAssetsAll(typeof(T), text, folders); 76 | } 77 | 78 | public static List FindPrefabs(FindOptions options = 0, string text = null, string[] folders = null) 79 | { 80 | return FindPrefabs(new []{typeof(T)}, options, text, folders); 81 | } 82 | 83 | public static List FindPrefabs(FindOptions options = 0, string text = null, string[] folders = null) 84 | { 85 | return FindPrefabs(new []{typeof(T1), typeof(T2)} , options, text, folders); 86 | } 87 | 88 | public static List FindPrefabs(FindOptions options = 0, string text = null, string[] folders = null) 89 | { 90 | return FindPrefabs(new []{typeof(T1), typeof(T2), typeof(T3)}, options, text, folders); 91 | } 92 | 93 | public static List FindPrefabs(IEnumerable types, FindOptions options, string text, string[] folders) 94 | { 95 | try 96 | { 97 | EditorUtility.DisplayProgressBar($"Finding Prefabs with types", "Start", 0); 98 | 99 | var considerChildren = options.HasFlag(FindOptions.ConsiderChildren) || options.HasFlag(FindOptions.ConsiderInactiveChildren); 100 | var considerDisabled = options.HasFlag(FindOptions.ConsiderInactiveChildren); 101 | 102 | var searchFilter = "t:Prefab"; 103 | 104 | if (!string.IsNullOrEmpty(text)) 105 | { 106 | searchFilter += $" {text}"; 107 | } 108 | 109 | var guids = AssetDatabase.FindAssets(searchFilter, folders); 110 | 111 | var prefabs = guids.Select(g => AssetDatabase.LoadAssetAtPath( 112 | AssetDatabase.GUIDToAssetPath(g))).ToList(); 113 | 114 | if (considerChildren) 115 | { 116 | IEnumerable result = prefabs; 117 | // By default is the AND of all specified Types 118 | foreach (var type in types) 119 | { 120 | result = result.Where(p => p.GetComponentInChildren(type, considerDisabled) != null); 121 | } 122 | return result.ToList(); 123 | } 124 | else 125 | { 126 | IEnumerable result = prefabs; 127 | // By default is the AND of all specified Types 128 | foreach (var type in types) 129 | { 130 | result = result.Where(p => p.GetComponent(type) != null); 131 | } 132 | return result.ToList(); 133 | } 134 | 135 | } finally { 136 | EditorUtility.ClearProgressBar(); 137 | } 138 | } 139 | 140 | public static List FindAllScenes() 141 | { 142 | var guidList = new List(); 143 | 144 | guidList.AddRange(AssetDatabase.FindAssets("t:scene", new [] 145 | { 146 | "Assets" 147 | })); 148 | 149 | return guidList.Select(AssetDatabase.GUIDToAssetPath).ToList(); 150 | } 151 | } 152 | } -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Editor/AssetDatabaseExt.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 89efe2105f4043bea003cb17a0d6484d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Editor/Gemserk.RefactorTools.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Gemserk.RefactorTools.Editor", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [ 6 | "Editor" 7 | ], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [], 15 | "noEngineReferences": false 16 | } -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Editor/Gemserk.RefactorTools.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 062bb25352eeaa047b70bde6f87fbecf 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Editor/RefactorTools.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 805ed79e3e214ae0adb21afb23c76c9f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2022 Ariel Coppes 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 13 | all 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 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/LICENSE.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b5c1e854eba6e14cb39a2b277753375 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/README.md: -------------------------------------------------------------------------------- 1 | [![openupm](https://img.shields.io/npm/v/com.gemserk.refactortools?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gemserk.refactortools/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 2 | # Unity Refactor Tools 3 | 4 | Tools for refactoring content stored in Unity Prefabs, Scenes and other Assets. 5 | 6 | This project was initially used to show examples for this [blogpost](https://blog.gemserk.com/2022/04/24/refactoring-prefabs-and-unity-objects/). 7 | 8 | ### Install it from OpenUPM 9 | 10 | This package can be installed using OpenUPM, just click here [![openupm](https://img.shields.io/npm/v/com.gemserk.refactortools?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gemserk.refactortools/) for more details. 11 | 12 | ### Usage 13 | 14 | If you want, for example, copy some MonoBehaviour fields to new field and consider all prefabs and prefab instances in scene, then run something like this: 15 | 16 | ```csharp 17 | RefactorTools.RefactorMonoBehaviour(new RefactorTools.RefactorParameters 18 | { 19 | prefabs = AssetDatabaseExt.FindPrefabs(), 20 | scenes = AssetDatabaseExt.FindAllScenes() 21 | }, delegate(GameObject gameObject, 22 | RefactorTools.RefactorData _) 23 | { 24 | var behaviours = gameObject.GetComponentsInChildren(); 25 | foreach (var behaviour in behaviours) 26 | { 27 | behaviour.speed = new Speed 28 | { 29 | baseValue = behaviour.speedBaseValue, 30 | incrementValue = behaviour.speedIncrementValue 31 | }; 32 | } 33 | return new RefactorTools.RefactorResult 34 | { 35 | completed = true 36 | }; 37 | }); 38 | ``` 39 | 40 | ### RefactorData parameter 41 | 42 | You can customize refactors by using extra data received when refactoring with `RefactorData` parameter: 43 | 44 | ```csharp 45 | RefactorTools.RefactorMonoBehaviour(new RefactorTools.RefactorParameters 46 | { 47 | prefabs = AssetDatabaseExt.FindPrefabs(), 48 | scenes = AssetDatabaseExt.FindAllScenes() 49 | }, delegate(GameObject gameObject, 50 | RefactorTools.RefactorData data) 51 | { 52 | if (data.inScene) 53 | { 54 | if (data.scenePath.Contains("Levels")) 55 | { 56 | // do extra logic like search for specific reference or anything else 57 | } 58 | } 59 | else 60 | { 61 | // do some prefab refactor 62 | } 63 | }); 64 | ``` 65 | 66 | ### Roadmap 67 | 68 | Here are some ideas on how to expand the project. 69 | 70 | * Customize generic refactor logic by expanding `RefactorParameters`, `RefactorData` and `RefactorResult`. 71 | * More refactor methods for general usage, like moving MonoBehaviour to another object, etc. 72 | * Customizable window to perform general refactors. 73 | * Automatize refactors using SerializedObjects and SerializedProperties to refactor field changes. 74 | ### Collaborate 75 | 76 | Feel free to create issues for feature requests and/or submit pull requests with your own improvements. 77 | 78 | ### Contact 79 | 80 |
@arielsan
-------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd607d2b7a085784197cc0c46ceb5352 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a04e04f92c67a7a46ba678bf59bf2a22 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Tests/AssetDatabaseExtTests.cs: -------------------------------------------------------------------------------- 1 | using Gemserk.RefactorTools.Editor; 2 | using NUnit.Framework; 3 | using UnityEngine; 4 | 5 | namespace Gemserk.RefactorTools.Tests 6 | { 7 | public class AssetDatabaseExtTests 8 | { 9 | [Test] 10 | public void GetFilter_ReturnProperSearchString() 11 | { 12 | Assert.AreEqual("t:Texture2D", AssetDatabaseExt.GetSearchFilter()); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Tests/AssetDatabaseExtTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1c1956e03b0ada45a0b5673ea01be5e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Tests/Gemserk.RefactorTools.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Gemserk.RefactorTools.Tests", 3 | "rootNamespace": "", 4 | "references": [ 5 | "UnityEngine.TestRunner", 6 | "UnityEditor.TestRunner", 7 | "Gemserk.RefactorTools.Editor" 8 | ], 9 | "includePlatforms": [ 10 | "Editor" 11 | ], 12 | "excludePlatforms": [], 13 | "allowUnsafeCode": false, 14 | "overrideReferences": true, 15 | "precompiledReferences": [ 16 | "nunit.framework.dll" 17 | ], 18 | "autoReferenced": false, 19 | "defineConstraints": [ 20 | "UNITY_INCLUDE_TESTS" 21 | ], 22 | "versionDefines": [], 23 | "noEngineReferences": false 24 | } -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/Tests/Gemserk.RefactorTools.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61ddb1bf71281f04d890c03c6c3fd330 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.gemserk.refactortools", 3 | "version": "0.1.1", 4 | "displayName": "com.gemserk.refactortools", 5 | "description": "Unity Refactor Tools from https://blog.gemserk.com/2022/04/24/refactoring-prefabs-and-unity-objects/ and https://github.com/acoppes/unity-refactoring-tools", 6 | "unity": "2020.3", 7 | "unityRelease": "43f1", 8 | "dependencies": { }, 9 | "keywords": [ 10 | "content", 11 | "tools", 12 | "refactor", 13 | "assets" 14 | ], 15 | "author": { 16 | "name": "Ariel Coppes", 17 | "email": "ariel.coppes@gmail.com", 18 | "url": "https://blog.gemserk.com" 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/Gemserk.RefactorTools/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 084b5fb5ca00e9741ad71c110cf49b89 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 196a5e2a737af4f4bab639adf1310c87 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Models/Material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: Material 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 1 75 | m_Colors: 76 | - _Color: {r: 0.9063317, g: 0.9063317, b: 0.9063317, a: 1} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | m_BuildTextureStacks: [] 79 | -------------------------------------------------------------------------------- /Assets/Models/Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68564fff7d2138041a71d4d9d52549e0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Models/cube.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acoppes/unity-refactoring-tools/d47f88a9041bb9d0ec2ad0d8db640aee26362fe9/Assets/Models/cube.fbx -------------------------------------------------------------------------------- /Assets/Models/cube.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1dc955a85c14604683cb1dd82cfdea6 3 | ModelImporter: 4 | serializedVersion: 20300 5 | internalIDToNameTable: [] 6 | externalObjects: 7 | - first: 8 | type: UnityEngine:Material 9 | assembly: UnityEngine.CoreModule 10 | name: Material 11 | second: {fileID: 2100000, guid: 68564fff7d2138041a71d4d9d52549e0, type: 2} 12 | materials: 13 | materialImportMode: 2 14 | materialName: 0 15 | materialSearch: 1 16 | materialLocation: 1 17 | animations: 18 | legacyGenerateAnimations: 4 19 | bakeSimulation: 0 20 | resampleCurves: 1 21 | optimizeGameObjects: 0 22 | motionNodeName: 23 | rigImportErrors: 24 | rigImportWarnings: 25 | animationImportErrors: 26 | animationImportWarnings: 27 | animationRetargetingWarnings: 28 | animationDoRetargetingWarnings: 0 29 | importAnimatedCustomProperties: 0 30 | importConstraints: 0 31 | animationCompression: 1 32 | animationRotationError: 0.5 33 | animationPositionError: 0.5 34 | animationScaleError: 0.5 35 | animationWrapMode: 0 36 | extraExposedTransformPaths: [] 37 | extraUserProperties: [] 38 | clipAnimations: [] 39 | isReadable: 0 40 | meshes: 41 | lODScreenPercentages: [] 42 | globalScale: 1 43 | meshCompression: 0 44 | addColliders: 0 45 | useSRGBMaterialColor: 1 46 | sortHierarchyByName: 1 47 | importVisibility: 1 48 | importBlendShapes: 1 49 | importCameras: 1 50 | importLights: 1 51 | fileIdsGeneration: 2 52 | swapUVChannels: 0 53 | generateSecondaryUV: 0 54 | useFileUnits: 1 55 | keepQuads: 0 56 | weldVertices: 1 57 | bakeAxisConversion: 0 58 | preserveHierarchy: 0 59 | skinWeightsMode: 0 60 | maxBonesPerVertex: 4 61 | minBoneWeight: 0.001 62 | meshOptimizationFlags: -1 63 | indexFormat: 0 64 | secondaryUVAngleDistortion: 8 65 | secondaryUVAreaDistortion: 15.000001 66 | secondaryUVHardAngle: 88 67 | secondaryUVMarginMethod: 1 68 | secondaryUVMinLightmapResolution: 40 69 | secondaryUVMinObjectScale: 1 70 | secondaryUVPackMargin: 4 71 | useFileScale: 1 72 | tangentSpace: 73 | normalSmoothAngle: 60 74 | normalImportMode: 0 75 | tangentImportMode: 3 76 | normalCalculationMode: 4 77 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 78 | blendShapeNormalImportMode: 1 79 | normalSmoothingSource: 0 80 | referencedClips: [] 81 | importAnimation: 1 82 | humanDescription: 83 | serializedVersion: 3 84 | human: [] 85 | skeleton: [] 86 | armTwist: 0.5 87 | foreArmTwist: 0.5 88 | upperLegTwist: 0.5 89 | legTwist: 0.5 90 | armStretch: 0.05 91 | legStretch: 0.05 92 | feetSpacing: 0 93 | globalScale: 1 94 | rootMotionBoneName: 95 | hasTranslationDoF: 0 96 | hasExtraRoot: 0 97 | skeletonHasParents: 1 98 | lastHumanDescriptionAvatarSource: {instanceID: 0} 99 | autoGenerateAvatarMappingIfUnspecified: 1 100 | animationType: 2 101 | humanoidOversampling: 1 102 | avatarSetup: 0 103 | addHumanoidExtraRootOnlyWhenUsingAvatar: 1 104 | remapMaterialsIfMaterialImportModeIsNone: 0 105 | additionalBone: 0 106 | userData: 107 | assetBundleName: 108 | assetBundleVariant: 109 | -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0b7e15da41b3f940942b7b731795875 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab1.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &4715534444071754855 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: 2770954233856461040} 12 | - component: {fileID: 854457505094657706} 13 | m_Layer: 0 14 | m_Name: Prefab1 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &2770954233856461040 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: 4715534444071754855} 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 &854457505094657706 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: 4715534444071754855} 41 | m_Enabled: 1 42 | m_EditorHideFlags: 0 43 | m_Script: {fileID: 11500000, guid: 48f0fcf16e7957b419f80c8f0e69592e, type: 3} 44 | m_Name: 45 | m_EditorClassIdentifier: 46 | speedBaseValue: 7 47 | speedIncrementValue: 2 48 | speed: 49 | baseValue: 0 50 | incrementValue: 0 51 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab1.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7f9a2868922ade469f9694df41a6f51 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab1VariantNoOverride.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &3834286336893064390 4 | PrefabInstance: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: 10 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 11 | type: 3} 12 | propertyPath: m_RootOrder 13 | value: 0 14 | objectReference: {fileID: 0} 15 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 16 | type: 3} 17 | propertyPath: m_LocalPosition.x 18 | value: 0 19 | objectReference: {fileID: 0} 20 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 21 | type: 3} 22 | propertyPath: m_LocalPosition.y 23 | value: 0 24 | objectReference: {fileID: 0} 25 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 26 | type: 3} 27 | propertyPath: m_LocalPosition.z 28 | value: 0 29 | objectReference: {fileID: 0} 30 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 31 | type: 3} 32 | propertyPath: m_LocalRotation.w 33 | value: 1 34 | objectReference: {fileID: 0} 35 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 36 | type: 3} 37 | propertyPath: m_LocalRotation.x 38 | value: 0 39 | objectReference: {fileID: 0} 40 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 41 | type: 3} 42 | propertyPath: m_LocalRotation.y 43 | value: 0 44 | objectReference: {fileID: 0} 45 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 46 | type: 3} 47 | propertyPath: m_LocalRotation.z 48 | value: 0 49 | objectReference: {fileID: 0} 50 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 51 | type: 3} 52 | propertyPath: m_LocalEulerAnglesHint.x 53 | value: 0 54 | objectReference: {fileID: 0} 55 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 56 | type: 3} 57 | propertyPath: m_LocalEulerAnglesHint.y 58 | value: 0 59 | objectReference: {fileID: 0} 60 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 61 | type: 3} 62 | propertyPath: m_LocalEulerAnglesHint.z 63 | value: 0 64 | objectReference: {fileID: 0} 65 | - target: {fileID: 4715534444071754855, guid: e7f9a2868922ade469f9694df41a6f51, 66 | type: 3} 67 | propertyPath: m_Name 68 | value: Prefab1VariantNoOverride 69 | objectReference: {fileID: 0} 70 | m_RemovedComponents: [] 71 | m_SourcePrefab: {fileID: 100100000, guid: e7f9a2868922ade469f9694df41a6f51, type: 3} 72 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab1VariantNoOverride.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a480dd8667505954898cd565e916ec1a 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab1VariantWithOverride.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1001 &3834286336893064390 4 | PrefabInstance: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Modification: 8 | m_TransformParent: {fileID: 0} 9 | m_Modifications: 10 | - target: {fileID: 854457505094657706, guid: e7f9a2868922ade469f9694df41a6f51, 11 | type: 3} 12 | propertyPath: previousValue 13 | value: 875 14 | objectReference: {fileID: 0} 15 | - target: {fileID: 854457505094657706, guid: e7f9a2868922ade469f9694df41a6f51, 16 | type: 3} 17 | propertyPath: speedBaseValue 18 | value: 15 19 | objectReference: {fileID: 0} 20 | - target: {fileID: 854457505094657706, guid: e7f9a2868922ade469f9694df41a6f51, 21 | type: 3} 22 | propertyPath: speedIncrementValue 23 | value: 3 24 | objectReference: {fileID: 0} 25 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 26 | type: 3} 27 | propertyPath: m_RootOrder 28 | value: 0 29 | objectReference: {fileID: 0} 30 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 31 | type: 3} 32 | propertyPath: m_LocalPosition.x 33 | value: 0 34 | objectReference: {fileID: 0} 35 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 36 | type: 3} 37 | propertyPath: m_LocalPosition.y 38 | value: 0 39 | objectReference: {fileID: 0} 40 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 41 | type: 3} 42 | propertyPath: m_LocalPosition.z 43 | value: 0 44 | objectReference: {fileID: 0} 45 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 46 | type: 3} 47 | propertyPath: m_LocalRotation.w 48 | value: 1 49 | objectReference: {fileID: 0} 50 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 51 | type: 3} 52 | propertyPath: m_LocalRotation.x 53 | value: 0 54 | objectReference: {fileID: 0} 55 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 56 | type: 3} 57 | propertyPath: m_LocalRotation.y 58 | value: 0 59 | objectReference: {fileID: 0} 60 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 61 | type: 3} 62 | propertyPath: m_LocalRotation.z 63 | value: 0 64 | objectReference: {fileID: 0} 65 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 66 | type: 3} 67 | propertyPath: m_LocalEulerAnglesHint.x 68 | value: 0 69 | objectReference: {fileID: 0} 70 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 71 | type: 3} 72 | propertyPath: m_LocalEulerAnglesHint.y 73 | value: 0 74 | objectReference: {fileID: 0} 75 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 76 | type: 3} 77 | propertyPath: m_LocalEulerAnglesHint.z 78 | value: 0 79 | objectReference: {fileID: 0} 80 | - target: {fileID: 4715534444071754855, guid: e7f9a2868922ade469f9694df41a6f51, 81 | type: 3} 82 | propertyPath: m_Name 83 | value: Prefab1VariantWithOverride 84 | objectReference: {fileID: 0} 85 | m_RemovedComponents: [] 86 | m_SourcePrefab: {fileID: 100100000, guid: e7f9a2868922ade469f9694df41a6f51, type: 3} 87 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab1VariantWithOverride.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed5c7cd32445e914d99994206fef28b3 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithBrokenScript.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &2516043385506708881 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: 8268762227542538556} 12 | - component: {fileID: 2460744616572332618} 13 | m_Layer: 0 14 | m_Name: GameObject 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &8268762227542538556 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: 2516043385506708881} 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: 1983413479506126867} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!114 &2460744616572332618 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: 2516043385506708881} 41 | m_Enabled: 1 42 | m_EditorHideFlags: 0 43 | m_Script: {fileID: 11500000, guid: 799ba017f21d40d7bbfc673f052c74d8, type: 3} 44 | m_Name: 45 | m_EditorClassIdentifier: 46 | value: someValue 47 | --- !u!1 &5742950577294474804 48 | GameObject: 49 | m_ObjectHideFlags: 0 50 | m_CorrespondingSourceObject: {fileID: 0} 51 | m_PrefabInstance: {fileID: 0} 52 | m_PrefabAsset: {fileID: 0} 53 | serializedVersion: 6 54 | m_Component: 55 | - component: {fileID: 1983413479506126867} 56 | m_Layer: 0 57 | m_Name: PrefabWithBrokenScript 58 | m_TagString: Untagged 59 | m_Icon: {fileID: 0} 60 | m_NavMeshLayer: 0 61 | m_StaticEditorFlags: 0 62 | m_IsActive: 1 63 | --- !u!4 &1983413479506126867 64 | Transform: 65 | m_ObjectHideFlags: 0 66 | m_CorrespondingSourceObject: {fileID: 0} 67 | m_PrefabInstance: {fileID: 0} 68 | m_PrefabAsset: {fileID: 0} 69 | m_GameObject: {fileID: 5742950577294474804} 70 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 71 | m_LocalPosition: {x: 0, y: 0, z: 0} 72 | m_LocalScale: {x: 1, y: 1, z: 1} 73 | m_Children: 74 | - {fileID: 8268762227542538556} 75 | m_Father: {fileID: 0} 76 | m_RootOrder: 0 77 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 78 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithBrokenScript.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a3586bec2076d440980a9fb98a6e2f3 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithDestroyableBehaviour.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &3169755049375934109 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: 9448828940930567} 12 | - component: {fileID: 3347633171817454783} 13 | m_Layer: 0 14 | m_Name: PrefabWithDestroyableBehaviour 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &9448828940930567 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: 3169755049375934109} 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 &3347633171817454783 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: 3169755049375934109} 41 | m_Enabled: 1 42 | m_EditorHideFlags: 0 43 | m_Script: {fileID: 11500000, guid: 5d216d4316074e65887814084607be69, type: 3} 44 | m_Name: 45 | m_EditorClassIdentifier: 46 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithDestroyableBehaviour.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0af0a0c4aa9e8eb4abb63b65a58d8946 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithModel.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &5742950577294474804 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: 1983413479506126867} 12 | m_Layer: 0 13 | m_Name: PrefabWithModel 14 | m_TagString: Untagged 15 | m_Icon: {fileID: 0} 16 | m_NavMeshLayer: 0 17 | m_StaticEditorFlags: 0 18 | m_IsActive: 1 19 | --- !u!4 &1983413479506126867 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: 5742950577294474804} 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 | - {fileID: 838733500019001952} 31 | m_Father: {fileID: 0} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!1001 &876371042227400075 35 | PrefabInstance: 36 | m_ObjectHideFlags: 0 37 | serializedVersion: 2 38 | m_Modification: 39 | m_TransformParent: {fileID: 1983413479506126867} 40 | m_Modifications: 41 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 42 | type: 3} 43 | propertyPath: m_RootOrder 44 | value: 0 45 | objectReference: {fileID: 0} 46 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 47 | type: 3} 48 | propertyPath: m_LocalPosition.x 49 | value: 0 50 | objectReference: {fileID: 0} 51 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 52 | type: 3} 53 | propertyPath: m_LocalPosition.y 54 | value: 0 55 | objectReference: {fileID: 0} 56 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 57 | type: 3} 58 | propertyPath: m_LocalPosition.z 59 | value: 0 60 | objectReference: {fileID: 0} 61 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 62 | type: 3} 63 | propertyPath: m_LocalRotation.w 64 | value: 1 65 | objectReference: {fileID: 0} 66 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 67 | type: 3} 68 | propertyPath: m_LocalRotation.x 69 | value: 0 70 | objectReference: {fileID: 0} 71 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 72 | type: 3} 73 | propertyPath: m_LocalRotation.y 74 | value: 0 75 | objectReference: {fileID: 0} 76 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 77 | type: 3} 78 | propertyPath: m_LocalRotation.z 79 | value: 0 80 | objectReference: {fileID: 0} 81 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 82 | type: 3} 83 | propertyPath: m_LocalEulerAnglesHint.x 84 | value: 0 85 | objectReference: {fileID: 0} 86 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 87 | type: 3} 88 | propertyPath: m_LocalEulerAnglesHint.y 89 | value: 0 90 | objectReference: {fileID: 0} 91 | - target: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 92 | type: 3} 93 | propertyPath: m_LocalEulerAnglesHint.z 94 | value: 0 95 | objectReference: {fileID: 0} 96 | - target: {fileID: 919132149155446097, guid: c1dc955a85c14604683cb1dd82cfdea6, 97 | type: 3} 98 | propertyPath: m_Name 99 | value: cube 100 | objectReference: {fileID: 0} 101 | m_RemovedComponents: [] 102 | m_SourcePrefab: {fileID: 100100000, guid: c1dc955a85c14604683cb1dd82cfdea6, type: 3} 103 | --- !u!1 &65327484226900186 stripped 104 | GameObject: 105 | m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: c1dc955a85c14604683cb1dd82cfdea6, 106 | type: 3} 107 | m_PrefabInstance: {fileID: 876371042227400075} 108 | m_PrefabAsset: {fileID: 0} 109 | --- !u!4 &838733500019001952 stripped 110 | Transform: 111 | m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: c1dc955a85c14604683cb1dd82cfdea6, 112 | type: 3} 113 | m_PrefabInstance: {fileID: 876371042227400075} 114 | m_PrefabAsset: {fileID: 0} 115 | --- !u!1 &821990824154788726 stripped 116 | GameObject: 117 | m_CorrespondingSourceObject: {fileID: -8700617353114198275, guid: c1dc955a85c14604683cb1dd82cfdea6, 118 | type: 3} 119 | m_PrefabInstance: {fileID: 876371042227400075} 120 | m_PrefabAsset: {fileID: 0} 121 | --- !u!114 &756079932984960284 122 | MonoBehaviour: 123 | m_ObjectHideFlags: 0 124 | m_CorrespondingSourceObject: {fileID: 0} 125 | m_PrefabInstance: {fileID: 0} 126 | m_PrefabAsset: {fileID: 0} 127 | m_GameObject: {fileID: 65327484226900186} 128 | m_Enabled: 1 129 | m_EditorHideFlags: 0 130 | m_Script: {fileID: 11500000, guid: 799ba017f21d40d7bbfc673f052c74d8, type: 3} 131 | m_Name: 132 | m_EditorClassIdentifier: 133 | value: a 134 | --- !u!114 &2938967748067425748 135 | MonoBehaviour: 136 | m_ObjectHideFlags: 0 137 | m_CorrespondingSourceObject: {fileID: 0} 138 | m_PrefabInstance: {fileID: 0} 139 | m_PrefabAsset: {fileID: 0} 140 | m_GameObject: {fileID: 821990824154788726} 141 | m_Enabled: 1 142 | m_EditorHideFlags: 0 143 | m_Script: {fileID: 11500000, guid: 799ba017f21d40d7bbfc673f052c74d8, type: 3} 144 | m_Name: 145 | m_EditorClassIdentifier: 146 | value: a 147 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithModel.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37ac978f18a98af4bb0f876835d839f7 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithScriptDisabledInChildren.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &4715534444071754855 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: 2770954233856461040} 12 | m_Layer: 0 13 | m_Name: PrefabWithScriptDisabledInChildren 14 | m_TagString: Untagged 15 | m_Icon: {fileID: 0} 16 | m_NavMeshLayer: 0 17 | m_StaticEditorFlags: 0 18 | m_IsActive: 1 19 | --- !u!4 &2770954233856461040 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: 4715534444071754855} 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 | - {fileID: 3003130989838701478} 31 | m_Father: {fileID: 0} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!1 &6866429096650873373 35 | GameObject: 36 | m_ObjectHideFlags: 0 37 | m_CorrespondingSourceObject: {fileID: 0} 38 | m_PrefabInstance: {fileID: 0} 39 | m_PrefabAsset: {fileID: 0} 40 | serializedVersion: 6 41 | m_Component: 42 | - component: {fileID: 3003130989838701478} 43 | - component: {fileID: 2972458101405597579} 44 | m_Layer: 0 45 | m_Name: ChildrenWithBehaviour 46 | m_TagString: Untagged 47 | m_Icon: {fileID: 0} 48 | m_NavMeshLayer: 0 49 | m_StaticEditorFlags: 0 50 | m_IsActive: 0 51 | --- !u!4 &3003130989838701478 52 | Transform: 53 | m_ObjectHideFlags: 0 54 | m_CorrespondingSourceObject: {fileID: 0} 55 | m_PrefabInstance: {fileID: 0} 56 | m_PrefabAsset: {fileID: 0} 57 | m_GameObject: {fileID: 6866429096650873373} 58 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 59 | m_LocalPosition: {x: 0, y: 0, z: 0} 60 | m_LocalScale: {x: 1, y: 1, z: 1} 61 | m_Children: [] 62 | m_Father: {fileID: 2770954233856461040} 63 | m_RootOrder: 0 64 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 65 | --- !u!114 &2972458101405597579 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: 6866429096650873373} 72 | m_Enabled: 1 73 | m_EditorHideFlags: 0 74 | m_Script: {fileID: 11500000, guid: 799ba017f21d40d7bbfc673f052c74d8, type: 3} 75 | m_Name: 76 | m_EditorClassIdentifier: 77 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithScriptDisabledInChildren.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6c6cad4541e937439c073acd360069a 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithScriptInChildren.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &4715534444071754855 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: 2770954233856461040} 12 | m_Layer: 0 13 | m_Name: PrefabWithScriptInChildren 14 | m_TagString: Untagged 15 | m_Icon: {fileID: 0} 16 | m_NavMeshLayer: 0 17 | m_StaticEditorFlags: 0 18 | m_IsActive: 1 19 | --- !u!4 &2770954233856461040 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: 4715534444071754855} 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 | - {fileID: 3003130989838701478} 31 | m_Father: {fileID: 0} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!1 &6866429096650873373 35 | GameObject: 36 | m_ObjectHideFlags: 0 37 | m_CorrespondingSourceObject: {fileID: 0} 38 | m_PrefabInstance: {fileID: 0} 39 | m_PrefabAsset: {fileID: 0} 40 | serializedVersion: 6 41 | m_Component: 42 | - component: {fileID: 3003130989838701478} 43 | - component: {fileID: 6358728789479525970} 44 | m_Layer: 0 45 | m_Name: ChildrenWithBehaviour 46 | m_TagString: Untagged 47 | m_Icon: {fileID: 0} 48 | m_NavMeshLayer: 0 49 | m_StaticEditorFlags: 0 50 | m_IsActive: 1 51 | --- !u!4 &3003130989838701478 52 | Transform: 53 | m_ObjectHideFlags: 0 54 | m_CorrespondingSourceObject: {fileID: 0} 55 | m_PrefabInstance: {fileID: 0} 56 | m_PrefabAsset: {fileID: 0} 57 | m_GameObject: {fileID: 6866429096650873373} 58 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 59 | m_LocalPosition: {x: 0, y: 0, z: 0} 60 | m_LocalScale: {x: 1, y: 1, z: 1} 61 | m_Children: [] 62 | m_Father: {fileID: 2770954233856461040} 63 | m_RootOrder: 0 64 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 65 | --- !u!114 &6358728789479525970 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: 6866429096650873373} 72 | m_Enabled: 1 73 | m_EditorHideFlags: 0 74 | m_Script: {fileID: 11500000, guid: 799ba017f21d40d7bbfc673f052c74d8, type: 3} 75 | m_Name: 76 | m_EditorClassIdentifier: 77 | value: NEW VALUE 78 | -------------------------------------------------------------------------------- /Assets/Prefabs/PrefabWithScriptInChildren.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dad663401fcb9e41b059e3f14107505 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab_Definition.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &5183595977432811261 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: 7245021254847031127} 12 | - component: {fileID: 3761047339476252149} 13 | m_Layer: 0 14 | m_Name: GameObject 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &7245021254847031127 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: 5183595977432811261} 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: 4086188272375929459} 32 | m_RootOrder: 0 33 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 34 | --- !u!114 &3761047339476252149 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: 5183595977432811261} 41 | m_Enabled: 1 42 | m_EditorHideFlags: 0 43 | m_Script: {fileID: 11500000, guid: e05d2a0e75bb48d2b4c96a9dfcc25867, type: 3} 44 | m_Name: 45 | m_EditorClassIdentifier: 46 | someValue: 0 47 | --- !u!1 &5416879772881244416 48 | GameObject: 49 | m_ObjectHideFlags: 0 50 | m_CorrespondingSourceObject: {fileID: 0} 51 | m_PrefabInstance: {fileID: 0} 52 | m_PrefabAsset: {fileID: 0} 53 | serializedVersion: 6 54 | m_Component: 55 | - component: {fileID: 4086188272375929459} 56 | - component: {fileID: 2570820578722429718} 57 | m_Layer: 0 58 | m_Name: Prefab_Definition 59 | m_TagString: Untagged 60 | m_Icon: {fileID: 0} 61 | m_NavMeshLayer: 0 62 | m_StaticEditorFlags: 0 63 | m_IsActive: 1 64 | --- !u!4 &4086188272375929459 65 | Transform: 66 | m_ObjectHideFlags: 0 67 | m_CorrespondingSourceObject: {fileID: 0} 68 | m_PrefabInstance: {fileID: 0} 69 | m_PrefabAsset: {fileID: 0} 70 | m_GameObject: {fileID: 5416879772881244416} 71 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 72 | m_LocalPosition: {x: -0.5151434, y: 0.6030538, z: 0.4122697} 73 | m_LocalScale: {x: 1, y: 1, z: 1} 74 | m_Children: 75 | - {fileID: 7245021254847031127} 76 | - {fileID: 690383041914216958} 77 | - {fileID: 3446978936295783288} 78 | m_Father: {fileID: 0} 79 | m_RootOrder: 0 80 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 81 | --- !u!114 &2570820578722429718 82 | MonoBehaviour: 83 | m_ObjectHideFlags: 0 84 | m_CorrespondingSourceObject: {fileID: 0} 85 | m_PrefabInstance: {fileID: 0} 86 | m_PrefabAsset: {fileID: 0} 87 | m_GameObject: {fileID: 5416879772881244416} 88 | m_Enabled: 1 89 | m_EditorHideFlags: 0 90 | m_Script: {fileID: 11500000, guid: e05d2a0e75bb48d2b4c96a9dfcc25867, type: 3} 91 | m_Name: 92 | m_EditorClassIdentifier: 93 | someValue: 0 94 | --- !u!1 &5541704180484844138 95 | GameObject: 96 | m_ObjectHideFlags: 0 97 | m_CorrespondingSourceObject: {fileID: 0} 98 | m_PrefabInstance: {fileID: 0} 99 | m_PrefabAsset: {fileID: 0} 100 | serializedVersion: 6 101 | m_Component: 102 | - component: {fileID: 3446978936295783288} 103 | - component: {fileID: 7708198303447361867} 104 | m_Layer: 0 105 | m_Name: GameObject (2) 106 | m_TagString: Untagged 107 | m_Icon: {fileID: 0} 108 | m_NavMeshLayer: 0 109 | m_StaticEditorFlags: 0 110 | m_IsActive: 0 111 | --- !u!4 &3446978936295783288 112 | Transform: 113 | m_ObjectHideFlags: 0 114 | m_CorrespondingSourceObject: {fileID: 0} 115 | m_PrefabInstance: {fileID: 0} 116 | m_PrefabAsset: {fileID: 0} 117 | m_GameObject: {fileID: 5541704180484844138} 118 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 119 | m_LocalPosition: {x: 0, y: 0, z: 0} 120 | m_LocalScale: {x: 1, y: 1, z: 1} 121 | m_Children: [] 122 | m_Father: {fileID: 4086188272375929459} 123 | m_RootOrder: 2 124 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 125 | --- !u!114 &7708198303447361867 126 | MonoBehaviour: 127 | m_ObjectHideFlags: 0 128 | m_CorrespondingSourceObject: {fileID: 0} 129 | m_PrefabInstance: {fileID: 0} 130 | m_PrefabAsset: {fileID: 0} 131 | m_GameObject: {fileID: 5541704180484844138} 132 | m_Enabled: 1 133 | m_EditorHideFlags: 0 134 | m_Script: {fileID: 11500000, guid: e05d2a0e75bb48d2b4c96a9dfcc25867, type: 3} 135 | m_Name: 136 | m_EditorClassIdentifier: 137 | someValue: 0 138 | --- !u!1 &7273120975741211374 139 | GameObject: 140 | m_ObjectHideFlags: 0 141 | m_CorrespondingSourceObject: {fileID: 0} 142 | m_PrefabInstance: {fileID: 0} 143 | m_PrefabAsset: {fileID: 0} 144 | serializedVersion: 6 145 | m_Component: 146 | - component: {fileID: 690383041914216958} 147 | - component: {fileID: 1888953455075336354} 148 | m_Layer: 0 149 | m_Name: GameObject (1) 150 | m_TagString: Untagged 151 | m_Icon: {fileID: 0} 152 | m_NavMeshLayer: 0 153 | m_StaticEditorFlags: 0 154 | m_IsActive: 1 155 | --- !u!4 &690383041914216958 156 | Transform: 157 | m_ObjectHideFlags: 0 158 | m_CorrespondingSourceObject: {fileID: 0} 159 | m_PrefabInstance: {fileID: 0} 160 | m_PrefabAsset: {fileID: 0} 161 | m_GameObject: {fileID: 7273120975741211374} 162 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 163 | m_LocalPosition: {x: 0, y: 0, z: 0} 164 | m_LocalScale: {x: 1, y: 1, z: 1} 165 | m_Children: [] 166 | m_Father: {fileID: 4086188272375929459} 167 | m_RootOrder: 1 168 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 169 | --- !u!114 &1888953455075336354 170 | MonoBehaviour: 171 | m_ObjectHideFlags: 0 172 | m_CorrespondingSourceObject: {fileID: 0} 173 | m_PrefabInstance: {fileID: 0} 174 | m_PrefabAsset: {fileID: 0} 175 | m_GameObject: {fileID: 7273120975741211374} 176 | m_Enabled: 1 177 | m_EditorHideFlags: 0 178 | m_Script: {fileID: 11500000, guid: e05d2a0e75bb48d2b4c96a9dfcc25867, type: 3} 179 | m_Name: 180 | m_EditorClassIdentifier: 181 | someValue: 0 182 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab_Definition.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d68609ec83e0d5c43a9df3526fff2861 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab_TwoComponents_Interface.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &3128058450554524622 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: 2375872885716817075} 12 | - component: {fileID: 6587665203584374361} 13 | - component: {fileID: 6960599012444898496} 14 | m_Layer: 0 15 | m_Name: Prefab_TwoComponents_Interface 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &2375872885716817075 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 3128058450554524622} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 0} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | --- !u!114 &6587665203584374361 36 | MonoBehaviour: 37 | m_ObjectHideFlags: 0 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 3128058450554524622} 42 | m_Enabled: 1 43 | m_EditorHideFlags: 0 44 | m_Script: {fileID: 11500000, guid: 8d1ee94352ac4ac9a63f874f3196ce34, type: 3} 45 | m_Name: 46 | m_EditorClassIdentifier: 47 | --- !u!114 &6960599012444898496 48 | MonoBehaviour: 49 | m_ObjectHideFlags: 0 50 | m_CorrespondingSourceObject: {fileID: 0} 51 | m_PrefabInstance: {fileID: 0} 52 | m_PrefabAsset: {fileID: 0} 53 | m_GameObject: {fileID: 3128058450554524622} 54 | m_Enabled: 1 55 | m_EditorHideFlags: 0 56 | m_Script: {fileID: 11500000, guid: cebe34641e8c42c8b0c694113750d6a7, type: 3} 57 | m_Name: 58 | m_EditorClassIdentifier: 59 | -------------------------------------------------------------------------------- /Assets/Prefabs/Prefab_TwoComponents_Interface.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bcf4c97df351054694c5f0b04a5d9c9 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PublishData.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: ffbfe7457aef4086a5ef9412b6e3c396, type: 3} 13 | m_Name: PublishData 14 | m_EditorClassIdentifier: 15 | disabled: 0 16 | packageFiles: 17 | - {fileID: 4900000, guid: 084b5fb5ca00e9741ad71c110cf49b89, type: 3} 18 | -------------------------------------------------------------------------------- /Assets/PublishData.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97257341baccb3c42bf1e5a51f654eb1 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7e574417ba34b7459e4b7a4f116ee8c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ChildrenBehaviour.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ChildrenBehaviour : MonoBehaviour 6 | { 7 | public string value = "someValue"; 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ChildrenBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 799ba017f21d40d7bbfc673f052c74d8 3 | timeCreated: 1703276540 -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentA.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ComponentA : MonoBehaviour 6 | { 7 | public int someValue; 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentA.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e05d2a0e75bb48d2b4c96a9dfcc25867 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentB.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ComponentB : MonoBehaviour 6 | { 7 | public int anotherValue; 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentB.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5d6438cf8d5446797dcbf2675012fc8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentC.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ComponentC : MonoBehaviour 6 | { 7 | public ComponentB referenceToB; 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentC.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bffd7588dfe147f5afb4976b5392f0f0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentD.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ComponentD : MonoBehaviour 6 | { 7 | public int someValue; 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentD.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 521a2a5a533d4b85a1a966335709e11a 3 | timeCreated: 1704491825 -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentDButAnother.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ComponentDButAnother : MonoBehaviour 6 | { 7 | public int someValue; 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentDButAnother.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae9faa96fb5444e398eb939e33ad1c71 3 | timeCreated: 1717532692 -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentE.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ComponentE : MonoBehaviour, ICustomComponent 6 | { 7 | public int GetValue() 8 | { 9 | return 1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentE.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cebe34641e8c42c8b0c694113750d6a7 3 | timeCreated: 1710185174 -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentException.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ComponentException : MonoBehaviour 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a139bff0f3645a1b75a01239e28211f 3 | timeCreated: 1723489030 -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentF.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ComponentF : MonoBehaviour, ICustomComponent 6 | { 7 | public int GetValue() 8 | { 9 | return 2; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentF.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d1ee94352ac4ac9a63f874f3196ce34 3 | timeCreated: 1710185183 -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentG.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class ComponentG : MonoBehaviour 6 | { 7 | public GameObject anotherReference; 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ComponentG.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f20f8173ba24c8dba15b25bc618daaa 3 | timeCreated: 1745678847 -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/CustomBehaviour.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace RefactorExamplesData 5 | { 6 | [Serializable] 7 | public struct Speed 8 | { 9 | public float baseValue; 10 | public float incrementValue; 11 | } 12 | 13 | public class CustomBehaviour : MonoBehaviour 14 | { 15 | public float speedBaseValue; 16 | public float speedIncrementValue; 17 | 18 | public Speed speed; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/CustomBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48f0fcf16e7957b419f80c8f0e69592e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/CustomDataAsset.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | [CreateAssetMenu(menuName = "Custom Data")] 6 | public class CustomDataAsset : ScriptableObject 7 | { 8 | public int previousValue; 9 | public string newValue; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/CustomDataAsset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a948b7db7efff149b3aac919c1f8f8a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/DestroyableBehaviour.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace RefactorExamplesData 4 | { 5 | public class DestroyableBehaviour : MonoBehaviour 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/DestroyableBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d216d4316074e65887814084607be69 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ICustomComponent.cs: -------------------------------------------------------------------------------- 1 | namespace RefactorExamplesData 2 | { 3 | public interface ICustomComponent 4 | { 5 | int GetValue(); 6 | } 7 | } -------------------------------------------------------------------------------- /Assets/RefactorExamplesData/ICustomComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 954205e278494b6d8da3320c7fc1e1bf 3 | timeCreated: 1710185212 -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 131a6b21c8605f84396be9f6751fb6e3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Bug_RefactorInComponent_NotMarkedDirty.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: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 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, g: 0, b: 0, 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: 0 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: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 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: 4890085278179872738, guid: 201941269aedbc74ba855439c1fd36c2, 102 | type: 2} 103 | --- !u!196 &4 104 | NavMeshSettings: 105 | serializedVersion: 2 106 | m_ObjectHideFlags: 0 107 | m_BuildSettings: 108 | serializedVersion: 2 109 | agentTypeID: 0 110 | agentRadius: 0.5 111 | agentHeight: 2 112 | agentSlope: 45 113 | agentClimb: 0.4 114 | ledgeDropHeight: 0 115 | maxJumpAcrossDistance: 0 116 | minRegionArea: 2 117 | manualCellSize: 0 118 | cellSize: 0.16666667 119 | manualTileSize: 0 120 | tileSize: 256 121 | accuratePlacement: 0 122 | maxJobWorkers: 0 123 | preserveTilesOutsideBounds: 0 124 | debug: 125 | m_Flags: 0 126 | m_NavMeshData: {fileID: 0} 127 | --- !u!1 &703405815 128 | GameObject: 129 | m_ObjectHideFlags: 0 130 | m_CorrespondingSourceObject: {fileID: 0} 131 | m_PrefabInstance: {fileID: 0} 132 | m_PrefabAsset: {fileID: 0} 133 | serializedVersion: 6 134 | m_Component: 135 | - component: {fileID: 703405816} 136 | - component: {fileID: 703405817} 137 | m_Layer: 0 138 | m_Name: ToRefactor 139 | m_TagString: Untagged 140 | m_Icon: {fileID: 0} 141 | m_NavMeshLayer: 0 142 | m_StaticEditorFlags: 0 143 | m_IsActive: 1 144 | --- !u!4 &703405816 145 | Transform: 146 | m_ObjectHideFlags: 0 147 | m_CorrespondingSourceObject: {fileID: 0} 148 | m_PrefabInstance: {fileID: 0} 149 | m_PrefabAsset: {fileID: 0} 150 | m_GameObject: {fileID: 703405815} 151 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 152 | m_LocalPosition: {x: 0, y: 0, z: 0} 153 | m_LocalScale: {x: 1, y: 1, z: 1} 154 | m_Children: [] 155 | m_Father: {fileID: 0} 156 | m_RootOrder: 0 157 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 158 | --- !u!114 &703405817 159 | MonoBehaviour: 160 | m_ObjectHideFlags: 0 161 | m_CorrespondingSourceObject: {fileID: 0} 162 | m_PrefabInstance: {fileID: 0} 163 | m_PrefabAsset: {fileID: 0} 164 | m_GameObject: {fileID: 703405815} 165 | m_Enabled: 1 166 | m_EditorHideFlags: 0 167 | m_Script: {fileID: 11500000, guid: 0f20f8173ba24c8dba15b25bc618daaa, type: 3} 168 | m_Name: 169 | m_EditorClassIdentifier: 170 | anotherReference: {fileID: 1313077415} 171 | --- !u!1001 &1313077414 172 | PrefabInstance: 173 | m_ObjectHideFlags: 0 174 | serializedVersion: 2 175 | m_Modification: 176 | m_TransformParent: {fileID: 0} 177 | m_Modifications: 178 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 179 | type: 3} 180 | propertyPath: m_RootOrder 181 | value: 1 182 | objectReference: {fileID: 0} 183 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 184 | type: 3} 185 | propertyPath: m_LocalPosition.x 186 | value: -0.5151434 187 | objectReference: {fileID: 0} 188 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 189 | type: 3} 190 | propertyPath: m_LocalPosition.y 191 | value: 0.6030538 192 | objectReference: {fileID: 0} 193 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 194 | type: 3} 195 | propertyPath: m_LocalPosition.z 196 | value: 0.4122697 197 | objectReference: {fileID: 0} 198 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 199 | type: 3} 200 | propertyPath: m_LocalRotation.w 201 | value: 1 202 | objectReference: {fileID: 0} 203 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 204 | type: 3} 205 | propertyPath: m_LocalRotation.x 206 | value: 0 207 | objectReference: {fileID: 0} 208 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 209 | type: 3} 210 | propertyPath: m_LocalRotation.y 211 | value: 0 212 | objectReference: {fileID: 0} 213 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 214 | type: 3} 215 | propertyPath: m_LocalRotation.z 216 | value: 0 217 | objectReference: {fileID: 0} 218 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 219 | type: 3} 220 | propertyPath: m_LocalEulerAnglesHint.x 221 | value: 0 222 | objectReference: {fileID: 0} 223 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 224 | type: 3} 225 | propertyPath: m_LocalEulerAnglesHint.y 226 | value: 0 227 | objectReference: {fileID: 0} 228 | - target: {fileID: 4086188272375929459, guid: d68609ec83e0d5c43a9df3526fff2861, 229 | type: 3} 230 | propertyPath: m_LocalEulerAnglesHint.z 231 | value: 0 232 | objectReference: {fileID: 0} 233 | - target: {fileID: 5416879772881244416, guid: d68609ec83e0d5c43a9df3526fff2861, 234 | type: 3} 235 | propertyPath: m_Name 236 | value: Prefab_Definition 237 | objectReference: {fileID: 0} 238 | m_RemovedComponents: [] 239 | m_SourcePrefab: {fileID: 100100000, guid: d68609ec83e0d5c43a9df3526fff2861, type: 3} 240 | --- !u!1 &1313077415 stripped 241 | GameObject: 242 | m_CorrespondingSourceObject: {fileID: 5416879772881244416, guid: d68609ec83e0d5c43a9df3526fff2861, 243 | type: 3} 244 | m_PrefabInstance: {fileID: 1313077414} 245 | m_PrefabAsset: {fileID: 0} 246 | -------------------------------------------------------------------------------- /Assets/Scenes/Bug_RefactorInComponent_NotMarkedDirty.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6da072cf2c16db4097ff78dc0efefb5 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/Bug_RefactorInComponent_NotMarkedDirtySettings.lighting: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!850595691 &4890085278179872738 4 | LightingSettings: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Bug_RefactorInComponent_NotMarkedDirtySettings 10 | serializedVersion: 3 11 | m_GIWorkflowMode: 1 12 | m_EnableBakedLightmaps: 0 13 | m_EnableRealtimeLightmaps: 0 14 | m_RealtimeEnvironmentLighting: 1 15 | m_BounceScale: 1 16 | m_AlbedoBoost: 1 17 | m_IndirectOutputScale: 1 18 | m_UsingShadowmask: 1 19 | m_BakeBackend: 0 20 | m_LightmapMaxSize: 1024 21 | m_BakeResolution: 40 22 | m_Padding: 2 23 | m_TextureCompression: 1 24 | m_AO: 0 25 | m_AOMaxDistance: 1 26 | m_CompAOExponent: 1 27 | m_CompAOExponentDirect: 0 28 | m_ExtractAO: 0 29 | m_MixedBakeMode: 2 30 | m_LightmapsBakeMode: 1 31 | m_FilterMode: 1 32 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} 33 | m_ExportTrainingData: 0 34 | m_TrainingDataDestination: TrainingData 35 | m_RealtimeResolution: 2 36 | m_ForceWhiteAlbedo: 0 37 | m_ForceUpdates: 0 38 | m_FinalGather: 0 39 | m_FinalGatherRayCount: 256 40 | m_FinalGatherFiltering: 1 41 | m_PVRCulling: 1 42 | m_PVRSampling: 1 43 | m_PVRDirectSampleCount: 32 44 | m_PVRSampleCount: 500 45 | m_PVREnvironmentSampleCount: 500 46 | m_PVREnvironmentReferencePointCount: 2048 47 | m_LightProbeSampleCountMultiplier: 4 48 | m_PVRBounces: 2 49 | m_PVRMinBounces: 2 50 | m_PVREnvironmentMIS: 0 51 | m_PVRFilteringMode: 2 52 | m_PVRDenoiserTypeDirect: 0 53 | m_PVRDenoiserTypeIndirect: 0 54 | m_PVRDenoiserTypeAO: 0 55 | m_PVRFilterTypeDirect: 0 56 | m_PVRFilterTypeIndirect: 0 57 | m_PVRFilterTypeAO: 0 58 | m_PVRFilteringGaussRadiusDirect: 1 59 | m_PVRFilteringGaussRadiusIndirect: 5 60 | m_PVRFilteringGaussRadiusAO: 2 61 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 62 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 63 | m_PVRFilteringAtrousPositionSigmaAO: 1 64 | -------------------------------------------------------------------------------- /Assets/Scenes/Bug_RefactorInComponent_NotMarkedDirtySettings.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 201941269aedbc74ba855439c1fd36c2 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithComponentException1.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: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 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, g: 0, b: 0, 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: 0 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: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 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: 4890085278179872738, guid: e8d913385bc75c848a53842c7784e0e5, 102 | type: 2} 103 | --- !u!196 &4 104 | NavMeshSettings: 105 | serializedVersion: 2 106 | m_ObjectHideFlags: 0 107 | m_BuildSettings: 108 | serializedVersion: 2 109 | agentTypeID: 0 110 | agentRadius: 0.5 111 | agentHeight: 2 112 | agentSlope: 45 113 | agentClimb: 0.4 114 | ledgeDropHeight: 0 115 | maxJumpAcrossDistance: 0 116 | minRegionArea: 2 117 | manualCellSize: 0 118 | cellSize: 0.16666667 119 | manualTileSize: 0 120 | tileSize: 256 121 | accuratePlacement: 0 122 | maxJobWorkers: 0 123 | preserveTilesOutsideBounds: 0 124 | debug: 125 | m_Flags: 0 126 | m_NavMeshData: {fileID: 0} 127 | --- !u!1 &244412923 128 | GameObject: 129 | m_ObjectHideFlags: 0 130 | m_CorrespondingSourceObject: {fileID: 0} 131 | m_PrefabInstance: {fileID: 0} 132 | m_PrefabAsset: {fileID: 0} 133 | serializedVersion: 6 134 | m_Component: 135 | - component: {fileID: 244412925} 136 | - component: {fileID: 244412924} 137 | m_Layer: 0 138 | m_Name: FirstObjectShouldFail 139 | m_TagString: Untagged 140 | m_Icon: {fileID: 0} 141 | m_NavMeshLayer: 0 142 | m_StaticEditorFlags: 0 143 | m_IsActive: 1 144 | --- !u!114 &244412924 145 | MonoBehaviour: 146 | m_ObjectHideFlags: 0 147 | m_CorrespondingSourceObject: {fileID: 0} 148 | m_PrefabInstance: {fileID: 0} 149 | m_PrefabAsset: {fileID: 0} 150 | m_GameObject: {fileID: 244412923} 151 | m_Enabled: 1 152 | m_EditorHideFlags: 0 153 | m_Script: {fileID: 11500000, guid: 7a139bff0f3645a1b75a01239e28211f, type: 3} 154 | m_Name: 155 | m_EditorClassIdentifier: 156 | --- !u!4 &244412925 157 | Transform: 158 | m_ObjectHideFlags: 0 159 | m_CorrespondingSourceObject: {fileID: 0} 160 | m_PrefabInstance: {fileID: 0} 161 | m_PrefabAsset: {fileID: 0} 162 | m_GameObject: {fileID: 244412923} 163 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 164 | m_LocalPosition: {x: 0, y: 0, z: 0} 165 | m_LocalScale: {x: 1, y: 1, z: 1} 166 | m_Children: [] 167 | m_Father: {fileID: 0} 168 | m_RootOrder: 0 169 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 170 | --- !u!1 &1357339890 171 | GameObject: 172 | m_ObjectHideFlags: 0 173 | m_CorrespondingSourceObject: {fileID: 0} 174 | m_PrefabInstance: {fileID: 0} 175 | m_PrefabAsset: {fileID: 0} 176 | serializedVersion: 6 177 | m_Component: 178 | - component: {fileID: 1357339892} 179 | - component: {fileID: 1357339891} 180 | m_Layer: 0 181 | m_Name: AnotherObjectNoFailure 182 | m_TagString: Untagged 183 | m_Icon: {fileID: 0} 184 | m_NavMeshLayer: 0 185 | m_StaticEditorFlags: 0 186 | m_IsActive: 1 187 | --- !u!114 &1357339891 188 | MonoBehaviour: 189 | m_ObjectHideFlags: 0 190 | m_CorrespondingSourceObject: {fileID: 0} 191 | m_PrefabInstance: {fileID: 0} 192 | m_PrefabAsset: {fileID: 0} 193 | m_GameObject: {fileID: 1357339890} 194 | m_Enabled: 1 195 | m_EditorHideFlags: 0 196 | m_Script: {fileID: 11500000, guid: 7a139bff0f3645a1b75a01239e28211f, type: 3} 197 | m_Name: 198 | m_EditorClassIdentifier: 199 | --- !u!4 &1357339892 200 | Transform: 201 | m_ObjectHideFlags: 0 202 | m_CorrespondingSourceObject: {fileID: 0} 203 | m_PrefabInstance: {fileID: 0} 204 | m_PrefabAsset: {fileID: 0} 205 | m_GameObject: {fileID: 1357339890} 206 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 207 | m_LocalPosition: {x: 0, y: 0, z: 0} 208 | m_LocalScale: {x: 1, y: 1, z: 1} 209 | m_Children: [] 210 | m_Father: {fileID: 0} 211 | m_RootOrder: 1 212 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 213 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithComponentException1.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7d9cb168cbfd164ab350c34e95e5470 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithComponentException1Settings.lighting: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!850595691 &4890085278179872738 4 | LightingSettings: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: SceneWithComponentException1Settings 10 | serializedVersion: 3 11 | m_GIWorkflowMode: 1 12 | m_EnableBakedLightmaps: 0 13 | m_EnableRealtimeLightmaps: 0 14 | m_RealtimeEnvironmentLighting: 1 15 | m_BounceScale: 1 16 | m_AlbedoBoost: 1 17 | m_IndirectOutputScale: 1 18 | m_UsingShadowmask: 1 19 | m_BakeBackend: 0 20 | m_LightmapMaxSize: 1024 21 | m_BakeResolution: 40 22 | m_Padding: 2 23 | m_TextureCompression: 1 24 | m_AO: 0 25 | m_AOMaxDistance: 1 26 | m_CompAOExponent: 1 27 | m_CompAOExponentDirect: 0 28 | m_ExtractAO: 0 29 | m_MixedBakeMode: 2 30 | m_LightmapsBakeMode: 1 31 | m_FilterMode: 1 32 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} 33 | m_ExportTrainingData: 0 34 | m_TrainingDataDestination: TrainingData 35 | m_RealtimeResolution: 2 36 | m_ForceWhiteAlbedo: 0 37 | m_ForceUpdates: 0 38 | m_FinalGather: 0 39 | m_FinalGatherRayCount: 256 40 | m_FinalGatherFiltering: 1 41 | m_PVRCulling: 1 42 | m_PVRSampling: 1 43 | m_PVRDirectSampleCount: 32 44 | m_PVRSampleCount: 500 45 | m_PVREnvironmentSampleCount: 500 46 | m_PVREnvironmentReferencePointCount: 2048 47 | m_LightProbeSampleCountMultiplier: 4 48 | m_PVRBounces: 2 49 | m_PVRMinBounces: 2 50 | m_PVREnvironmentMIS: 0 51 | m_PVRFilteringMode: 2 52 | m_PVRDenoiserTypeDirect: 0 53 | m_PVRDenoiserTypeIndirect: 0 54 | m_PVRDenoiserTypeAO: 0 55 | m_PVRFilterTypeDirect: 0 56 | m_PVRFilterTypeIndirect: 0 57 | m_PVRFilterTypeAO: 0 58 | m_PVRFilteringGaussRadiusDirect: 1 59 | m_PVRFilteringGaussRadiusIndirect: 5 60 | m_PVRFilteringGaussRadiusAO: 2 61 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 62 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 63 | m_PVRFilteringAtrousPositionSigmaAO: 1 64 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithComponentException1Settings.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8d913385bc75c848a53842c7784e0e5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithComponentException2.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: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 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, g: 0, b: 0, 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: 0 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: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 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: 4890085278179872738, guid: e8d913385bc75c848a53842c7784e0e5, 102 | type: 2} 103 | --- !u!196 &4 104 | NavMeshSettings: 105 | serializedVersion: 2 106 | m_ObjectHideFlags: 0 107 | m_BuildSettings: 108 | serializedVersion: 2 109 | agentTypeID: 0 110 | agentRadius: 0.5 111 | agentHeight: 2 112 | agentSlope: 45 113 | agentClimb: 0.4 114 | ledgeDropHeight: 0 115 | maxJumpAcrossDistance: 0 116 | minRegionArea: 2 117 | manualCellSize: 0 118 | cellSize: 0.16666667 119 | manualTileSize: 0 120 | tileSize: 256 121 | accuratePlacement: 0 122 | maxJobWorkers: 0 123 | preserveTilesOutsideBounds: 0 124 | debug: 125 | m_Flags: 0 126 | m_NavMeshData: {fileID: 0} 127 | --- !u!1 &244412923 128 | GameObject: 129 | m_ObjectHideFlags: 0 130 | m_CorrespondingSourceObject: {fileID: 0} 131 | m_PrefabInstance: {fileID: 0} 132 | m_PrefabAsset: {fileID: 0} 133 | serializedVersion: 6 134 | m_Component: 135 | - component: {fileID: 244412925} 136 | - component: {fileID: 244412924} 137 | m_Layer: 0 138 | m_Name: GameObject 139 | m_TagString: Untagged 140 | m_Icon: {fileID: 0} 141 | m_NavMeshLayer: 0 142 | m_StaticEditorFlags: 0 143 | m_IsActive: 1 144 | --- !u!114 &244412924 145 | MonoBehaviour: 146 | m_ObjectHideFlags: 0 147 | m_CorrespondingSourceObject: {fileID: 0} 148 | m_PrefabInstance: {fileID: 0} 149 | m_PrefabAsset: {fileID: 0} 150 | m_GameObject: {fileID: 244412923} 151 | m_Enabled: 1 152 | m_EditorHideFlags: 0 153 | m_Script: {fileID: 11500000, guid: 7a139bff0f3645a1b75a01239e28211f, type: 3} 154 | m_Name: 155 | m_EditorClassIdentifier: 156 | --- !u!4 &244412925 157 | Transform: 158 | m_ObjectHideFlags: 0 159 | m_CorrespondingSourceObject: {fileID: 0} 160 | m_PrefabInstance: {fileID: 0} 161 | m_PrefabAsset: {fileID: 0} 162 | m_GameObject: {fileID: 244412923} 163 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 164 | m_LocalPosition: {x: 0, y: 0, z: 0} 165 | m_LocalScale: {x: 1, y: 1, z: 1} 166 | m_Children: [] 167 | m_Father: {fileID: 0} 168 | m_RootOrder: 0 169 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 170 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithComponentException2.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b80c49e3e7d7734f96b386b404e53cf 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithComponentException3.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: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 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, g: 0, b: 0, 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: 0 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: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 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: 4890085278179872738, guid: e8d913385bc75c848a53842c7784e0e5, 102 | type: 2} 103 | --- !u!196 &4 104 | NavMeshSettings: 105 | serializedVersion: 2 106 | m_ObjectHideFlags: 0 107 | m_BuildSettings: 108 | serializedVersion: 2 109 | agentTypeID: 0 110 | agentRadius: 0.5 111 | agentHeight: 2 112 | agentSlope: 45 113 | agentClimb: 0.4 114 | ledgeDropHeight: 0 115 | maxJumpAcrossDistance: 0 116 | minRegionArea: 2 117 | manualCellSize: 0 118 | cellSize: 0.16666667 119 | manualTileSize: 0 120 | tileSize: 256 121 | accuratePlacement: 0 122 | maxJobWorkers: 0 123 | preserveTilesOutsideBounds: 0 124 | debug: 125 | m_Flags: 0 126 | m_NavMeshData: {fileID: 0} 127 | --- !u!1 &244412923 128 | GameObject: 129 | m_ObjectHideFlags: 0 130 | m_CorrespondingSourceObject: {fileID: 0} 131 | m_PrefabInstance: {fileID: 0} 132 | m_PrefabAsset: {fileID: 0} 133 | serializedVersion: 6 134 | m_Component: 135 | - component: {fileID: 244412925} 136 | - component: {fileID: 244412924} 137 | m_Layer: 0 138 | m_Name: GameObject 139 | m_TagString: Untagged 140 | m_Icon: {fileID: 0} 141 | m_NavMeshLayer: 0 142 | m_StaticEditorFlags: 0 143 | m_IsActive: 1 144 | --- !u!114 &244412924 145 | MonoBehaviour: 146 | m_ObjectHideFlags: 0 147 | m_CorrespondingSourceObject: {fileID: 0} 148 | m_PrefabInstance: {fileID: 0} 149 | m_PrefabAsset: {fileID: 0} 150 | m_GameObject: {fileID: 244412923} 151 | m_Enabled: 1 152 | m_EditorHideFlags: 0 153 | m_Script: {fileID: 11500000, guid: 7a139bff0f3645a1b75a01239e28211f, type: 3} 154 | m_Name: 155 | m_EditorClassIdentifier: 156 | --- !u!4 &244412925 157 | Transform: 158 | m_ObjectHideFlags: 0 159 | m_CorrespondingSourceObject: {fileID: 0} 160 | m_PrefabInstance: {fileID: 0} 161 | m_PrefabAsset: {fileID: 0} 162 | m_GameObject: {fileID: 244412923} 163 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 164 | m_LocalPosition: {x: 0, y: 0, z: 0} 165 | m_LocalScale: {x: 1, y: 1, z: 1} 166 | m_Children: [] 167 | m_Father: {fileID: 0} 168 | m_RootOrder: 0 169 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 170 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithComponentException3.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0dde4ea88a26ca145a47ab838b81eaf8 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithData.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: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 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, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 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: 0 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: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 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_UseShadowmask: 1 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 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &519420028 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 519420032} 133 | - component: {fileID: 519420031} 134 | - component: {fileID: 519420029} 135 | m_Layer: 0 136 | m_Name: Main Camera 137 | m_TagString: MainCamera 138 | m_Icon: {fileID: 0} 139 | m_NavMeshLayer: 0 140 | m_StaticEditorFlags: 0 141 | m_IsActive: 1 142 | --- !u!81 &519420029 143 | AudioListener: 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 519420028} 149 | m_Enabled: 1 150 | --- !u!20 &519420031 151 | Camera: 152 | m_ObjectHideFlags: 0 153 | m_CorrespondingSourceObject: {fileID: 0} 154 | m_PrefabInstance: {fileID: 0} 155 | m_PrefabAsset: {fileID: 0} 156 | m_GameObject: {fileID: 519420028} 157 | m_Enabled: 1 158 | serializedVersion: 2 159 | m_ClearFlags: 2 160 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 161 | m_projectionMatrixMode: 1 162 | m_GateFitMode: 2 163 | m_FOVAxisMode: 0 164 | m_SensorSize: {x: 36, y: 24} 165 | m_LensShift: {x: 0, y: 0} 166 | m_FocalLength: 50 167 | m_NormalizedViewPortRect: 168 | serializedVersion: 2 169 | x: 0 170 | y: 0 171 | width: 1 172 | height: 1 173 | near clip plane: 0.3 174 | far clip plane: 1000 175 | field of view: 60 176 | orthographic: 1 177 | orthographic size: 5 178 | m_Depth: -1 179 | m_CullingMask: 180 | serializedVersion: 2 181 | m_Bits: 4294967295 182 | m_RenderingPath: -1 183 | m_TargetTexture: {fileID: 0} 184 | m_TargetDisplay: 0 185 | m_TargetEye: 0 186 | m_HDR: 1 187 | m_AllowMSAA: 0 188 | m_AllowDynamicResolution: 0 189 | m_ForceIntoRT: 0 190 | m_OcclusionCulling: 0 191 | m_StereoConvergence: 10 192 | m_StereoSeparation: 0.022 193 | --- !u!4 &519420032 194 | Transform: 195 | m_ObjectHideFlags: 0 196 | m_CorrespondingSourceObject: {fileID: 0} 197 | m_PrefabInstance: {fileID: 0} 198 | m_PrefabAsset: {fileID: 0} 199 | m_GameObject: {fileID: 519420028} 200 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 201 | m_LocalPosition: {x: 0, y: 0, z: -10} 202 | m_LocalScale: {x: 1, y: 1, z: 1} 203 | m_Children: [] 204 | m_Father: {fileID: 0} 205 | m_RootOrder: 0 206 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 207 | --- !u!1001 &818536230 208 | PrefabInstance: 209 | m_ObjectHideFlags: 0 210 | serializedVersion: 2 211 | m_Modification: 212 | m_TransformParent: {fileID: 0} 213 | m_Modifications: 214 | - target: {fileID: 854457505094657706, guid: e7f9a2868922ade469f9694df41a6f51, 215 | type: 3} 216 | propertyPath: previousValue 217 | value: 231 218 | objectReference: {fileID: 0} 219 | - target: {fileID: 854457505094657706, guid: e7f9a2868922ade469f9694df41a6f51, 220 | type: 3} 221 | propertyPath: speedBaseValue 222 | value: 10 223 | objectReference: {fileID: 0} 224 | - target: {fileID: 854457505094657706, guid: e7f9a2868922ade469f9694df41a6f51, 225 | type: 3} 226 | propertyPath: speedIncrementValue 227 | value: 5 228 | objectReference: {fileID: 0} 229 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 230 | type: 3} 231 | propertyPath: m_RootOrder 232 | value: 3 233 | objectReference: {fileID: 0} 234 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 235 | type: 3} 236 | propertyPath: m_LocalPosition.x 237 | value: 0 238 | objectReference: {fileID: 0} 239 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 240 | type: 3} 241 | propertyPath: m_LocalPosition.y 242 | value: 0 243 | objectReference: {fileID: 0} 244 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 245 | type: 3} 246 | propertyPath: m_LocalPosition.z 247 | value: 0 248 | objectReference: {fileID: 0} 249 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 250 | type: 3} 251 | propertyPath: m_LocalRotation.w 252 | value: 1 253 | objectReference: {fileID: 0} 254 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 255 | type: 3} 256 | propertyPath: m_LocalRotation.x 257 | value: 0 258 | objectReference: {fileID: 0} 259 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 260 | type: 3} 261 | propertyPath: m_LocalRotation.y 262 | value: 0 263 | objectReference: {fileID: 0} 264 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 265 | type: 3} 266 | propertyPath: m_LocalRotation.z 267 | value: 0 268 | objectReference: {fileID: 0} 269 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 270 | type: 3} 271 | propertyPath: m_LocalEulerAnglesHint.x 272 | value: 0 273 | objectReference: {fileID: 0} 274 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 275 | type: 3} 276 | propertyPath: m_LocalEulerAnglesHint.y 277 | value: 0 278 | objectReference: {fileID: 0} 279 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 280 | type: 3} 281 | propertyPath: m_LocalEulerAnglesHint.z 282 | value: 0 283 | objectReference: {fileID: 0} 284 | - target: {fileID: 4715534444071754855, guid: e7f9a2868922ade469f9694df41a6f51, 285 | type: 3} 286 | propertyPath: m_Name 287 | value: InstanceFromPrefabWithOverride 288 | objectReference: {fileID: 0} 289 | m_RemovedComponents: [] 290 | m_SourcePrefab: {fileID: 100100000, guid: e7f9a2868922ade469f9694df41a6f51, type: 3} 291 | --- !u!1001 &1278679735 292 | PrefabInstance: 293 | m_ObjectHideFlags: 0 294 | serializedVersion: 2 295 | m_Modification: 296 | m_TransformParent: {fileID: 0} 297 | m_Modifications: 298 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 299 | type: 3} 300 | propertyPath: m_RootOrder 301 | value: 2 302 | objectReference: {fileID: 0} 303 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 304 | type: 3} 305 | propertyPath: m_LocalPosition.x 306 | value: 0 307 | objectReference: {fileID: 0} 308 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 309 | type: 3} 310 | propertyPath: m_LocalPosition.y 311 | value: 0 312 | objectReference: {fileID: 0} 313 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 314 | type: 3} 315 | propertyPath: m_LocalPosition.z 316 | value: 0 317 | objectReference: {fileID: 0} 318 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 319 | type: 3} 320 | propertyPath: m_LocalRotation.w 321 | value: 1 322 | objectReference: {fileID: 0} 323 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 324 | type: 3} 325 | propertyPath: m_LocalRotation.x 326 | value: 0 327 | objectReference: {fileID: 0} 328 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 329 | type: 3} 330 | propertyPath: m_LocalRotation.y 331 | value: 0 332 | objectReference: {fileID: 0} 333 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 334 | type: 3} 335 | propertyPath: m_LocalRotation.z 336 | value: 0 337 | objectReference: {fileID: 0} 338 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 339 | type: 3} 340 | propertyPath: m_LocalEulerAnglesHint.x 341 | value: 0 342 | objectReference: {fileID: 0} 343 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 344 | type: 3} 345 | propertyPath: m_LocalEulerAnglesHint.y 346 | value: 0 347 | objectReference: {fileID: 0} 348 | - target: {fileID: 2770954233856461040, guid: e7f9a2868922ade469f9694df41a6f51, 349 | type: 3} 350 | propertyPath: m_LocalEulerAnglesHint.z 351 | value: 0 352 | objectReference: {fileID: 0} 353 | - target: {fileID: 4715534444071754855, guid: e7f9a2868922ade469f9694df41a6f51, 354 | type: 3} 355 | propertyPath: m_Name 356 | value: InstanceFromPrefabNoOverride 357 | objectReference: {fileID: 0} 358 | m_RemovedComponents: [] 359 | m_SourcePrefab: {fileID: 100100000, guid: e7f9a2868922ade469f9694df41a6f51, type: 3} 360 | --- !u!1 &1922105451 361 | GameObject: 362 | m_ObjectHideFlags: 0 363 | m_CorrespondingSourceObject: {fileID: 0} 364 | m_PrefabInstance: {fileID: 0} 365 | m_PrefabAsset: {fileID: 0} 366 | serializedVersion: 6 367 | m_Component: 368 | - component: {fileID: 1922105453} 369 | - component: {fileID: 1922105452} 370 | m_Layer: 0 371 | m_Name: InstanceNoPrefab 372 | m_TagString: Untagged 373 | m_Icon: {fileID: 0} 374 | m_NavMeshLayer: 0 375 | m_StaticEditorFlags: 0 376 | m_IsActive: 1 377 | --- !u!114 &1922105452 378 | MonoBehaviour: 379 | m_ObjectHideFlags: 0 380 | m_CorrespondingSourceObject: {fileID: 0} 381 | m_PrefabInstance: {fileID: 0} 382 | m_PrefabAsset: {fileID: 0} 383 | m_GameObject: {fileID: 1922105451} 384 | m_Enabled: 1 385 | m_EditorHideFlags: 0 386 | m_Script: {fileID: 11500000, guid: 48f0fcf16e7957b419f80c8f0e69592e, type: 3} 387 | m_Name: 388 | m_EditorClassIdentifier: 389 | speedBaseValue: 5 390 | speedIncrementValue: 1 391 | speed: 392 | baseValue: 0 393 | incrementValue: 0 394 | --- !u!4 &1922105453 395 | Transform: 396 | m_ObjectHideFlags: 0 397 | m_CorrespondingSourceObject: {fileID: 0} 398 | m_PrefabInstance: {fileID: 0} 399 | m_PrefabAsset: {fileID: 0} 400 | m_GameObject: {fileID: 1922105451} 401 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 402 | m_LocalPosition: {x: 0, y: 0, z: 0} 403 | m_LocalScale: {x: 1, y: 1, z: 1} 404 | m_Children: [] 405 | m_Father: {fileID: 0} 406 | m_RootOrder: 1 407 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 408 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithData.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithData2.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e3387964ed6893479df448de4d78b3d 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithDestroyableBehaviour.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5277d756847d87949a3a75468062dbb4 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithExamples_MoveComponentToChild.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: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 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, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 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: 0 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: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 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_UseShadowmask: 1 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 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &210250569 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 210250570} 133 | - component: {fileID: 210250571} 134 | m_Layer: 0 135 | m_Name: Child_WithComponentB 136 | m_TagString: Untagged 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!4 &210250570 142 | Transform: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 210250569} 148 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 149 | m_LocalPosition: {x: 0, y: 0, z: 0} 150 | m_LocalScale: {x: 1, y: 1, z: 1} 151 | m_Children: [] 152 | m_Father: {fileID: 2144599190} 153 | m_RootOrder: 0 154 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 155 | --- !u!114 &210250571 156 | MonoBehaviour: 157 | m_ObjectHideFlags: 0 158 | m_CorrespondingSourceObject: {fileID: 0} 159 | m_PrefabInstance: {fileID: 0} 160 | m_PrefabAsset: {fileID: 0} 161 | m_GameObject: {fileID: 210250569} 162 | m_Enabled: 1 163 | m_EditorHideFlags: 0 164 | m_Script: {fileID: 11500000, guid: d5d6438cf8d5446797dcbf2675012fc8, type: 3} 165 | m_Name: 166 | m_EditorClassIdentifier: 167 | anotherValue: 999 168 | --- !u!1 &519420028 169 | GameObject: 170 | m_ObjectHideFlags: 0 171 | m_CorrespondingSourceObject: {fileID: 0} 172 | m_PrefabInstance: {fileID: 0} 173 | m_PrefabAsset: {fileID: 0} 174 | serializedVersion: 6 175 | m_Component: 176 | - component: {fileID: 519420032} 177 | - component: {fileID: 519420031} 178 | - component: {fileID: 519420029} 179 | m_Layer: 0 180 | m_Name: Main Camera 181 | m_TagString: MainCamera 182 | m_Icon: {fileID: 0} 183 | m_NavMeshLayer: 0 184 | m_StaticEditorFlags: 0 185 | m_IsActive: 1 186 | --- !u!81 &519420029 187 | AudioListener: 188 | m_ObjectHideFlags: 0 189 | m_CorrespondingSourceObject: {fileID: 0} 190 | m_PrefabInstance: {fileID: 0} 191 | m_PrefabAsset: {fileID: 0} 192 | m_GameObject: {fileID: 519420028} 193 | m_Enabled: 1 194 | --- !u!20 &519420031 195 | Camera: 196 | m_ObjectHideFlags: 0 197 | m_CorrespondingSourceObject: {fileID: 0} 198 | m_PrefabInstance: {fileID: 0} 199 | m_PrefabAsset: {fileID: 0} 200 | m_GameObject: {fileID: 519420028} 201 | m_Enabled: 1 202 | serializedVersion: 2 203 | m_ClearFlags: 2 204 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 205 | m_projectionMatrixMode: 1 206 | m_GateFitMode: 2 207 | m_FOVAxisMode: 0 208 | m_SensorSize: {x: 36, y: 24} 209 | m_LensShift: {x: 0, y: 0} 210 | m_FocalLength: 50 211 | m_NormalizedViewPortRect: 212 | serializedVersion: 2 213 | x: 0 214 | y: 0 215 | width: 1 216 | height: 1 217 | near clip plane: 0.3 218 | far clip plane: 1000 219 | field of view: 60 220 | orthographic: 1 221 | orthographic size: 5 222 | m_Depth: -1 223 | m_CullingMask: 224 | serializedVersion: 2 225 | m_Bits: 4294967295 226 | m_RenderingPath: -1 227 | m_TargetTexture: {fileID: 0} 228 | m_TargetDisplay: 0 229 | m_TargetEye: 0 230 | m_HDR: 1 231 | m_AllowMSAA: 0 232 | m_AllowDynamicResolution: 0 233 | m_ForceIntoRT: 0 234 | m_OcclusionCulling: 0 235 | m_StereoConvergence: 10 236 | m_StereoSeparation: 0.022 237 | --- !u!4 &519420032 238 | Transform: 239 | m_ObjectHideFlags: 0 240 | m_CorrespondingSourceObject: {fileID: 0} 241 | m_PrefabInstance: {fileID: 0} 242 | m_PrefabAsset: {fileID: 0} 243 | m_GameObject: {fileID: 519420028} 244 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 245 | m_LocalPosition: {x: 0, y: 0, z: -10} 246 | m_LocalScale: {x: 1, y: 1, z: 1} 247 | m_Children: [] 248 | m_Father: {fileID: 0} 249 | m_RootOrder: 0 250 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 251 | --- !u!1 &1340454476 252 | GameObject: 253 | m_ObjectHideFlags: 0 254 | m_CorrespondingSourceObject: {fileID: 0} 255 | m_PrefabInstance: {fileID: 0} 256 | m_PrefabAsset: {fileID: 0} 257 | serializedVersion: 6 258 | m_Component: 259 | - component: {fileID: 1340454478} 260 | - component: {fileID: 1340454479} 261 | m_Layer: 0 262 | m_Name: GameObject_Parent_WithChild 263 | m_TagString: Untagged 264 | m_Icon: {fileID: 0} 265 | m_NavMeshLayer: 0 266 | m_StaticEditorFlags: 0 267 | m_IsActive: 1 268 | --- !u!4 &1340454478 269 | Transform: 270 | m_ObjectHideFlags: 0 271 | m_CorrespondingSourceObject: {fileID: 0} 272 | m_PrefabInstance: {fileID: 0} 273 | m_PrefabAsset: {fileID: 0} 274 | m_GameObject: {fileID: 1340454476} 275 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 276 | m_LocalPosition: {x: 0, y: 0, z: 0} 277 | m_LocalScale: {x: 1, y: 1, z: 1} 278 | m_Children: 279 | - {fileID: 1852674530} 280 | m_Father: {fileID: 0} 281 | m_RootOrder: 2 282 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 283 | --- !u!114 &1340454479 284 | MonoBehaviour: 285 | m_ObjectHideFlags: 0 286 | m_CorrespondingSourceObject: {fileID: 0} 287 | m_PrefabInstance: {fileID: 0} 288 | m_PrefabAsset: {fileID: 0} 289 | m_GameObject: {fileID: 1340454476} 290 | m_Enabled: 1 291 | m_EditorHideFlags: 0 292 | m_Script: {fileID: 11500000, guid: d5d6438cf8d5446797dcbf2675012fc8, type: 3} 293 | m_Name: 294 | m_EditorClassIdentifier: 295 | anotherValue: 123 296 | --- !u!1 &1852674529 297 | GameObject: 298 | m_ObjectHideFlags: 0 299 | m_CorrespondingSourceObject: {fileID: 0} 300 | m_PrefabInstance: {fileID: 0} 301 | m_PrefabAsset: {fileID: 0} 302 | serializedVersion: 6 303 | m_Component: 304 | - component: {fileID: 1852674530} 305 | m_Layer: 0 306 | m_Name: Child_WithNoComponent 307 | m_TagString: Untagged 308 | m_Icon: {fileID: 0} 309 | m_NavMeshLayer: 0 310 | m_StaticEditorFlags: 0 311 | m_IsActive: 1 312 | --- !u!4 &1852674530 313 | Transform: 314 | m_ObjectHideFlags: 0 315 | m_CorrespondingSourceObject: {fileID: 0} 316 | m_PrefabInstance: {fileID: 0} 317 | m_PrefabAsset: {fileID: 0} 318 | m_GameObject: {fileID: 1852674529} 319 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 320 | m_LocalPosition: {x: 0, y: 0, z: 0} 321 | m_LocalScale: {x: 1, y: 1, z: 1} 322 | m_Children: [] 323 | m_Father: {fileID: 1340454478} 324 | m_RootOrder: 0 325 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 326 | --- !u!1 &2030192840 327 | GameObject: 328 | m_ObjectHideFlags: 0 329 | m_CorrespondingSourceObject: {fileID: 0} 330 | m_PrefabInstance: {fileID: 0} 331 | m_PrefabAsset: {fileID: 0} 332 | serializedVersion: 6 333 | m_Component: 334 | - component: {fileID: 2030192842} 335 | - component: {fileID: 2030192843} 336 | m_Layer: 0 337 | m_Name: GameObject_Parent_NoChild 338 | m_TagString: Untagged 339 | m_Icon: {fileID: 0} 340 | m_NavMeshLayer: 0 341 | m_StaticEditorFlags: 0 342 | m_IsActive: 1 343 | --- !u!4 &2030192842 344 | Transform: 345 | m_ObjectHideFlags: 0 346 | m_CorrespondingSourceObject: {fileID: 0} 347 | m_PrefabInstance: {fileID: 0} 348 | m_PrefabAsset: {fileID: 0} 349 | m_GameObject: {fileID: 2030192840} 350 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 351 | m_LocalPosition: {x: 0, y: 0, z: 0} 352 | m_LocalScale: {x: 1, y: 1, z: 1} 353 | m_Children: [] 354 | m_Father: {fileID: 0} 355 | m_RootOrder: 1 356 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 357 | --- !u!114 &2030192843 358 | MonoBehaviour: 359 | m_ObjectHideFlags: 0 360 | m_CorrespondingSourceObject: {fileID: 0} 361 | m_PrefabInstance: {fileID: 0} 362 | m_PrefabAsset: {fileID: 0} 363 | m_GameObject: {fileID: 2030192840} 364 | m_Enabled: 1 365 | m_EditorHideFlags: 0 366 | m_Script: {fileID: 11500000, guid: d5d6438cf8d5446797dcbf2675012fc8, type: 3} 367 | m_Name: 368 | m_EditorClassIdentifier: 369 | anotherValue: 55 370 | --- !u!1 &2144599188 371 | GameObject: 372 | m_ObjectHideFlags: 0 373 | m_CorrespondingSourceObject: {fileID: 0} 374 | m_PrefabInstance: {fileID: 0} 375 | m_PrefabAsset: {fileID: 0} 376 | serializedVersion: 6 377 | m_Component: 378 | - component: {fileID: 2144599190} 379 | - component: {fileID: 2144599189} 380 | m_Layer: 0 381 | m_Name: GameObject_Parent_WithChild 382 | m_TagString: Untagged 383 | m_Icon: {fileID: 0} 384 | m_NavMeshLayer: 0 385 | m_StaticEditorFlags: 0 386 | m_IsActive: 1 387 | --- !u!114 &2144599189 388 | MonoBehaviour: 389 | m_ObjectHideFlags: 0 390 | m_CorrespondingSourceObject: {fileID: 0} 391 | m_PrefabInstance: {fileID: 0} 392 | m_PrefabAsset: {fileID: 0} 393 | m_GameObject: {fileID: 2144599188} 394 | m_Enabled: 1 395 | m_EditorHideFlags: 0 396 | m_Script: {fileID: 11500000, guid: d5d6438cf8d5446797dcbf2675012fc8, type: 3} 397 | m_Name: 398 | m_EditorClassIdentifier: 399 | anotherValue: 1 400 | --- !u!4 &2144599190 401 | Transform: 402 | m_ObjectHideFlags: 0 403 | m_CorrespondingSourceObject: {fileID: 0} 404 | m_PrefabInstance: {fileID: 0} 405 | m_PrefabAsset: {fileID: 0} 406 | m_GameObject: {fileID: 2144599188} 407 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 408 | m_LocalPosition: {x: 0, y: 0, z: 0} 409 | m_LocalScale: {x: 1, y: 1, z: 1} 410 | m_Children: 411 | - {fileID: 210250570} 412 | m_Father: {fileID: 0} 413 | m_RootOrder: 3 414 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 415 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithExamples_MoveComponentToChild.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04115d3216832a441acdc34ce7e8ad92 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithExamples_MoveComponentToChild_References.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: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 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, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 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: 0 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: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 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_UseShadowmask: 1 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 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &519420028 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 519420032} 133 | - component: {fileID: 519420031} 134 | - component: {fileID: 519420029} 135 | m_Layer: 0 136 | m_Name: Main Camera 137 | m_TagString: MainCamera 138 | m_Icon: {fileID: 0} 139 | m_NavMeshLayer: 0 140 | m_StaticEditorFlags: 0 141 | m_IsActive: 1 142 | --- !u!81 &519420029 143 | AudioListener: 144 | m_ObjectHideFlags: 0 145 | m_CorrespondingSourceObject: {fileID: 0} 146 | m_PrefabInstance: {fileID: 0} 147 | m_PrefabAsset: {fileID: 0} 148 | m_GameObject: {fileID: 519420028} 149 | m_Enabled: 1 150 | --- !u!20 &519420031 151 | Camera: 152 | m_ObjectHideFlags: 0 153 | m_CorrespondingSourceObject: {fileID: 0} 154 | m_PrefabInstance: {fileID: 0} 155 | m_PrefabAsset: {fileID: 0} 156 | m_GameObject: {fileID: 519420028} 157 | m_Enabled: 1 158 | serializedVersion: 2 159 | m_ClearFlags: 2 160 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 161 | m_projectionMatrixMode: 1 162 | m_GateFitMode: 2 163 | m_FOVAxisMode: 0 164 | m_SensorSize: {x: 36, y: 24} 165 | m_LensShift: {x: 0, y: 0} 166 | m_FocalLength: 50 167 | m_NormalizedViewPortRect: 168 | serializedVersion: 2 169 | x: 0 170 | y: 0 171 | width: 1 172 | height: 1 173 | near clip plane: 0.3 174 | far clip plane: 1000 175 | field of view: 60 176 | orthographic: 1 177 | orthographic size: 5 178 | m_Depth: -1 179 | m_CullingMask: 180 | serializedVersion: 2 181 | m_Bits: 4294967295 182 | m_RenderingPath: -1 183 | m_TargetTexture: {fileID: 0} 184 | m_TargetDisplay: 0 185 | m_TargetEye: 0 186 | m_HDR: 1 187 | m_AllowMSAA: 0 188 | m_AllowDynamicResolution: 0 189 | m_ForceIntoRT: 0 190 | m_OcclusionCulling: 0 191 | m_StereoConvergence: 10 192 | m_StereoSeparation: 0.022 193 | --- !u!4 &519420032 194 | Transform: 195 | m_ObjectHideFlags: 0 196 | m_CorrespondingSourceObject: {fileID: 0} 197 | m_PrefabInstance: {fileID: 0} 198 | m_PrefabAsset: {fileID: 0} 199 | m_GameObject: {fileID: 519420028} 200 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 201 | m_LocalPosition: {x: 0, y: 0, z: -10} 202 | m_LocalScale: {x: 1, y: 1, z: 1} 203 | m_Children: [] 204 | m_Father: {fileID: 0} 205 | m_RootOrder: 0 206 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 207 | --- !u!1 &2030192840 208 | GameObject: 209 | m_ObjectHideFlags: 0 210 | m_CorrespondingSourceObject: {fileID: 0} 211 | m_PrefabInstance: {fileID: 0} 212 | m_PrefabAsset: {fileID: 0} 213 | serializedVersion: 6 214 | m_Component: 215 | - component: {fileID: 2030192842} 216 | - component: {fileID: 2030192843} 217 | - component: {fileID: 2030192844} 218 | m_Layer: 0 219 | m_Name: GameObject_Parent_NoChild 220 | m_TagString: Untagged 221 | m_Icon: {fileID: 0} 222 | m_NavMeshLayer: 0 223 | m_StaticEditorFlags: 0 224 | m_IsActive: 1 225 | --- !u!4 &2030192842 226 | Transform: 227 | m_ObjectHideFlags: 0 228 | m_CorrespondingSourceObject: {fileID: 0} 229 | m_PrefabInstance: {fileID: 0} 230 | m_PrefabAsset: {fileID: 0} 231 | m_GameObject: {fileID: 2030192840} 232 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 233 | m_LocalPosition: {x: 0, y: 0, z: 0} 234 | m_LocalScale: {x: 1, y: 1, z: 1} 235 | m_Children: [] 236 | m_Father: {fileID: 0} 237 | m_RootOrder: 1 238 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 239 | --- !u!114 &2030192843 240 | MonoBehaviour: 241 | m_ObjectHideFlags: 0 242 | m_CorrespondingSourceObject: {fileID: 0} 243 | m_PrefabInstance: {fileID: 0} 244 | m_PrefabAsset: {fileID: 0} 245 | m_GameObject: {fileID: 2030192840} 246 | m_Enabled: 1 247 | m_EditorHideFlags: 0 248 | m_Script: {fileID: 11500000, guid: d5d6438cf8d5446797dcbf2675012fc8, type: 3} 249 | m_Name: 250 | m_EditorClassIdentifier: 251 | anotherValue: 55 252 | --- !u!114 &2030192844 253 | MonoBehaviour: 254 | m_ObjectHideFlags: 0 255 | m_CorrespondingSourceObject: {fileID: 0} 256 | m_PrefabInstance: {fileID: 0} 257 | m_PrefabAsset: {fileID: 0} 258 | m_GameObject: {fileID: 2030192840} 259 | m_Enabled: 1 260 | m_EditorHideFlags: 0 261 | m_Script: {fileID: 11500000, guid: bffd7588dfe147f5afb4976b5392f0f0, type: 3} 262 | m_Name: 263 | m_EditorClassIdentifier: 264 | referenceToB: {fileID: 2030192843} 265 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithExamples_MoveComponentToChild_References.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f940e7d76dabe884e998c5aeef001798 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithExamples_MoveComponentToParent.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8877aa9c59a07f4479e5870e013db519 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithExamples_MoveComponentToParentSettings.lighting: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!850595691 &4890085278179872738 4 | LightingSettings: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: SceneWithExamples_MoveComponentToParentSettings 10 | serializedVersion: 3 11 | m_GIWorkflowMode: 1 12 | m_EnableBakedLightmaps: 0 13 | m_EnableRealtimeLightmaps: 0 14 | m_RealtimeEnvironmentLighting: 1 15 | m_BounceScale: 1 16 | m_AlbedoBoost: 1 17 | m_IndirectOutputScale: 1 18 | m_UsingShadowmask: 1 19 | m_BakeBackend: 0 20 | m_LightmapMaxSize: 1024 21 | m_BakeResolution: 40 22 | m_Padding: 2 23 | m_TextureCompression: 1 24 | m_AO: 0 25 | m_AOMaxDistance: 1 26 | m_CompAOExponent: 1 27 | m_CompAOExponentDirect: 0 28 | m_ExtractAO: 0 29 | m_MixedBakeMode: 2 30 | m_LightmapsBakeMode: 1 31 | m_FilterMode: 1 32 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} 33 | m_ExportTrainingData: 0 34 | m_TrainingDataDestination: TrainingData 35 | m_RealtimeResolution: 2 36 | m_ForceWhiteAlbedo: 0 37 | m_ForceUpdates: 0 38 | m_FinalGather: 0 39 | m_FinalGatherRayCount: 256 40 | m_FinalGatherFiltering: 1 41 | m_PVRCulling: 1 42 | m_PVRSampling: 1 43 | m_PVRDirectSampleCount: 32 44 | m_PVRSampleCount: 500 45 | m_PVREnvironmentSampleCount: 500 46 | m_PVREnvironmentReferencePointCount: 2048 47 | m_LightProbeSampleCountMultiplier: 4 48 | m_PVRBounces: 2 49 | m_PVRMinBounces: 2 50 | m_PVREnvironmentMIS: 0 51 | m_PVRFilteringMode: 2 52 | m_PVRDenoiserTypeDirect: 0 53 | m_PVRDenoiserTypeIndirect: 0 54 | m_PVRDenoiserTypeAO: 0 55 | m_PVRFilterTypeDirect: 0 56 | m_PVRFilterTypeIndirect: 0 57 | m_PVRFilterTypeAO: 0 58 | m_PVRFilteringGaussRadiusDirect: 1 59 | m_PVRFilteringGaussRadiusIndirect: 5 60 | m_PVRFilteringGaussRadiusAO: 2 61 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 62 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 63 | m_PVRFilteringAtrousPositionSigmaAO: 1 64 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneWithExamples_MoveComponentToParentSettings.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed1d2a3b5866e924eba109651483a392 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SuperNamespaace.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 172d2a8004a34e69a385e3800470e4a5 3 | timeCreated: 1675620296 -------------------------------------------------------------------------------- /Assets/SuperNamespaace/AssetType1.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace SuperNamespaace 4 | { 5 | [CreateAssetMenu(menuName = "Examples/Type1")] 6 | public class AssetType1 : ScriptableObject, IAsset 7 | { 8 | 9 | } 10 | } -------------------------------------------------------------------------------- /Assets/SuperNamespaace/AssetType1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f157d760de34a14b38a6b4fc28beb5c 3 | timeCreated: 1675620289 -------------------------------------------------------------------------------- /Assets/SuperNamespaace/AssetType2.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace SuperNamespaace 4 | { 5 | [CreateAssetMenu(menuName = "Examples/Type2")] 6 | public class AssetType2 : ScriptableObject, IAsset 7 | { 8 | 9 | } 10 | } -------------------------------------------------------------------------------- /Assets/SuperNamespaace/AssetType2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 413550ce815a46bfa1445e8eee33913c 3 | timeCreated: 1675620334 -------------------------------------------------------------------------------- /Assets/SuperNamespaace/IAsset.cs: -------------------------------------------------------------------------------- 1 | namespace SuperNamespaace 2 | { 3 | public interface IAsset 4 | { 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /Assets/SuperNamespaace/IAsset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fc3f34f7c784fe2ae6070fa53e408bc 3 | timeCreated: 1712580942 -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Ariel Coppes 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/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.gemserk.upmgitpusher": "0.0.21", 4 | "com.unity.ide.rider": "3.0.36", 5 | "com.unity.ide.visualstudio": "2.0.18", 6 | "com.unity.ide.vscode": "1.2.5", 7 | "com.unity.test-framework": "1.1.33", 8 | "com.unity.timeline": "1.6.4", 9 | "com.unity.ugui": "1.0.0", 10 | "com.unity.modules.ai": "1.0.0", 11 | "com.unity.modules.animation": "1.0.0", 12 | "com.unity.modules.assetbundle": "1.0.0", 13 | "com.unity.modules.audio": "1.0.0", 14 | "com.unity.modules.imageconversion": "1.0.0", 15 | "com.unity.modules.imgui": "1.0.0", 16 | "com.unity.modules.jsonserialize": "1.0.0", 17 | "com.unity.modules.particlesystem": "1.0.0", 18 | "com.unity.modules.physics": "1.0.0", 19 | "com.unity.modules.physics2d": "1.0.0", 20 | "com.unity.modules.tilemap": "1.0.0", 21 | "com.unity.modules.ui": "1.0.0", 22 | "com.unity.modules.uielements": "1.0.0" 23 | }, 24 | "scopedRegistries": [ 25 | { 26 | "name": "Open UPM", 27 | "url": "https://package.openupm.com", 28 | "scopes": [ 29 | "com.gemserk.upmgitpusher" 30 | ] 31 | } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.gemserk.upmgitpusher": { 4 | "version": "0.0.21", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": {}, 8 | "url": "https://package.openupm.com" 9 | }, 10 | "com.unity.ext.nunit": { 11 | "version": "1.0.6", 12 | "depth": 1, 13 | "source": "registry", 14 | "dependencies": {}, 15 | "url": "https://packages.unity.com" 16 | }, 17 | "com.unity.ide.rider": { 18 | "version": "3.0.36", 19 | "depth": 0, 20 | "source": "registry", 21 | "dependencies": { 22 | "com.unity.ext.nunit": "1.0.6" 23 | }, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.ide.visualstudio": { 27 | "version": "2.0.18", 28 | "depth": 0, 29 | "source": "registry", 30 | "dependencies": { 31 | "com.unity.test-framework": "1.1.9" 32 | }, 33 | "url": "https://packages.unity.com" 34 | }, 35 | "com.unity.ide.vscode": { 36 | "version": "1.2.5", 37 | "depth": 0, 38 | "source": "registry", 39 | "dependencies": {}, 40 | "url": "https://packages.unity.com" 41 | }, 42 | "com.unity.test-framework": { 43 | "version": "1.1.33", 44 | "depth": 0, 45 | "source": "registry", 46 | "dependencies": { 47 | "com.unity.ext.nunit": "1.0.6", 48 | "com.unity.modules.imgui": "1.0.0", 49 | "com.unity.modules.jsonserialize": "1.0.0" 50 | }, 51 | "url": "https://packages.unity.com" 52 | }, 53 | "com.unity.timeline": { 54 | "version": "1.6.4", 55 | "depth": 0, 56 | "source": "registry", 57 | "dependencies": { 58 | "com.unity.modules.audio": "1.0.0", 59 | "com.unity.modules.director": "1.0.0", 60 | "com.unity.modules.animation": "1.0.0", 61 | "com.unity.modules.particlesystem": "1.0.0" 62 | }, 63 | "url": "https://packages.unity.com" 64 | }, 65 | "com.unity.ugui": { 66 | "version": "1.0.0", 67 | "depth": 0, 68 | "source": "builtin", 69 | "dependencies": { 70 | "com.unity.modules.ui": "1.0.0", 71 | "com.unity.modules.imgui": "1.0.0" 72 | } 73 | }, 74 | "com.unity.modules.ai": { 75 | "version": "1.0.0", 76 | "depth": 0, 77 | "source": "builtin", 78 | "dependencies": {} 79 | }, 80 | "com.unity.modules.animation": { 81 | "version": "1.0.0", 82 | "depth": 0, 83 | "source": "builtin", 84 | "dependencies": {} 85 | }, 86 | "com.unity.modules.assetbundle": { 87 | "version": "1.0.0", 88 | "depth": 0, 89 | "source": "builtin", 90 | "dependencies": {} 91 | }, 92 | "com.unity.modules.audio": { 93 | "version": "1.0.0", 94 | "depth": 0, 95 | "source": "builtin", 96 | "dependencies": {} 97 | }, 98 | "com.unity.modules.director": { 99 | "version": "1.0.0", 100 | "depth": 1, 101 | "source": "builtin", 102 | "dependencies": { 103 | "com.unity.modules.audio": "1.0.0", 104 | "com.unity.modules.animation": "1.0.0" 105 | } 106 | }, 107 | "com.unity.modules.imageconversion": { 108 | "version": "1.0.0", 109 | "depth": 0, 110 | "source": "builtin", 111 | "dependencies": {} 112 | }, 113 | "com.unity.modules.imgui": { 114 | "version": "1.0.0", 115 | "depth": 0, 116 | "source": "builtin", 117 | "dependencies": {} 118 | }, 119 | "com.unity.modules.jsonserialize": { 120 | "version": "1.0.0", 121 | "depth": 0, 122 | "source": "builtin", 123 | "dependencies": {} 124 | }, 125 | "com.unity.modules.particlesystem": { 126 | "version": "1.0.0", 127 | "depth": 0, 128 | "source": "builtin", 129 | "dependencies": {} 130 | }, 131 | "com.unity.modules.physics": { 132 | "version": "1.0.0", 133 | "depth": 0, 134 | "source": "builtin", 135 | "dependencies": {} 136 | }, 137 | "com.unity.modules.physics2d": { 138 | "version": "1.0.0", 139 | "depth": 0, 140 | "source": "builtin", 141 | "dependencies": {} 142 | }, 143 | "com.unity.modules.tilemap": { 144 | "version": "1.0.0", 145 | "depth": 0, 146 | "source": "builtin", 147 | "dependencies": { 148 | "com.unity.modules.physics2d": "1.0.0" 149 | } 150 | }, 151 | "com.unity.modules.ui": { 152 | "version": "1.0.0", 153 | "depth": 0, 154 | "source": "builtin", 155 | "dependencies": {} 156 | }, 157 | "com.unity.modules.uielements": { 158 | "version": "1.0.0", 159 | "depth": 0, 160 | "source": "builtin", 161 | "dependencies": { 162 | "com.unity.modules.ui": "1.0.0", 163 | "com.unity.modules.imgui": "1.0.0", 164 | "com.unity.modules.jsonserialize": "1.0.0", 165 | "com.unity.modules.uielementsnative": "1.0.0" 166 | } 167 | }, 168 | "com.unity.modules.uielementsnative": { 169 | "version": "1.0.0", 170 | "depth": 1, 171 | "source": "builtin", 172 | "dependencies": { 173 | "com.unity.modules.ui": "1.0.0", 174 | "com.unity.modules.imgui": "1.0.0", 175 | "com.unity.modules.jsonserialize": "1.0.0" 176 | } 177 | } 178 | } 179 | } 180 | -------------------------------------------------------------------------------- /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_EnableOutputSuspension: 1 16 | m_SpatializerPlugin: 17 | m_AmbisonicDecoderPlugin: 18 | m_DisableAudio: 0 19 | m_VirtualizeEffects: 1 20 | m_RequestedDSPBufferSize: 0 21 | -------------------------------------------------------------------------------- /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/SceneWithData.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: 9 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_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /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_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 39 | m_PreloadedShaders: [] 40 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 41 | 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 | m_AllowEnlightenSupportForUpgradedProject: 0 65 | -------------------------------------------------------------------------------- /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/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /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_ConfigSource: 0 28 | - m_Id: scoped:project:Open UPM 29 | m_Name: Open UPM 30 | m_Url: https://package.openupm.com 31 | m_Scopes: 32 | - com.gemserk.upmgitpusher 33 | m_IsDefault: 0 34 | m_Capabilities: 0 35 | m_ConfigSource: 4 36 | m_UserSelectedRegistryName: Open UPM 37 | m_UserAddingNewScopedRegistry: 0 38 | m_RegistryInfoDraft: 39 | m_ErrorMessage: 40 | m_Original: 41 | m_Id: scoped:project:Open UPM 42 | m_Name: Open UPM 43 | m_Url: https://package.openupm.com 44 | m_Scopes: 45 | - com.gemserk.upmgitpusher 46 | m_IsDefault: 0 47 | m_Capabilities: 0 48 | m_ConfigSource: 4 49 | m_Modified: 0 50 | m_Name: Open UPM 51 | m_Url: https://package.openupm.com 52 | m_Scopes: 53 | - com.gemserk.upmgitpusher 54 | m_SelectedScopeIndex: 0 55 | -------------------------------------------------------------------------------- /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: 4 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_AutoSimulation: 1 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/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2020.3.48f1 2 | m_EditorVersionWithRevision: 2020.3.48f1 (b805b124c6b7) 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/RiderScriptEditorPersistedState.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: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: Unity.Rider.Editor:Packages.Rider.Editor:RiderScriptEditorPersistedState 15 | lastWriteTicks: -8585499785832848991 16 | -------------------------------------------------------------------------------- /ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "ignore": false, 8 | "defaultInstantiationMode": 0, 9 | "supportsModification": true 10 | }, 11 | { 12 | "userAdded": false, 13 | "type": "UnityEditor.Animations.AnimatorController", 14 | "ignore": false, 15 | "defaultInstantiationMode": 0, 16 | "supportsModification": true 17 | }, 18 | { 19 | "userAdded": false, 20 | "type": "UnityEngine.AnimatorOverrideController", 21 | "ignore": false, 22 | "defaultInstantiationMode": 0, 23 | "supportsModification": true 24 | }, 25 | { 26 | "userAdded": false, 27 | "type": "UnityEditor.Audio.AudioMixerController", 28 | "ignore": false, 29 | "defaultInstantiationMode": 0, 30 | "supportsModification": true 31 | }, 32 | { 33 | "userAdded": false, 34 | "type": "UnityEngine.ComputeShader", 35 | "ignore": true, 36 | "defaultInstantiationMode": 1, 37 | "supportsModification": true 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEngine.Cubemap", 42 | "ignore": false, 43 | "defaultInstantiationMode": 0, 44 | "supportsModification": true 45 | }, 46 | { 47 | "userAdded": false, 48 | "type": "UnityEngine.GameObject", 49 | "ignore": false, 50 | "defaultInstantiationMode": 0, 51 | "supportsModification": true 52 | }, 53 | { 54 | "userAdded": false, 55 | "type": "UnityEditor.LightingDataAsset", 56 | "ignore": false, 57 | "defaultInstantiationMode": 0, 58 | "supportsModification": false 59 | }, 60 | { 61 | "userAdded": false, 62 | "type": "UnityEngine.LightingSettings", 63 | "ignore": false, 64 | "defaultInstantiationMode": 0, 65 | "supportsModification": true 66 | }, 67 | { 68 | "userAdded": false, 69 | "type": "UnityEngine.Material", 70 | "ignore": false, 71 | "defaultInstantiationMode": 0, 72 | "supportsModification": true 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEditor.MonoScript", 77 | "ignore": true, 78 | "defaultInstantiationMode": 1, 79 | "supportsModification": true 80 | }, 81 | { 82 | "userAdded": false, 83 | "type": "UnityEngine.PhysicMaterial", 84 | "ignore": false, 85 | "defaultInstantiationMode": 0, 86 | "supportsModification": true 87 | }, 88 | { 89 | "userAdded": false, 90 | "type": "UnityEngine.PhysicsMaterial2D", 91 | "ignore": false, 92 | "defaultInstantiationMode": 0, 93 | "supportsModification": true 94 | }, 95 | { 96 | "userAdded": false, 97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 98 | "ignore": false, 99 | "defaultInstantiationMode": 0, 100 | "supportsModification": true 101 | }, 102 | { 103 | "userAdded": false, 104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 105 | "ignore": false, 106 | "defaultInstantiationMode": 0, 107 | "supportsModification": true 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Rendering.VolumeProfile", 112 | "ignore": false, 113 | "defaultInstantiationMode": 0, 114 | "supportsModification": true 115 | }, 116 | { 117 | "userAdded": false, 118 | "type": "UnityEditor.SceneAsset", 119 | "ignore": false, 120 | "defaultInstantiationMode": 0, 121 | "supportsModification": false 122 | }, 123 | { 124 | "userAdded": false, 125 | "type": "UnityEngine.Shader", 126 | "ignore": true, 127 | "defaultInstantiationMode": 1, 128 | "supportsModification": true 129 | }, 130 | { 131 | "userAdded": false, 132 | "type": "UnityEngine.ShaderVariantCollection", 133 | "ignore": true, 134 | "defaultInstantiationMode": 1, 135 | "supportsModification": true 136 | }, 137 | { 138 | "userAdded": false, 139 | "type": "UnityEngine.Texture", 140 | "ignore": false, 141 | "defaultInstantiationMode": 0, 142 | "supportsModification": true 143 | }, 144 | { 145 | "userAdded": false, 146 | "type": "UnityEngine.Texture2D", 147 | "ignore": false, 148 | "defaultInstantiationMode": 0, 149 | "supportsModification": true 150 | }, 151 | { 152 | "userAdded": false, 153 | "type": "UnityEngine.Timeline.TimelineAsset", 154 | "ignore": false, 155 | "defaultInstantiationMode": 0, 156 | "supportsModification": true 157 | } 158 | ], 159 | "defaultDependencyTypeInfo": { 160 | "userAdded": false, 161 | "type": "", 162 | "ignore": false, 163 | "defaultInstantiationMode": 1, 164 | "supportsModification": true 165 | }, 166 | "newSceneOverride": 0 167 | } -------------------------------------------------------------------------------- /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_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /ProjectSettings/boot.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acoppes/unity-refactoring-tools/d47f88a9041bb9d0ec2ad0d8db640aee26362fe9/ProjectSettings/boot.config -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![openupm](https://img.shields.io/npm/v/com.gemserk.refactortools?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gemserk.refactortools/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 2 | # Unity Refactor Tools 3 | 4 | Tools for refactoring content stored in Unity Prefabs, Scenes and other Assets. 5 | 6 | This project was initially used to show examples for this [blogpost](https://blog.gemserk.com/2022/04/24/refactoring-prefabs-and-unity-objects/). 7 | 8 | ### Install it from OpenUPM 9 | 10 | This package can be installed using OpenUPM, just click here [![openupm](https://img.shields.io/npm/v/com.gemserk.refactortools?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gemserk.refactortools/) for more details. 11 | 12 | ### Usage 13 | 14 | If you want, for example, copy some MonoBehaviour fields to new field and consider all prefabs and prefab instances in scene, then run something like this: 15 | 16 | ```csharp 17 | RefactorTools.RefactorMonoBehaviour(new RefactorTools.RefactorParameters 18 | { 19 | prefabs = AssetDatabaseExt.FindPrefabs(), 20 | scenes = AssetDatabaseExt.FindAllScenes() 21 | }, delegate(GameObject gameObject, 22 | RefactorTools.RefactorData _) 23 | { 24 | var behaviours = gameObject.GetComponentsInChildren(); 25 | foreach (var behaviour in behaviours) 26 | { 27 | behaviour.speed = new Speed 28 | { 29 | baseValue = behaviour.speedBaseValue, 30 | incrementValue = behaviour.speedIncrementValue 31 | }; 32 | } 33 | return new RefactorTools.RefactorResult 34 | { 35 | completed = true 36 | }; 37 | }); 38 | ``` 39 | 40 | ### RefactorData parameter 41 | 42 | You can customize refactors by using extra data received when refactoring with `RefactorData` parameter: 43 | 44 | ```csharp 45 | RefactorTools.RefactorMonoBehaviour(new RefactorTools.RefactorParameters 46 | { 47 | prefabs = AssetDatabaseExt.FindPrefabs(), 48 | scenes = AssetDatabaseExt.FindAllScenes() 49 | }, delegate(GameObject gameObject, 50 | RefactorTools.RefactorData data) 51 | { 52 | if (data.inScene) 53 | { 54 | if (data.scenePath.Contains("Levels")) 55 | { 56 | // do extra logic like search for specific reference or anything else 57 | } 58 | } 59 | else 60 | { 61 | // do some prefab refactor 62 | } 63 | }); 64 | ``` 65 | 66 | ### Roadmap 67 | 68 | Here are some ideas on how to expand the project. 69 | 70 | * Customize generic refactor logic by expanding `RefactorParameters`, `RefactorData` and `RefactorResult`. 71 | * More refactor methods for general usage, like moving MonoBehaviour to another object, etc. 72 | * Customizable window to perform general refactors. 73 | * Automatize refactors using SerializedObjects and SerializedProperties to refactor field changes. 74 | ### Collaborate 75 | 76 | Feel free to create issues for feature requests and/or submit pull requests with your own improvements. 77 | 78 | ### Contact 79 | 80 | My Personal Website & Dev Blog 81 | -------------------------------------------------------------------------------- /screenshots/twitter_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/acoppes/unity-refactoring-tools/d47f88a9041bb9d0ec2ad0d8db640aee26362fe9/screenshots/twitter_logo.png --------------------------------------------------------------------------------