├── .gitattributes ├── .gitignore ├── Assets ├── Plugins.meta ├── Plugins │ ├── Sirenix.meta │ └── Sirenix │ │ ├── Assemblies.meta │ │ ├── Assemblies │ │ ├── NoEditor.meta │ │ ├── NoEditor │ │ │ ├── Sirenix.Serialization.dll │ │ │ ├── Sirenix.Serialization.dll.mdb │ │ │ ├── Sirenix.Serialization.dll.mdb.meta │ │ │ ├── Sirenix.Serialization.dll.meta │ │ │ ├── Sirenix.Utilities.dll │ │ │ ├── Sirenix.Utilities.dll.mdb │ │ │ ├── Sirenix.Utilities.dll.mdb.meta │ │ │ └── Sirenix.Utilities.dll.meta │ │ ├── NoEmitAndNoEditor.meta │ │ ├── NoEmitAndNoEditor │ │ │ ├── Sirenix.Serialization.dll │ │ │ ├── Sirenix.Serialization.dll.mdb │ │ │ ├── Sirenix.Serialization.dll.mdb.meta │ │ │ ├── Sirenix.Serialization.dll.meta │ │ │ ├── Sirenix.Utilities.dll │ │ │ ├── Sirenix.Utilities.dll.mdb │ │ │ ├── Sirenix.Utilities.dll.mdb.meta │ │ │ └── Sirenix.Utilities.dll.meta │ │ ├── Sirenix.OdinInspector.Attributes.dll │ │ ├── Sirenix.OdinInspector.Attributes.dll.mdb │ │ ├── Sirenix.OdinInspector.Attributes.dll.mdb.meta │ │ ├── Sirenix.OdinInspector.Attributes.dll.meta │ │ ├── Sirenix.OdinInspector.Attributes.xml │ │ ├── Sirenix.OdinInspector.Attributes.xml.meta │ │ ├── Sirenix.OdinInspector.Editor.dll │ │ ├── Sirenix.OdinInspector.Editor.dll.mdb │ │ ├── Sirenix.OdinInspector.Editor.dll.mdb.meta │ │ ├── Sirenix.OdinInspector.Editor.dll.meta │ │ ├── Sirenix.OdinInspector.Editor.xml │ │ ├── Sirenix.OdinInspector.Editor.xml.meta │ │ ├── Sirenix.Serialization.Config.dll │ │ ├── Sirenix.Serialization.Config.dll.mdb │ │ ├── Sirenix.Serialization.Config.dll.mdb.meta │ │ ├── Sirenix.Serialization.Config.dll.meta │ │ ├── Sirenix.Serialization.Config.xml │ │ ├── Sirenix.Serialization.Config.xml.meta │ │ ├── Sirenix.Serialization.dll │ │ ├── Sirenix.Serialization.dll.mdb │ │ ├── Sirenix.Serialization.dll.mdb.meta │ │ ├── Sirenix.Serialization.dll.meta │ │ ├── Sirenix.Utilities.Editor.dll │ │ ├── Sirenix.Utilities.Editor.dll.mdb │ │ ├── Sirenix.Utilities.Editor.dll.mdb.meta │ │ ├── Sirenix.Utilities.Editor.dll.meta │ │ ├── Sirenix.Utilities.Editor.xml │ │ ├── Sirenix.Utilities.Editor.xml.meta │ │ ├── Sirenix.Utilities.dll │ │ ├── Sirenix.Utilities.dll.mdb │ │ ├── Sirenix.Utilities.dll.mdb.meta │ │ ├── Sirenix.Utilities.dll.meta │ │ ├── Sirenix.Utilities.xml │ │ ├── Sirenix.Utilities.xml.meta │ │ ├── link.xml │ │ └── link.xml.meta │ │ ├── Demos.meta │ │ ├── Odin Inspector.meta │ │ ├── Odin Inspector │ │ ├── Assets.meta │ │ ├── Assets │ │ │ ├── Editor.meta │ │ │ └── Editor │ │ │ │ ├── Odin Inspector Logo.png │ │ │ │ └── Odin Inspector Logo.png.meta │ │ ├── Config.meta │ │ ├── Config │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ │ ├── AOTGenerationConfig.asset │ │ │ │ ├── AOTGenerationConfig.asset.meta │ │ │ │ ├── ColorPaletteManager.asset │ │ │ │ ├── ColorPaletteManager.asset.meta │ │ │ │ ├── GeneralDrawerConfig.asset │ │ │ │ ├── GeneralDrawerConfig.asset.meta │ │ │ │ ├── ImportSettingsConfig.asset │ │ │ │ ├── ImportSettingsConfig.asset.meta │ │ │ │ ├── InspectorConfig.asset │ │ │ │ └── InspectorConfig.asset.meta │ │ │ ├── Resources.meta │ │ │ └── Resources │ │ │ │ ├── Sirenix.meta │ │ │ │ └── Sirenix │ │ │ │ ├── GlobalSerializationConfig.asset │ │ │ │ └── GlobalSerializationConfig.asset.meta │ │ ├── Scripts.meta │ │ └── Scripts │ │ │ ├── Editor.meta │ │ │ ├── Editor │ │ │ ├── AssemblyImportSettingsAutomation.cs │ │ │ ├── AssemblyImportSettingsAutomation.cs.meta │ │ │ ├── BuildAOTAutomation.cs │ │ │ ├── BuildAOTAutomation.cs.meta │ │ │ ├── EnsureOdinInspectorDefine.cs │ │ │ ├── EnsureOdinInspectorDefine.cs.meta │ │ │ ├── FixBrokenUnityObjectWrapperDrawer.cs │ │ │ ├── FixBrokenUnityObjectWrapperDrawer.cs.meta │ │ │ ├── SyncListDrawer.cs │ │ │ ├── SyncListDrawer.cs.meta │ │ │ ├── SyncVarAttributeDrawer.cs │ │ │ ├── SyncVarAttributeDrawer.cs.meta │ │ │ ├── Vector2IntMinMaxAttributeDrawer.cs │ │ │ ├── Vector2IntMinMaxAttributeDrawer.cs.meta │ │ │ ├── VectorIntDrawers.cs │ │ │ ├── VectorIntDrawers.cs.meta │ │ │ ├── VectorIntPropertyResolvers.cs │ │ │ └── VectorIntPropertyResolvers.cs.meta │ │ │ ├── SerializedNetworkBehaviour.cs │ │ │ ├── SerializedNetworkBehaviour.cs.meta │ │ │ ├── VectorIntFormatters.cs │ │ │ └── VectorIntFormatters.cs.meta │ │ ├── Readme.txt │ │ ├── Readme.txt.meta │ │ ├── Source.meta │ │ └── Source │ │ ├── Source.zip │ │ └── Source.zip.meta ├── Scripts_w.meta ├── Scripts_w │ ├── JasonTest.cs │ ├── JasonTest.cs.meta │ ├── LitJsonTest.cs │ └── LitJsonTest.cs.meta ├── SpriteTest.unity ├── SpriteTest.unity.meta ├── Tools_DK.meta ├── Tools_DK │ ├── AES加密与解密.meta │ ├── AES加密与解密 │ │ ├── AES.cs │ │ ├── AES.cs.meta │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── SetAES.cs │ │ │ └── SetAES.cs.meta │ │ ├── Readme.txt │ │ └── Readme.txt.meta │ ├── Bezier.meta │ ├── Bezier │ │ ├── Bezier.cs │ │ ├── Bezier.cs.meta │ │ ├── Bezier.unity │ │ ├── Bezier.unity.meta │ │ ├── setBezierLine.cs │ │ └── setBezierLine.cs.meta │ ├── Excel.meta │ ├── Excel │ │ ├── DLL.meta │ │ ├── DLL │ │ │ ├── EPPlus.dll │ │ │ ├── EPPlus.dll.meta │ │ │ ├── Excel.dll │ │ │ ├── Excel.dll.meta │ │ │ ├── ICSharpCode.SharpZipLib.dll │ │ │ ├── ICSharpCode.SharpZipLib.dll.meta │ │ │ ├── System.Data.dll │ │ │ └── System.Data.dll.meta │ │ ├── Data.meta │ │ ├── Data │ │ │ ├── test.xlsx │ │ │ └── test.xlsx.meta │ │ ├── Demo.unity │ │ ├── Demo.unity.meta │ │ ├── DoExcel.cs │ │ ├── DoExcel.cs.meta │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── ReadExcel.cs │ │ │ └── ReadExcel.cs.meta │ │ ├── PrintExcel.cs │ │ ├── PrintExcel.cs.meta │ │ ├── readme.txt │ │ └── readme.txt.meta │ ├── Json.meta │ ├── Json │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── DKSkillEditor.cs │ │ │ └── DKSkillEditor.cs.meta │ │ ├── LitJson.dll │ │ ├── LitJson.dll.meta │ │ ├── Readme.txt │ │ ├── Readme.txt.meta │ │ ├── inputdate.json │ │ ├── inputdate.json.meta │ │ ├── skill_.cs │ │ └── skill_.cs.meta │ ├── MapEditor.meta │ ├── MapEditor │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── DkWindow.cs │ │ │ └── DkWindow.cs.meta │ │ ├── Readme.txt │ │ └── Readme.txt.meta │ ├── QR.meta │ ├── QR │ │ ├── Local.meta │ │ ├── Local │ │ │ ├── CreatQR.cs │ │ │ ├── CreatQR.cs.meta │ │ │ ├── GetQR_Local.cs │ │ │ ├── GetQR_Local.cs.meta │ │ │ ├── GetQR_Local.unity │ │ │ ├── GetQR_Local.unity.meta │ │ │ ├── zxing.unity.dll │ │ │ └── zxing.unity.dll.meta │ │ ├── Network request.meta │ │ ├── Network request │ │ │ ├── GetQR_net.unity │ │ │ ├── GetQR_net.unity.meta │ │ │ ├── GetQR_network.cs │ │ │ ├── GetQR_network.cs.meta │ │ │ ├── QRTest.cs │ │ │ └── QRTest.cs.meta │ │ ├── README.md │ │ └── Readme.md.meta │ ├── SpriteManage.meta │ └── SpriteManage │ │ ├── Editor.meta │ │ ├── Editor │ │ ├── CheckEmptySprite.cs │ │ ├── CheckEmptySprite.cs.meta │ │ ├── CreatImagecollection.cs │ │ └── CreatImagecollection.cs.meta │ │ ├── Readme.md │ │ └── Readme.txt.meta ├── jsonTest.unity └── jsonTest.unity.meta ├── Logs └── Packages-Update.log ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset └── VFXManager.asset └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | # Visual Studio cache directory 9 | .vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | *.opendb 26 | *.VC.db 27 | 28 | # Unity3D generated meta files 29 | *.pidb.meta 30 | *.pdb.meta 31 | 32 | # Unity3D Generated File On Crash Reports 33 | sysinfo.txt 34 | 35 | # Builds 36 | *.apk 37 | *.unitypackage 38 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a9a005d4963934478de0e04172e600f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fa528abdaa2cb04ea643bfaecb629af 3 | folderAsset: yes 4 | timeCreated: 1549460241 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50cd3c2f53a941d4eacfb016e08bc9cc 3 | folderAsset: yes 4 | timeCreated: 1549460241 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEditor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa3aebc634fb8f64587350060136762c 3 | folderAsset: yes 4 | timeCreated: 1549460242 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Serialization.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Serialization.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Serialization.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Serialization.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Serialization.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e08e8d913ee1fc4098c04d4fe51937c 3 | timeCreated: 1549459786 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Serialization.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5651992cdad94894a3af7dc3f1da9170 3 | timeCreated: 1488812592 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Android: 13 | enabled: 1 14 | settings: {} 15 | Any: 16 | enabled: 0 17 | settings: 18 | Exclude Android: 0 19 | Exclude Editor: 1 20 | Exclude Linux: 0 21 | Exclude Linux64: 0 22 | Exclude LinuxUniversal: 0 23 | Exclude N3DS: 1 24 | Exclude OSXIntel: 0 25 | Exclude OSXIntel64: 0 26 | Exclude OSXUniversal: 0 27 | Exclude PS4: 1 28 | Exclude PSM: 1 29 | Exclude PSP2: 1 30 | Exclude SamsungTV: 1 31 | Exclude Tizen: 1 32 | Exclude WebGL: 1 33 | Exclude WiiU: 1 34 | Exclude Win: 0 35 | Exclude Win64: 0 36 | Exclude WindowsStoreApps: 1 37 | Exclude XboxOne: 1 38 | Exclude iOS: 1 39 | Exclude tvOS: 1 40 | Editor: 41 | enabled: 0 42 | settings: 43 | DefaultValueInitialized: true 44 | Linux: 45 | enabled: 1 46 | settings: {} 47 | Linux64: 48 | enabled: 1 49 | settings: {} 50 | LinuxUniversal: 51 | enabled: 1 52 | settings: {} 53 | OSXIntel: 54 | enabled: 1 55 | settings: {} 56 | OSXIntel64: 57 | enabled: 1 58 | settings: {} 59 | OSXUniversal: 60 | enabled: 1 61 | settings: {} 62 | PSM: 63 | enabled: 0 64 | settings: {} 65 | Win: 66 | enabled: 1 67 | settings: {} 68 | Win64: 69 | enabled: 1 70 | settings: {} 71 | WindowsStoreApps: 72 | enabled: 0 73 | settings: 74 | CPU: AnyCPU 75 | userData: 76 | assetBundleName: 77 | assetBundleVariant: 78 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Utilities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Utilities.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Utilities.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Utilities.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Utilities.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bec2bc939f3dace4b95c35299169f1e0 3 | timeCreated: 1549459786 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEditor/Sirenix.Utilities.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5978f8f3dd274e848fbb7a123bde1fb9 3 | timeCreated: 1488812592 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Android: 13 | enabled: 1 14 | settings: {} 15 | Any: 16 | enabled: 0 17 | settings: 18 | Exclude Android: 0 19 | Exclude Editor: 1 20 | Exclude Linux: 0 21 | Exclude Linux64: 0 22 | Exclude LinuxUniversal: 0 23 | Exclude N3DS: 1 24 | Exclude OSXIntel: 0 25 | Exclude OSXIntel64: 0 26 | Exclude OSXUniversal: 0 27 | Exclude PS4: 1 28 | Exclude PSM: 1 29 | Exclude PSP2: 1 30 | Exclude SamsungTV: 1 31 | Exclude Tizen: 1 32 | Exclude WebGL: 1 33 | Exclude WiiU: 1 34 | Exclude Win: 0 35 | Exclude Win64: 0 36 | Exclude WindowsStoreApps: 1 37 | Exclude XboxOne: 1 38 | Exclude iOS: 1 39 | Exclude tvOS: 1 40 | Editor: 41 | enabled: 0 42 | settings: 43 | DefaultValueInitialized: true 44 | Linux: 45 | enabled: 1 46 | settings: {} 47 | Linux64: 48 | enabled: 1 49 | settings: {} 50 | LinuxUniversal: 51 | enabled: 1 52 | settings: {} 53 | OSXIntel: 54 | enabled: 1 55 | settings: {} 56 | OSXIntel64: 57 | enabled: 1 58 | settings: {} 59 | OSXUniversal: 60 | enabled: 1 61 | settings: {} 62 | PSM: 63 | enabled: 0 64 | settings: {} 65 | Win: 66 | enabled: 1 67 | settings: {} 68 | Win64: 69 | enabled: 1 70 | settings: {} 71 | WindowsStoreApps: 72 | enabled: 0 73 | settings: 74 | CPU: AnyCPU 75 | userData: 76 | assetBundleName: 77 | assetBundleVariant: 78 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbf0f74b375cb3048bc1a45f8ee8910a 3 | folderAsset: yes 4 | timeCreated: 1549460242 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Serialization.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Serialization.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Serialization.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Serialization.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Serialization.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d7d1215a51b17c4aaf55443ba2de3d6 3 | timeCreated: 1549459786 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Serialization.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2a8f0021d6b47c5923d8972dfb81ef1 3 | timeCreated: 1488812607 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Android: 1 16 | Exclude Editor: 1 17 | Exclude Linux: 1 18 | Exclude Linux64: 1 19 | Exclude LinuxUniversal: 1 20 | Exclude N3DS: 0 21 | Exclude OSXIntel: 1 22 | Exclude OSXIntel64: 1 23 | Exclude OSXUniversal: 1 24 | Exclude PS4: 0 25 | Exclude PSM: 0 26 | Exclude PSP2: 0 27 | Exclude SamsungTV: 0 28 | Exclude Tizen: 0 29 | Exclude WebGL: 0 30 | Exclude WiiU: 0 31 | Exclude Win: 1 32 | Exclude Win64: 1 33 | Exclude WindowsStoreApps: 0 34 | Exclude XboxOne: 0 35 | Exclude iOS: 0 36 | Exclude tvOS: 0 37 | Editor: 38 | enabled: 0 39 | settings: 40 | DefaultValueInitialized: true 41 | N3DS: 42 | enabled: 1 43 | settings: {} 44 | PS4: 45 | enabled: 1 46 | settings: {} 47 | PSM: 48 | enabled: 1 49 | settings: {} 50 | PSP2: 51 | enabled: 1 52 | settings: {} 53 | SamsungTV: 54 | enabled: 1 55 | settings: {} 56 | Tizen: 57 | enabled: 1 58 | settings: {} 59 | WebGL: 60 | enabled: 1 61 | settings: {} 62 | WiiU: 63 | enabled: 1 64 | settings: {} 65 | WindowsStoreApps: 66 | enabled: 1 67 | settings: 68 | CPU: AnyCPU 69 | XboxOne: 70 | enabled: 1 71 | settings: {} 72 | iOS: 73 | enabled: 1 74 | settings: {} 75 | tvOS: 76 | enabled: 1 77 | settings: {} 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Utilities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Utilities.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Utilities.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Utilities.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Utilities.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b21162a52f6f3c4da3c61ae23297ab1 3 | timeCreated: 1549459786 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/NoEmitAndNoEditor/Sirenix.Utilities.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e0a9643dc0d4b46bf2321f72c4e503e 3 | timeCreated: 1488812607 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Android: 1 16 | Exclude Editor: 1 17 | Exclude Linux: 1 18 | Exclude Linux64: 1 19 | Exclude LinuxUniversal: 1 20 | Exclude N3DS: 0 21 | Exclude OSXIntel: 1 22 | Exclude OSXIntel64: 1 23 | Exclude OSXUniversal: 1 24 | Exclude PS4: 0 25 | Exclude PSM: 0 26 | Exclude PSP2: 0 27 | Exclude SamsungTV: 0 28 | Exclude Tizen: 0 29 | Exclude WebGL: 0 30 | Exclude WiiU: 0 31 | Exclude Win: 1 32 | Exclude Win64: 1 33 | Exclude WindowsStoreApps: 0 34 | Exclude XboxOne: 0 35 | Exclude iOS: 0 36 | Exclude tvOS: 0 37 | Editor: 38 | enabled: 0 39 | settings: 40 | DefaultValueInitialized: true 41 | N3DS: 42 | enabled: 1 43 | settings: {} 44 | PS4: 45 | enabled: 1 46 | settings: {} 47 | PSM: 48 | enabled: 1 49 | settings: {} 50 | PSP2: 51 | enabled: 1 52 | settings: {} 53 | SamsungTV: 54 | enabled: 1 55 | settings: {} 56 | Tizen: 57 | enabled: 1 58 | settings: {} 59 | WebGL: 60 | enabled: 1 61 | settings: {} 62 | WiiU: 63 | enabled: 1 64 | settings: {} 65 | WindowsStoreApps: 66 | enabled: 1 67 | settings: 68 | CPU: AnyCPU 69 | XboxOne: 70 | enabled: 1 71 | settings: {} 72 | iOS: 73 | enabled: 1 74 | settings: {} 75 | tvOS: 76 | enabled: 1 77 | settings: {} 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Attributes.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Attributes.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Attributes.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Attributes.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Attributes.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c72d1b74a3ba604a98295b2c7039e56 3 | timeCreated: 1549459785 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Attributes.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47a84ebde4ec47fabb620b30cc7a3e5c 3 | timeCreated: 1488812560 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 1 14 | settings: 15 | Exclude Android: 0 16 | Exclude Editor: 0 17 | Exclude Linux: 0 18 | Exclude Linux64: 0 19 | Exclude LinuxUniversal: 0 20 | Exclude N3DS: 0 21 | Exclude OSXIntel: 0 22 | Exclude OSXIntel64: 0 23 | Exclude OSXUniversal: 0 24 | Exclude PS4: 0 25 | Exclude PSM: 0 26 | Exclude PSP2: 0 27 | Exclude SamsungTV: 0 28 | Exclude Tizen: 0 29 | Exclude WebGL: 0 30 | Exclude WiiU: 0 31 | Exclude Win: 0 32 | Exclude Win64: 0 33 | Exclude WindowsStoreApps: 0 34 | Exclude XboxOne: 0 35 | Exclude iOS: 0 36 | Exclude tvOS: 0 37 | Editor: 38 | enabled: 0 39 | settings: 40 | DefaultValueInitialized: true 41 | WindowsStoreApps: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | userData: 46 | assetBundleName: 47 | assetBundleVariant: 48 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Attributes.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 451c3c26619f56f4098215734dda96c1 3 | timeCreated: 1549459808 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Editor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Editor.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Editor.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Editor.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Editor.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a68f3b3ce5f7ca046b2f0bbd9639d0a9 3 | timeCreated: 1549459785 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Editor.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4865f1ab4504ed8a368670db22f409c 3 | timeCreated: 1488828285 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Android: 1 16 | Exclude Editor: 0 17 | Exclude Linux: 1 18 | Exclude Linux64: 1 19 | Exclude LinuxUniversal: 1 20 | Exclude N3DS: 1 21 | Exclude OSXIntel: 1 22 | Exclude OSXIntel64: 1 23 | Exclude OSXUniversal: 1 24 | Exclude PS4: 1 25 | Exclude PSM: 1 26 | Exclude PSP2: 1 27 | Exclude SamsungTV: 1 28 | Exclude Tizen: 1 29 | Exclude WebGL: 1 30 | Exclude WiiU: 1 31 | Exclude Win: 1 32 | Exclude Win64: 1 33 | Exclude WindowsStoreApps: 1 34 | Exclude XboxOne: 1 35 | Exclude iOS: 1 36 | Exclude tvOS: 1 37 | Editor: 38 | enabled: 1 39 | settings: 40 | DefaultValueInitialized: true 41 | WindowsStoreApps: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | userData: 46 | assetBundleName: 47 | assetBundleVariant: 48 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.OdinInspector.Editor.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2023a26ac8857e64d9808dd67db460d8 3 | timeCreated: 1549459808 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.Config.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.Config.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.Config.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.Config.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.Config.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d64e53c2334885a4bbc81922fbb61591 3 | timeCreated: 1549459785 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.Config.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74721B9F0AF448F5AE2E91102A1A5EDD 3 | timeCreated: 1488812560 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 1 14 | settings: 15 | Exclude Android: 0 16 | Exclude Editor: 0 17 | Exclude Linux: 0 18 | Exclude Linux64: 0 19 | Exclude LinuxUniversal: 0 20 | Exclude N3DS: 0 21 | Exclude OSXIntel: 0 22 | Exclude OSXIntel64: 0 23 | Exclude OSXUniversal: 0 24 | Exclude PS4: 0 25 | Exclude PSM: 0 26 | Exclude PSP2: 0 27 | Exclude SamsungTV: 0 28 | Exclude Tizen: 0 29 | Exclude WebGL: 0 30 | Exclude WiiU: 0 31 | Exclude Win: 0 32 | Exclude Win64: 0 33 | Exclude WindowsStoreApps: 0 34 | Exclude XboxOne: 0 35 | Exclude iOS: 0 36 | Exclude tvOS: 0 37 | Editor: 38 | enabled: 0 39 | settings: 40 | DefaultValueInitialized: true 41 | WindowsStoreApps: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | userData: 46 | assetBundleName: 47 | assetBundleVariant: 48 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.Config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Sirenix.Serialization.Config 5 | 6 | 7 | 8 | 9 | A helper class for quickly and easily defining custom loggers. 10 | 11 | 12 | 13 | 14 | 15 | Not yet documented. 16 | 17 | 18 | 19 | 20 | Not yet documented. 21 | 22 | 23 | 24 | 25 | Not yet documented. 26 | 27 | 28 | 29 | 30 | Not yet documented. 31 | 32 | 33 | 34 | 35 | Specifies a data format to read and write in. 36 | 37 | 38 | 39 | 40 | A custom packed binary format. This format is most efficient and almost allocation-free, 41 | but its serialized data is not human-readable. 42 | 43 | 44 | 45 | 46 | A JSON format compliant with the json specification found at "http://www.json.org/". 47 | 48 | This format has rather sluggish performance and allocates frightening amounts of string garbage. 49 | 50 | 51 | 52 | 53 | A format that does not serialize to a byte stream, but to a list of data nodes in memory 54 | which can then be serialized by Unity. 55 | 56 | This format is highly inefficient, and is primarily used for ensuring that Unity assets 57 | are mergeable by individual values when saved in Unity's text format. This makes 58 | serialized values more robust and data recovery easier in case of issues. 59 | 60 | This format is *not* recommended for use in builds. 61 | 62 | 63 | 64 | 65 | Defines default loggers for serialization and deserialization. This class and all of its loggers are thread safe. 66 | 67 | 68 | 69 | 70 | Not yet documented. 71 | 72 | 73 | 74 | 75 | Not yet documented. 76 | 77 | 78 | 79 | 80 | The policy for handling errors during serialization and deserialization. 81 | 82 | 83 | 84 | 85 | Attempts will be made to recover from errors and continue serialization. Data may become invalid. 86 | 87 | 88 | 89 | 90 | Exceptions will be thrown when errors are logged. 91 | 92 | 93 | 94 | 95 | Exceptions will be thrown when warnings or errors are logged. 96 | 97 | 98 | 99 | 100 | Not yet documented. 101 | 102 | 103 | 104 | 105 | Text for the cautionary serialization warning shown in the inspector. 106 | 107 | 108 | 109 | 110 | Text for the hide button for the cautionary serialization warning shown in the inspector. 111 | 112 | 113 | 114 | 115 | Whether the user has chosen to hide the cautionary serialization warning. 116 | 117 | 118 | 119 | 120 | Whether the user has chosen to hide the warning messages related to the OdinSerialize attribute. 121 | 122 | 123 | 124 | 125 | Whether the user has chosen to hide the warning messages related to the SerializeField and ShowInInspector attributes on non-serialized members. 126 | 127 | 128 | 129 | 130 | Not yet documented. 131 | 132 | 133 | 134 | 135 | Not yet documented. 136 | 137 | 138 | 139 | 140 | Not yet documented. 141 | 142 | 143 | 144 | 145 | Not yet documented. 146 | 147 | 148 | 149 | 150 | Not yet documented. 151 | 152 | 153 | 154 | 155 | Implements methods for logging warnings, errors and exceptions during serialization and deserialization. 156 | 157 | 158 | 159 | 160 | Logs a warning. 161 | 162 | The warning to log. 163 | 164 | 165 | 166 | Logs an error. 167 | 168 | The error to log. 169 | 170 | 171 | 172 | Logs an exception. 173 | 174 | The exception to log. 175 | 176 | 177 | 178 | The policy for which level of logging to do during serialization and deserialization. 179 | 180 | 181 | 182 | 183 | Not yet documented. 184 | 185 | 186 | 187 | 188 | Not yet documented. 189 | 190 | 191 | 192 | 193 | Not yet documented. 194 | 195 | 196 | 197 | 198 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.Config.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7823dfecd1c6e7d40b3f1f952b446bdf 3 | timeCreated: 1549459808 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9a9924184d26074cb6ae149a0743b60 3 | timeCreated: 1549459786 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Serialization.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f3147f7af4c49739579b966c458f5e4 3 | timeCreated: 1488828285 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Android: 1 16 | Exclude Editor: 0 17 | Exclude Linux: 1 18 | Exclude Linux64: 1 19 | Exclude LinuxUniversal: 1 20 | Exclude N3DS: 1 21 | Exclude OSXIntel: 1 22 | Exclude OSXIntel64: 1 23 | Exclude OSXUniversal: 1 24 | Exclude PS4: 1 25 | Exclude PSM: 1 26 | Exclude PSP2: 1 27 | Exclude SamsungTV: 1 28 | Exclude Tizen: 1 29 | Exclude WebGL: 1 30 | Exclude WiiU: 1 31 | Exclude Win: 1 32 | Exclude Win64: 1 33 | Exclude WindowsStoreApps: 1 34 | Exclude XboxOne: 1 35 | Exclude iOS: 1 36 | Exclude tvOS: 1 37 | Editor: 38 | enabled: 1 39 | settings: 40 | DefaultValueInitialized: true 41 | WindowsStoreApps: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | userData: 46 | assetBundleName: 47 | assetBundleVariant: 48 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.Editor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.Editor.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.Editor.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.Editor.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.Editor.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e23ea1c05fccb804c8350832eb2642e5 3 | timeCreated: 1549459785 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.Editor.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c65184932ff4fd48a343e2360256baf 3 | timeCreated: 1488828285 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Android: 1 16 | Exclude Editor: 0 17 | Exclude Linux: 1 18 | Exclude Linux64: 1 19 | Exclude LinuxUniversal: 1 20 | Exclude N3DS: 1 21 | Exclude OSXIntel: 1 22 | Exclude OSXIntel64: 1 23 | Exclude OSXUniversal: 1 24 | Exclude PS4: 1 25 | Exclude PSM: 1 26 | Exclude PSP2: 1 27 | Exclude SamsungTV: 1 28 | Exclude Tizen: 1 29 | Exclude WebGL: 1 30 | Exclude WiiU: 1 31 | Exclude Win: 1 32 | Exclude Win64: 1 33 | Exclude WindowsStoreApps: 1 34 | Exclude XboxOne: 1 35 | Exclude iOS: 1 36 | Exclude tvOS: 1 37 | Editor: 38 | enabled: 1 39 | settings: 40 | DefaultValueInitialized: true 41 | WindowsStoreApps: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | userData: 46 | assetBundleName: 47 | assetBundleVariant: 48 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.Editor.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fa2259f8b311384fa6ad520c133e822 3 | timeCreated: 1549459808 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.dll -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.dll.mdb -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a54ca255d1bf7a049b3264bdafef4bae 3 | timeCreated: 1549459785 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4873f2a8bdae42baa0406e8a61366ca1 3 | timeCreated: 1488828285 4 | licenseType: Store 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: 15 | Exclude Android: 1 16 | Exclude Editor: 0 17 | Exclude Linux: 1 18 | Exclude Linux64: 1 19 | Exclude LinuxUniversal: 1 20 | Exclude N3DS: 1 21 | Exclude OSXIntel: 1 22 | Exclude OSXIntel64: 1 23 | Exclude OSXUniversal: 1 24 | Exclude PS4: 1 25 | Exclude PSM: 1 26 | Exclude PSP2: 1 27 | Exclude SamsungTV: 1 28 | Exclude Tizen: 1 29 | Exclude WebGL: 1 30 | Exclude WiiU: 1 31 | Exclude Win: 1 32 | Exclude Win64: 1 33 | Exclude WindowsStoreApps: 1 34 | Exclude XboxOne: 1 35 | Exclude iOS: 1 36 | Exclude tvOS: 1 37 | Editor: 38 | enabled: 1 39 | settings: 40 | DefaultValueInitialized: true 41 | WindowsStoreApps: 42 | enabled: 0 43 | settings: 44 | CPU: AnyCPU 45 | userData: 46 | assetBundleName: 47 | assetBundleVariant: 48 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/Sirenix.Utilities.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18addb2137c8840438934d99bb2d694e 3 | timeCreated: 1549459808 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/link.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Assemblies/link.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79fb9b976fa52a6438b41314118673cf 3 | timeCreated: 1544781016 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Demos.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc8d86bf068887b4098391e26292321f 3 | folderAsset: yes 4 | timeCreated: 1549460241 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48eb85d1d1ef3bd4ba9bd9d9a4fac607 3 | folderAsset: yes 4 | timeCreated: 1549460241 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c5dc7f1d15d91e44bebdf233701d9c3 3 | folderAsset: yes 4 | timeCreated: 1549460242 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3feec5fd1d2630c4095019adf924c37f 3 | folderAsset: yes 4 | timeCreated: 1549460242 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Assets/Editor/Odin Inspector Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Odin Inspector/Assets/Editor/Odin Inspector Logo.png -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Assets/Editor/Odin Inspector Logo.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a78bffbeb81b48ae9ec71ad7969613e5 3 | timeCreated: 1493397482 4 | licenseType: Store 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 1 12 | correctGamma: 1 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 1 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: 1 33 | aniso: 16 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | textureType: 5 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | sprites: [] 53 | outline: [] 54 | spritePackingTag: 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ca434984a3b9b04db4481428cb98c78 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfe9ebcd7a43d2143a1feede55a58390 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/AOTGenerationConfig.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 1726182683, guid: a4865f1ab4504ed8a368670db22f409c, type: 3} 12 | m_Name: AOTGenerationConfig 13 | m_EditorClassIdentifier: 14 | automateBeforeBuilds: 0 15 | deleteDllAfterBuilds: 1 16 | automateForPlatforms: 0900000014000000 17 | lastScan: 0 18 | supportSerializedTypes: [] 19 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/AOTGenerationConfig.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bc7da542baa4bd4b9461209376cd7d8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/ColorPaletteManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 772478971, guid: a4865f1ab4504ed8a368670db22f409c, type: 3} 12 | m_Name: ColorPaletteManager 13 | m_EditorClassIdentifier: 14 | colorPalettes: 15 | - name: Country 16 | showAlpha: 0 17 | colors: 18 | - {r: 0.776, g: 0.651, b: 0.349, a: 1} 19 | - {r: 0.863, g: 0.761, b: 0.631, a: 1} 20 | - {r: 0.91, g: 0.831, b: 0.686, a: 1} 21 | - {r: 0.961, g: 0.902, b: 0.788, a: 1} 22 | - {r: 0.753, g: 0.714, b: 0.667, a: 1} 23 | - {r: 0.478, g: 0.573, b: 0.431, a: 1} 24 | - {r: 0.314, g: 0.427, b: 0.31, a: 1} 25 | - {r: 0.596, g: 0.345, b: 0.235, a: 1} 26 | - {r: 0.545, g: 0.329, b: 0.318, a: 1} 27 | - {r: 0.647, g: 0.204, b: 0.227, a: 1} 28 | - {r: 0.435, g: 0.161, b: 0.063, a: 1} 29 | - {r: 0.357, g: 0.333, b: 0.278, a: 1} 30 | - {r: 0.976, g: 0.98, b: 0.961, a: 1} 31 | - {r: 0.165, g: 0.271, b: 0.11, a: 1} 32 | - name: Beach 33 | showAlpha: 0 34 | colors: 35 | - {r: 0.996, g: 0.906, b: 0.459, a: 1} 36 | - {r: 0.314, g: 0.592, b: 0.035, a: 1} 37 | - {r: 0.486, g: 0.953, b: 0.875, a: 1} 38 | - {r: 0.996, g: 0.82, b: 0.212, a: 1} 39 | - {r: 1, g: 0.769, b: 0.165, a: 1} 40 | - {r: 0.804, g: 0.835, b: 0.753, a: 1} 41 | - {r: 1, g: 0.769, b: 0.165, a: 1} 42 | - {r: 1, g: 0.702, b: 0.063, a: 1} 43 | - {r: 1, g: 0.898, b: 0.569, a: 1} 44 | - name: Fall 45 | showAlpha: 0 46 | colors: 47 | - {r: 0.82, g: 0.722, b: 0.318, a: 1} 48 | - {r: 0.537, g: 0.192, b: 0.153, a: 1} 49 | - {r: 0.996, g: 0.812, b: 0.012, a: 1} 50 | - {r: 1, g: 0.431, b: 0.02, a: 1} 51 | - {r: 0.937, g: 0.267, b: 0.094, a: 1} 52 | - {r: 0.42, g: 0.212, b: 0.18, a: 1} 53 | - {r: 0.992, g: 0.651, b: 0.004, a: 1} 54 | - {r: 0.89, g: 0.353, b: 0.086, a: 1} 55 | - {r: 1, g: 0.443, b: 0.004, a: 1} 56 | - {r: 0.682, g: 0.275, b: 0.137, a: 1} 57 | - {r: 0.306, g: 0.231, b: 0.114, a: 1} 58 | - {r: 0.384, g: 0.416, b: 0.082, a: 1} 59 | - {r: 0.165, g: 0.157, b: 0.008, a: 1} 60 | - {r: 0.906, g: 0.635, b: 0.227, a: 1} 61 | - {r: 0.82, g: 0.722, b: 0.318, a: 1} 62 | - {r: 0.745, g: 0.435, b: 0.031, a: 1} 63 | - {r: 0.765, g: 0.682, b: 0.569, a: 1} 64 | - {r: 0.18, g: 0.149, b: 0.075, a: 1} 65 | - {r: 0.702, g: 0.451, b: 0.059, a: 1} 66 | - name: Passion 67 | showAlpha: 0 68 | colors: 69 | - {r: 0.925, g: 0.682, b: 0.624, a: 1} 70 | - {r: 0.188, g: 0.114, b: 0.224, a: 1} 71 | - {r: 0.349, g: 0.11, b: 0.231, a: 1} 72 | - {r: 0.435, g: 0.267, b: 0.357, a: 1} 73 | - name: Sepia 74 | showAlpha: 0 75 | colors: 76 | - {r: 0.353, g: 0.098, b: 0.02, a: 1} 77 | - {r: 0.663, g: 0.188, b: 0.114, a: 1} 78 | - {r: 0.906, g: 0.643, b: 0.082, a: 1} 79 | - {r: 0.996, g: 0.839, b: 0.322, a: 1} 80 | - {r: 0.486, g: 0.392, b: 0.02, a: 1} 81 | - {r: 0.294, g: 0.235, b: 0.012, a: 1} 82 | - name: Floral 83 | showAlpha: 0 84 | colors: 85 | - {r: 0.855, g: 0.518, b: 0.412, a: 1} 86 | - {r: 0.827, g: 0.294, b: 0.333, a: 1} 87 | - {r: 0.737, g: 0.118, b: 0.208, a: 1} 88 | - {r: 0.549, g: 0.149, b: 0.235, a: 1} 89 | - {r: 0.949, g: 0.925, b: 0.784, a: 1} 90 | - {r: 0.945, g: 0.882, b: 0.69, a: 1} 91 | - {r: 0.871, g: 0.812, b: 0.698, a: 1} 92 | - {r: 0.4, g: 0.196, b: 0.243, a: 1} 93 | - {r: 0.271, g: 0.157, b: 0.227, a: 1} 94 | - name: Underwater 95 | showAlpha: 0 96 | colors: 97 | - {r: 0.663, g: 0.416, b: 0.733, a: 1} 98 | - {r: 0.2, g: 0.6, b: 0.698, a: 1} 99 | - {r: 0.11, g: 0.49, b: 0.698, a: 1} 100 | - {r: 0.439, g: 0.627, b: 0.227, a: 1} 101 | - {r: 0, g: 0.357, b: 0.604, a: 1} 102 | - {r: 0.067, g: 0.271, b: 0.353, a: 1} 103 | - name: Breeze 104 | showAlpha: 0 105 | colors: 106 | - {r: 0.706, g: 1, b: 0, a: 1} 107 | - {r: 0.651, g: 1, b: 0.404, a: 1} 108 | - {r: 0.122, g: 1, b: 0.514, a: 1} 109 | - {r: 0.216, g: 0.894, b: 0.961, a: 1} 110 | - {r: 0.4, g: 1, b: 0.882, a: 1} 111 | - {r: 0.027, g: 0.792, b: 0.8, a: 1} 112 | - name: Clovers 113 | showAlpha: 0 114 | colors: 115 | - {r: 0.431, g: 0.549, b: 0.102, a: 1} 116 | - {r: 0.671, g: 0.714, b: 0.071, a: 1} 117 | - {r: 0.969, g: 0.949, b: 0.831, a: 1} 118 | - {r: 0.886, g: 0.902, b: 0.702, a: 1} 119 | - {r: 0.753, g: 0.824, b: 0.627, a: 1} 120 | - {r: 0.404, g: 0.6, b: 0.4, a: 1} 121 | - name: Tropical 122 | showAlpha: 0 123 | colors: 124 | - {r: 0.953, g: 0.647, b: 0.804, a: 1} 125 | - {r: 0.965, g: 0.741, b: 0.871, a: 1} 126 | - {r: 0.949, g: 0.549, b: 0.643, a: 1} 127 | - {r: 0.992, g: 0.659, b: 0.498, a: 1} 128 | - {r: 0.976, g: 0.792, b: 0.729, a: 1} 129 | - {r: 0.984, g: 0.855, b: 0.725, a: 1} 130 | - {r: 0.259, g: 0.882, b: 0.663, a: 1} 131 | - {r: 0.349, g: 0.753, b: 0.78, a: 1} 132 | - {r: 0.725, g: 0.976, b: 0.91, a: 1} 133 | - {r: 0.647, g: 0.745, b: 0.957, a: 1} 134 | - {r: 0.725, g: 0.863, b: 0.973, a: 1} 135 | - {r: 0.89, g: 0.945, b: 0.996, a: 1} 136 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/ColorPaletteManager.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5726537a026eca642984c7f18d288dae 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/GeneralDrawerConfig.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: -645759843, guid: a4865f1ab4504ed8a368670db22f409c, type: 3} 12 | m_Name: GeneralDrawerConfig 13 | m_EditorClassIdentifier: 14 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/GeneralDrawerConfig.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b64260a46ae6dc54997fed18ca41d031 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/ImportSettingsConfig.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 188390376, guid: a4865f1ab4504ed8a368670db22f409c, type: 3} 12 | m_Name: ImportSettingsConfig 13 | m_EditorClassIdentifier: 14 | automateBeforeBuild: 1 15 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/ImportSettingsConfig.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e1f922197862ca49bdcf964c8d5abe2 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/InspectorConfig.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: 1137305049, guid: a4865f1ab4504ed8a368670db22f409c, type: 3} 13 | m_Name: InspectorConfig 14 | m_EditorClassIdentifier: 15 | enableOdinInInspector: 1 16 | defaultEditorBehaviour: 11 17 | processMouseMoveInInspector: 1 18 | drawingConfig: 19 | configs: [] 20 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Editor/InspectorConfig.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0e0c8fdc73856a4cbef794943aa2e47 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a07ef2c5eb2eb744bbce6c7df29154de 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Resources/Sirenix.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79292fb01e6e1c5448d881fa90b149d6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Resources/Sirenix/GlobalSerializationConfig.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_GameObject: {fileID: 0} 9 | m_Enabled: 1 10 | m_EditorHideFlags: 0 11 | m_Script: {fileID: 1549551891, guid: 74721b9f0af448f5ae2e91102a1a5edd, type: 3} 12 | m_Name: GlobalSerializationConfig 13 | m_EditorClassIdentifier: 14 | HideSerializationCautionaryMessage: 0 15 | HideOdinSerializeAttributeWarningMessages: 0 16 | HideNonSerializedShowInInspectorWarningMessages: 0 17 | buildSerializationFormat: 0 18 | editorSerializationFormat: 2 19 | loggingPolicy: 0 20 | errorHandlingPolicy: 0 21 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Config/Resources/Sirenix/GlobalSerializationConfig.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b69975983035f6543bc788ac959c3a68 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25d775321c0f78c47be1a18335d79b48 3 | folderAsset: yes 4 | timeCreated: 1549460241 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 940bc118adb232a4a86cfeade228fe4a 3 | folderAsset: yes 4 | timeCreated: 1549460242 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/AssemblyImportSettingsAutomation.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_5_6_OR_NEWER 2 | 3 | //----------------------------------------------------------------------- 4 | // 5 | // Copyright (c) Sirenix IVS. All rights reserved. 6 | // 7 | //----------------------------------------------------------------------- 8 | 9 | namespace Sirenix.OdinInspector.Editor 10 | { 11 | using System.IO; 12 | using Sirenix.Serialization.Utilities.Editor; 13 | using Sirenix.Utilities; 14 | using UnityEditor; 15 | using UnityEditor.Build; 16 | 17 | #if UNITY_2018_1_OR_NEWER 18 | using UnityEditor.Build.Reporting; 19 | #endif 20 | 21 | public class AssemblyImportSettingsAutomation : 22 | #if UNITY_2018_1_OR_NEWER 23 | IPreprocessBuildWithReport 24 | #else 25 | IPreprocessBuild 26 | #endif 27 | { 28 | private const string JITAssemblyFolder = "NoEditor"; 29 | private const string AOTAssemblyFolder = "NoEmitAndNoEditor"; 30 | 31 | public int callbackOrder { get { return -1500; } } 32 | 33 | private static void ConfigureImportSettings() 34 | { 35 | if (EditorOnlyModeConfig.Instance.IsEditorOnlyModeEnabled() || ImportSettingsConfig.Instance.AutomateBeforeBuild == false) 36 | { 37 | return; 38 | } 39 | 40 | BuildTarget platform = EditorUserBuildSettings.activeBuildTarget; 41 | string assemblyDirectory = Path.Combine("Assets", SirenixAssetPaths.SirenixAssembliesPath); 42 | string[] aotAssemblies = Directory.GetFiles(Path.Combine(assemblyDirectory, AOTAssemblyFolder), "*.dll"); 43 | string[] jitAssemblies = Directory.GetFiles(Path.Combine(assemblyDirectory, JITAssemblyFolder), "*.dll"); 44 | 45 | AssetDatabase.StartAssetEditing(); 46 | try 47 | { 48 | if (AssemblyImportSettingsUtilities.IsJITSupported( 49 | platform, 50 | AssemblyImportSettingsUtilities.GetCurrentScriptingBackend(), 51 | AssemblyImportSettingsUtilities.GetCurrentApiCompatibilityLevel())) 52 | { 53 | ApplyImportSettings(platform, aotAssemblies, OdinAssemblyImportSettings.ExcludeFromAll); 54 | ApplyImportSettings(platform, jitAssemblies, OdinAssemblyImportSettings.IncludeInBuildOnly); 55 | } 56 | else 57 | { 58 | ApplyImportSettings(platform, aotAssemblies, OdinAssemblyImportSettings.IncludeInBuildOnly); 59 | ApplyImportSettings(platform, jitAssemblies, OdinAssemblyImportSettings.ExcludeFromAll); 60 | } 61 | } 62 | finally 63 | { 64 | AssetDatabase.StopAssetEditing(); 65 | } 66 | } 67 | 68 | private static void ApplyImportSettings(BuildTarget platform, string[] assemblyPaths, OdinAssemblyImportSettings importSettings) 69 | { 70 | for (int i = 0; i < assemblyPaths.Length; i++) 71 | { 72 | AssemblyImportSettingsUtilities.SetAssemblyImportSettings(platform, assemblyPaths[i], importSettings); 73 | } 74 | } 75 | 76 | #if UNITY_2018_1_OR_NEWER 77 | 78 | void IPreprocessBuildWithReport.OnPreprocessBuild(BuildReport report) 79 | { 80 | ConfigureImportSettings(); 81 | } 82 | 83 | #else 84 | 85 | void IPreprocessBuild.OnPreprocessBuild(BuildTarget target, string path) 86 | { 87 | ConfigureImportSettings(); 88 | } 89 | 90 | #endif 91 | } 92 | } 93 | 94 | #endif // UNITY_5_6_OR_NEWER -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/AssemblyImportSettingsAutomation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4d815a2bfd253342bfd6542c08315fb 3 | timeCreated: 1533296750 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/BuildAOTAutomation.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_5_6_OR_NEWER 2 | 3 | //----------------------------------------------------------------------- 4 | // 5 | // Copyright (c) Sirenix IVS. All rights reserved. 6 | // 7 | //----------------------------------------------------------------------- 8 | 9 | namespace Sirenix.Serialization.Internal 10 | { 11 | using Sirenix.Serialization; 12 | using UnityEditor; 13 | using UnityEditor.Build; 14 | using System.IO; 15 | using System; 16 | 17 | #if UNITY_2018_1_OR_NEWER 18 | 19 | using UnityEditor.Build.Reporting; 20 | 21 | #endif 22 | 23 | #if UNITY_2018_1_OR_NEWER 24 | public class PreBuildAOTAutomation : IPreprocessBuildWithReport 25 | #else 26 | public class PreBuildAOTAutomation : IPreprocessBuild 27 | #endif 28 | { 29 | public int callbackOrder 30 | { 31 | get 32 | { 33 | return -1000; 34 | } 35 | } 36 | 37 | public void OnPreprocessBuild(BuildTarget target, string path) 38 | { 39 | if (AOTGenerationConfig.Instance.AutomateBeforeBuilds 40 | && AOTGenerationConfig.Instance.AutomateForPlatforms != null 41 | && AOTGenerationConfig.Instance.AutomateForPlatforms.Contains(target)) 42 | { 43 | AOTGenerationConfig.Instance.ScanProject(); 44 | AOTGenerationConfig.Instance.GenerateDLL(); 45 | } 46 | } 47 | 48 | #if UNITY_2018_1_OR_NEWER 49 | 50 | public void OnPreprocessBuild(BuildReport report) 51 | { 52 | this.OnPreprocessBuild(report.summary.platform, report.summary.outputPath); 53 | } 54 | 55 | #endif 56 | } 57 | 58 | #if UNITY_2018_1_OR_NEWER 59 | public class PostBuildAOTAutomation : IPostprocessBuildWithReport 60 | #else 61 | public class PostBuildAOTAutomation : IPostprocessBuild 62 | #endif 63 | { 64 | public int callbackOrder 65 | { 66 | get 67 | { 68 | return -1000; 69 | } 70 | } 71 | 72 | public void OnPostprocessBuild(BuildTarget target, string path) 73 | { 74 | if (AOTGenerationConfig.Instance.AutomateBeforeBuilds 75 | && AOTGenerationConfig.Instance.AutomateForPlatforms != null 76 | && AOTGenerationConfig.Instance.AutomateForPlatforms.Contains(target) 77 | && AOTGenerationConfig.Instance.DeleteDllAfterBuilds) 78 | { 79 | Directory.Delete(AOTGenerationConfig.Instance.AOTFolderPath, true); 80 | File.Delete(AOTGenerationConfig.Instance.AOTFolderPath.TrimEnd('/', '\\') + ".meta"); 81 | AssetDatabase.Refresh(); 82 | } 83 | } 84 | 85 | #if UNITY_2018_1_OR_NEWER 86 | 87 | public void OnPostprocessBuild(BuildReport report) 88 | { 89 | this.OnPostprocessBuild(report.summary.platform, report.summary.outputPath); 90 | } 91 | 92 | #endif 93 | } 94 | } 95 | 96 | #endif -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/BuildAOTAutomation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd3672808cdf76541aa3d383c87a5616 3 | timeCreated: 1514538277 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/EnsureOdinInspectorDefine.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | //----------------------------------------------------------------------- 3 | // 4 | // Copyright (c) Sirenix IVS. All rights reserved. 5 | // 6 | //----------------------------------------------------------------------- 7 | namespace Sirenix.Utilities 8 | { 9 | using System; 10 | using System.Linq; 11 | using UnityEditor; 12 | 13 | /// 14 | /// Defines the ODIN_INSPECTOR symbol. 15 | /// 16 | internal static class EnsureOdinInspectorDefine 17 | { 18 | private const string DEFINE = "ODIN_INSPECTOR"; 19 | 20 | [InitializeOnLoadMethod] 21 | private static void AssureScriptingDefineSymbol() 22 | { 23 | var currentTarget = EditorUserBuildSettings.selectedBuildTargetGroup; 24 | 25 | if (currentTarget == BuildTargetGroup.Unknown) 26 | { 27 | return; 28 | } 29 | 30 | var definesString = PlayerSettings.GetScriptingDefineSymbolsForGroup(currentTarget).Trim(); 31 | var defines = definesString.Split(';'); 32 | 33 | if (defines.Contains(DEFINE) == false) 34 | { 35 | if (definesString.EndsWith(";", StringComparison.InvariantCulture) == false) 36 | { 37 | definesString += ";"; 38 | } 39 | 40 | definesString += DEFINE; 41 | 42 | PlayerSettings.SetScriptingDefineSymbolsForGroup(currentTarget, definesString); 43 | } 44 | } 45 | } 46 | 47 | // 48 | // If you have a project where only some users have Odin, and you want to utilize the ODIN_INSPECTOR 49 | // define symbol. Then, in order to only define the symbol for those with Odin, you can delete this script, 50 | // which prevent ODIN_INSPECTOR from being added to the Unity's player settings. 51 | // 52 | // And instead automatically add the ODIN_INSPECTOR define to an mcs.rsp file if Odin exists using the script below. 53 | // You can then ignore the mcs.rsp file in source control. 54 | // 55 | // Remember to manually remove the ODIN_INSPECTOR define symbol in player settings after removing this script. 56 | // 57 | // static class AddOdinInspectorDefineIfOdinExist 58 | // { 59 | // private const string ODIN_MCS_DEFINE = "-define:ODIN_INSPECTOR"; 60 | // 61 | // [InitializeOnLoadMethod] 62 | // private static void AddOrRemoveOdinDefine() 63 | // { 64 | // var addDefine = AppDomain.CurrentDomain.GetAssemblies().Any(x => x.FullName.StartsWith("Sirenix.OdinInspector.Editor")); 65 | // 66 | // #if ODIN_INSPECTOR 67 | // var hasDefine = true; 68 | // #else 69 | // var hasDefine = false; 70 | // #endif 71 | // 72 | // if (addDefine == hasDefine) 73 | // { 74 | // return; 75 | // } 76 | // 77 | // var mcsPath = Path.Combine(Application.dataPath, "mcs.rsp"); 78 | // var hasMcsFile = File.Exists(mcsPath); 79 | // 80 | // if (addDefine) 81 | // { 82 | // var lines = hasMcsFile ? File.ReadAllLines(mcsPath).ToList() : new List(); 83 | // if (!lines.Any(x => x.Trim() == ODIN_MCS_DEFINE)) 84 | // { 85 | // lines.Add(ODIN_MCS_DEFINE); 86 | // File.WriteAllLines(mcsPath, lines.ToArray()); 87 | // AssetDatabase.Refresh(); 88 | // } 89 | // } 90 | // else if (hasMcsFile) 91 | // { 92 | // var linesWithoutOdinDefine = File.ReadAllLines(mcsPath).Where(x => x.Trim() != ODIN_MCS_DEFINE).ToArray(); 93 | // 94 | // if (linesWithoutOdinDefine.Length == 0) 95 | // { 96 | // // Optional - Remove the mcs file instead if it doesn't contain any lines. 97 | // File.Delete(mcsPath); 98 | // } 99 | // else 100 | // { 101 | // File.WriteAllLines(mcsPath, linesWithoutOdinDefine); 102 | // } 103 | // 104 | // AssetDatabase.Refresh(); 105 | // } 106 | // } 107 | // } 108 | } 109 | #endif -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/EnsureOdinInspectorDefine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9763cb398cf6e146b74d6b7bac2fe50 3 | timeCreated: 1519909294 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/FixBrokenUnityObjectWrapperDrawer.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR && UNITY_2018_3_OR_NEWER 2 | #pragma warning disable 3 | 4 | namespace Sirenix.OdinInspector.Editor.Drawers 5 | { 6 | using Sirenix.OdinInspector; 7 | using Sirenix.OdinInspector.Editor; 8 | using Sirenix.Utilities; 9 | using Sirenix.Utilities.Editor; 10 | using System.Linq; 11 | using UnityEditor; 12 | using UnityEngine; 13 | 14 | [DrawerPriority(0.001, 0, 0)] 15 | public class FixBrokenUnityObjectWrapperDrawer : OdinValueDrawer, IDefinesGenericMenuItems 16 | where T : UnityEngine.Component 17 | { 18 | private const string AUTO_FIX_PREFS_KEY = "TemporarilyBrokenUnityObjectWrapperDrawer.autoFix"; 19 | 20 | private bool isBroken = false; 21 | private T realWrapperInstance; 22 | private bool allowSceneViewObjects; 23 | private static bool autoFix; 24 | 25 | protected override void Initialize() 26 | { 27 | this.allowSceneViewObjects = this.ValueEntry.Property.GetAttribute() == null; 28 | autoFix = EditorPrefs.HasKey(AUTO_FIX_PREFS_KEY); 29 | } 30 | 31 | protected override void DrawPropertyLayout(GUIContent label) 32 | { 33 | if (!(this.ValueEntry.ValueState == PropertyValueState.NullReference || this.ValueEntry.ValueState == PropertyValueState.ReferenceValueConflict)) 34 | { 35 | this.CallNextDrawer(label); 36 | return; 37 | } 38 | 39 | if (Event.current.type == EventType.Layout) 40 | { 41 | this.isBroken = false; 42 | var count = this.ValueEntry.ValueCount; 43 | for (int i = 0; i < count; i++) 44 | { 45 | var component = this.ValueEntry.Values[i]; 46 | 47 | if (ComponentIsBroken(component, ref this.realWrapperInstance)) 48 | { 49 | this.isBroken = true; 50 | break; 51 | } 52 | } 53 | 54 | if (this.isBroken && autoFix) 55 | { 56 | this.isBroken = false; 57 | 58 | for (int i = 0; i < this.ValueEntry.ValueCount; i++) 59 | { 60 | T fixedComponent = null; 61 | if (ComponentIsBroken(this.ValueEntry.Values[i], ref fixedComponent) && fixedComponent) 62 | { 63 | (this.ValueEntry as IValueEntryActualValueSetter).SetActualValue(i, fixedComponent); 64 | } 65 | } 66 | 67 | this.ValueEntry.Update(); 68 | } 69 | } 70 | 71 | if (!this.isBroken) 72 | { 73 | this.CallNextDrawer(label); 74 | return; 75 | } 76 | 77 | var rect = EditorGUILayout.GetControlRect(label != null); 78 | var btnRect = rect.AlignRight(20); 79 | var controlRect = rect.SetXMax(btnRect.xMin - 5); 80 | 81 | object newInstance = null; 82 | 83 | EditorGUI.BeginChangeCheck(); 84 | { 85 | if (this.ValueEntry.BaseValueType.IsInterface) 86 | { 87 | newInstance = SirenixEditorFields.PolymorphicObjectField(controlRect, 88 | label, 89 | this.realWrapperInstance, 90 | this.ValueEntry.BaseValueType, 91 | this.allowSceneViewObjects); 92 | } 93 | else 94 | { 95 | newInstance = SirenixEditorFields.UnityObjectField( 96 | controlRect, 97 | label, 98 | this.realWrapperInstance, 99 | this.ValueEntry.BaseValueType, 100 | this.allowSceneViewObjects) as Component; 101 | } 102 | } 103 | if (EditorGUI.EndChangeCheck()) 104 | { 105 | this.ValueEntry.WeakSmartValue = newInstance; 106 | } 107 | 108 | if (GUI.Button(btnRect, " ", EditorStyles.miniButton)) 109 | { 110 | var popup = new FixBrokenUnityObjectWrapperPopup(this.ValueEntry); 111 | OdinEditorWindow.InspectObjectInDropDown(popup, 300); 112 | } 113 | 114 | if (Event.current.type == EventType.Repaint) 115 | { 116 | GUI.DrawTexture(btnRect, EditorIcons.ConsoleWarnicon, ScaleMode.ScaleToFit); 117 | } 118 | } 119 | 120 | private static bool ComponentIsBroken(T component, ref T realInstance) 121 | { 122 | var uObj = component; 123 | var oObj = (object)uObj; 124 | 125 | if (oObj != null && uObj == null) 126 | { 127 | var instanceId = uObj.GetInstanceID(); 128 | if (AssetDatabase.Contains(instanceId)) 129 | { 130 | var path = AssetDatabase.GetAssetPath(instanceId); 131 | var realWrapper = AssetDatabase.LoadAllAssetsAtPath(path).FirstOrDefault(n => n.GetInstanceID() == instanceId) as T; 132 | if (realWrapper) 133 | { 134 | realInstance = realWrapper; 135 | return true; 136 | } 137 | } 138 | } 139 | 140 | return false; 141 | } 142 | 143 | public void PopulateGenericMenu(InspectorProperty property, GenericMenu genericMenu) 144 | { 145 | if (EditorPrefs.HasKey(AUTO_FIX_PREFS_KEY)) 146 | { 147 | genericMenu.AddItem(new GUIContent("Disable auto-fix of broken prefab instance references"), false, (x) => 148 | { 149 | EditorPrefs.DeleteKey(AUTO_FIX_PREFS_KEY); 150 | autoFix = false; 151 | }, null); 152 | } 153 | } 154 | 155 | [TypeInfoBox("This asset reference is temporarily broken until the next reload, because of an error in Unity where the C# wrapper object of a prefab asset is destroyed when changes are made to that prefab asset. This error has been reported to Unity.\n\nMeanwhile, Odin can fix this for you by getting a new, valid wrapper object from the asset database and replacing the broken wrapper instance with the new one.")] 156 | private class FixBrokenUnityObjectWrapperPopup 157 | { 158 | private IPropertyValueEntry valueEntry; 159 | 160 | public FixBrokenUnityObjectWrapperPopup(IPropertyValueEntry valueEntry) 161 | { 162 | this.valueEntry = valueEntry; 163 | } 164 | 165 | [HorizontalGroup, Button(ButtonSizes.Large)] 166 | public void FixItThisTime() 167 | { 168 | for (int i = 0; i < this.valueEntry.ValueCount; i++) 169 | { 170 | var localI = i; 171 | T fixedComponent = null; 172 | if (ComponentIsBroken(this.valueEntry.Values[i], ref fixedComponent) && fixedComponent) 173 | { 174 | this.valueEntry.Property.Tree.DelayActionUntilRepaint(() => 175 | { 176 | (this.valueEntry as IValueEntryActualValueSetter).SetActualValue(localI, fixedComponent); 177 | }); 178 | } 179 | } 180 | 181 | EditorApplication.delayCall += GUIHelper.CurrentWindow.Close; 182 | } 183 | 184 | [HorizontalGroup, Button(ButtonSizes.Large)] 185 | public void FixItAlways() 186 | { 187 | EditorPrefs.SetBool(AUTO_FIX_PREFS_KEY, true); 188 | autoFix = true; 189 | EditorApplication.delayCall += GUIHelper.CurrentWindow.Close; 190 | } 191 | } 192 | } 193 | } 194 | 195 | #endif -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/FixBrokenUnityObjectWrapperDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 903c11a9cf3ba6f4e8c653443c6893a0 3 | timeCreated: 1546967292 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/SyncListDrawer.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Sirenix IVS. All rights reserved. 4 | // 5 | //----------------------------------------------------------------------- 6 | 7 | #if !UNITY_2019_1_OR_NEWER 8 | 9 | namespace Sirenix.OdinInspector.Editor.Drawers 10 | { 11 | using Sirenix.Utilities.Editor; 12 | using UnityEditor; 13 | using UnityEngine; 14 | using UnityEngine.Networking; 15 | 16 | /// 17 | /// SyncList property drawer. 18 | /// 19 | [DrawerPriority(0, 0, 2)] 20 | #pragma warning disable 0618 // Type or member is obsolete 21 | public class SyncListDrawer : OdinValueDrawer where TList : SyncList 22 | #pragma warning restore 0618 // Type or member is obsolete 23 | { 24 | /// 25 | /// Draws the property. 26 | /// 27 | protected override void DrawPropertyLayout(GUIContent label) 28 | { 29 | var entry = this.ValueEntry; 30 | var property = entry.Property; 31 | int minCount = int.MaxValue; 32 | int maxCount = 0; 33 | 34 | PropertyContext isVisible; 35 | 36 | if (entry.Context.Get(this, "is_visible", out isVisible)) 37 | { 38 | isVisible.Value = GeneralDrawerConfig.Instance.OpenListsByDefault; 39 | } 40 | 41 | for (int i = 0; i < entry.ValueCount; i++) 42 | { 43 | if (entry.Values[i].Count > maxCount) 44 | { 45 | maxCount = entry.Values[i].Count; 46 | } 47 | 48 | if (entry.Values[i].Count < minCount) 49 | { 50 | minCount = entry.Values[i].Count; 51 | } 52 | } 53 | 54 | SirenixEditorGUI.BeginHorizontalToolbar(); 55 | isVisible.Value = SirenixEditorGUI.Foldout(isVisible.Value, GUIHelper.TempContent("SyncList " + label.text + " [" + typeof(TList).Name + "]")); 56 | EditorGUILayout.LabelField(GUIHelper.TempContent(minCount == maxCount ? (minCount == 0 ? "Empty" : minCount + " items") : minCount + " (" + maxCount + ") items"), SirenixGUIStyles.RightAlignedGreyMiniLabel); 57 | SirenixEditorGUI.EndHorizontalToolbar(); 58 | 59 | if (SirenixEditorGUI.BeginFadeGroup(isVisible, isVisible.Value)) 60 | { 61 | GUIHelper.PushGUIEnabled(false); 62 | SirenixEditorGUI.BeginVerticalList(); 63 | { 64 | var elementLabel = new GUIContent(); 65 | for (int i = 0; i < maxCount; i++) 66 | { 67 | SirenixEditorGUI.BeginListItem(); 68 | elementLabel.text = "Item " + i; 69 | 70 | if (i < minCount) 71 | { 72 | property.Children[i].Draw(elementLabel); 73 | } 74 | else 75 | { 76 | EditorGUILayout.LabelField(elementLabel, SirenixEditorGUI.MixedValueDashChar); 77 | } 78 | SirenixEditorGUI.EndListItem(); 79 | } 80 | } 81 | SirenixEditorGUI.EndVerticalList(); 82 | GUIHelper.PopGUIEnabled(); 83 | } 84 | SirenixEditorGUI.EndFadeGroup(); 85 | } 86 | } 87 | } 88 | 89 | #endif // UNITY_2019_1_OR_NEWER -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/SyncListDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 047c7e4af9c032a428c12b7c564a6593 3 | timeCreated: 1545410615 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/SyncVarAttributeDrawer.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Sirenix IVS. All rights reserved. 4 | // 5 | //----------------------------------------------------------------------- 6 | 7 | #if !UNITY_2019_1_OR_NEWER 8 | #pragma warning disable 0618 9 | 10 | namespace Sirenix.OdinInspector.Editor.Drawers 11 | { 12 | using Sirenix.Utilities; 13 | using UnityEditor; 14 | using UnityEngine; 15 | using UnityEngine.Networking; 16 | 17 | /// 18 | /// SyncVar attribute drawer. 19 | /// 20 | public class SyncVarAttributeDrawer : OdinAttributeDrawer 21 | { 22 | /// 23 | /// Draws the property. 24 | /// 25 | protected override void DrawPropertyLayout(GUIContent label) 26 | { 27 | GUILayout.BeginHorizontal(); 28 | { 29 | GUILayout.BeginVertical(); 30 | { 31 | this.CallNextDrawer(label); 32 | } 33 | GUILayout.EndVertical(); 34 | 35 | GUILayout.Label("SyncVar", EditorStyles.miniLabel, GUILayoutOptions.Width(52f)); 36 | } 37 | GUILayout.EndHorizontal(); 38 | } 39 | } 40 | } 41 | 42 | #endif // UNITY_2019_1_OR_NEWER -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/SyncVarAttributeDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bda5b631304c8cb4485d60ef8bda618b 3 | timeCreated: 1545410615 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/Vector2IntMinMaxAttributeDrawer.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_2017_2_OR_NEWER 2 | //----------------------------------------------------------------------- 3 | // 4 | // Copyright (c) Sirenix IVS. All rights reserved. 5 | // 6 | //----------------------------------------------------------------------- 7 | 8 | namespace Sirenix.OdinInspector.Editor.Drawers 9 | { 10 | using Sirenix.OdinInspector; 11 | using Sirenix.OdinInspector.Editor; 12 | using Sirenix.Utilities; 13 | using Sirenix.Utilities.Editor; 14 | using System.Reflection; 15 | using UnityEditor; 16 | using UnityEngine; 17 | 18 | /// 19 | /// Draws Vector2Int properties marked with . 20 | /// 21 | public class Vector2IntMinMaxAttributeDrawer : OdinAttributeDrawer 22 | { 23 | private string errorMessage; 24 | 25 | private InspectorPropertyValueGetter intMinGetter; 26 | private InspectorPropertyValueGetter floatMinGetter; 27 | 28 | private InspectorPropertyValueGetter intMaxGetter; 29 | private InspectorPropertyValueGetter floatMaxGetter; 30 | 31 | private InspectorPropertyValueGetter vector2IntMinMaxGetter; 32 | 33 | /// 34 | /// Initializes the drawer by resolving any optional references to members for min/max value. 35 | /// 36 | protected override void Initialize() 37 | { 38 | MemberInfo member; 39 | 40 | // Min member reference. 41 | if (this.Attribute.MinMember != null) 42 | { 43 | if (MemberFinder.Start(this.Property.ParentType) 44 | .IsNamed(this.Attribute.MinMember) 45 | .HasNoParameters() 46 | .TryGetMember(out member, out this.errorMessage)) 47 | { 48 | var type = member.GetReturnType(); 49 | if (type == typeof(int)) 50 | { 51 | this.intMinGetter = new InspectorPropertyValueGetter(this.Property, this.Attribute.MinMember); 52 | } 53 | else if (type == typeof(float)) 54 | { 55 | this.floatMinGetter = new InspectorPropertyValueGetter(this.Property, this.Attribute.MinMember); 56 | } 57 | } 58 | } 59 | 60 | // Max member reference. 61 | if (this.Attribute.MaxMember != null) 62 | { 63 | if (MemberFinder.Start(this.Property.ParentType) 64 | .IsNamed(this.Attribute.MaxMember) 65 | .HasNoParameters() 66 | .TryGetMember(out member, out this.errorMessage)) 67 | { 68 | var type = member.GetReturnType(); 69 | if (type == typeof(int)) 70 | { 71 | this.intMaxGetter = new InspectorPropertyValueGetter(this.Property, this.Attribute.MaxMember); 72 | } 73 | else if (type == typeof(float)) 74 | { 75 | this.floatMaxGetter = new InspectorPropertyValueGetter(this.Property, this.Attribute.MaxMember); 76 | } 77 | } 78 | } 79 | 80 | // Min max member reference. 81 | if (this.Attribute.MinMaxMember != null) 82 | { 83 | this.vector2IntMinMaxGetter = new InspectorPropertyValueGetter(this.Property, this.Attribute.MinMaxMember); 84 | if (this.errorMessage != null) 85 | { 86 | this.errorMessage = this.vector2IntMinMaxGetter.ErrorMessage; 87 | } 88 | } 89 | } 90 | 91 | /// 92 | /// Draws the property. 93 | /// 94 | protected override void DrawPropertyLayout(GUIContent label) 95 | { 96 | // Get the range of the slider from the attribute or from member references. 97 | Vector2 range; 98 | if (this.vector2IntMinMaxGetter != null && this.errorMessage == null) 99 | { 100 | range = (Vector2)this.vector2IntMinMaxGetter.GetValue(); 101 | } 102 | else 103 | { 104 | if (this.intMinGetter != null) 105 | { 106 | range.x = this.intMinGetter.GetValue(); 107 | } 108 | else if (this.floatMinGetter != null) 109 | { 110 | range.x = this.floatMinGetter.GetValue(); 111 | } 112 | else 113 | { 114 | range.x = this.Attribute.MinValue; 115 | } 116 | 117 | if (this.intMaxGetter != null) 118 | { 119 | range.y = this.intMaxGetter.GetValue(); 120 | } 121 | else if (this.floatMaxGetter != null) 122 | { 123 | range.y = this.floatMaxGetter.GetValue(); 124 | } 125 | else 126 | { 127 | range.y = this.Attribute.MaxValue; 128 | } 129 | } 130 | 131 | // Display evt. error message. 132 | if (this.errorMessage != null) 133 | { 134 | SirenixEditorGUI.ErrorMessageBox(this.errorMessage); 135 | } 136 | 137 | EditorGUI.BeginChangeCheck(); 138 | Vector2 value = SirenixEditorFields.MinMaxSlider(label, (Vector2)this.ValueEntry.SmartValue, range, this.Attribute.ShowFields); 139 | if (EditorGUI.EndChangeCheck()) 140 | { 141 | this.ValueEntry.SmartValue = new Vector2Int((int)value.x, (int)value.y); 142 | } 143 | } 144 | } 145 | } 146 | #endif -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/Vector2IntMinMaxAttributeDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30393ed590c8fb64da0612e8a2fad8a4 3 | timeCreated: 1532688697 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/VectorIntDrawers.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_2017_2_OR_NEWER 2 | 3 | //----------------------------------------------------------------------- 4 | // 5 | // Copyright (c) Sirenix IVS. All rights reserved. 6 | // 7 | //----------------------------------------------------------------------- 8 | 9 | namespace Sirenix.OdinInspector.Editor.Drawers 10 | { 11 | using Utilities.Editor; 12 | using UnityEditor; 13 | using UnityEngine; 14 | 15 | /// 16 | /// Vector2Int proprety drawer. 17 | /// 18 | public sealed class Vector2IntDrawer : OdinValueDrawer, IDefinesGenericMenuItems 19 | { 20 | /// 21 | /// Draws the property. 22 | /// 23 | protected override void DrawPropertyLayout(GUIContent label) 24 | { 25 | Rect labelRect; 26 | var contentRect = SirenixEditorGUI.BeginHorizontalPropertyLayout(label, out labelRect); 27 | { 28 | EditorGUI.BeginChangeCheck(); 29 | var val = SirenixEditorFields.VectorPrefixSlideRect(labelRect, (Vector2)this.ValueEntry.SmartValue); 30 | if (EditorGUI.EndChangeCheck()) 31 | { 32 | this.ValueEntry.SmartValue = new Vector2Int((int)val.x, (int)val.y); 33 | } 34 | 35 | var showLabels = SirenixEditorFields.ResponsiveVectorComponentFields && contentRect.width >= 185; 36 | GUIHelper.PushLabelWidth(SirenixEditorFields.SingleLetterStructLabelWidth); 37 | this.ValueEntry.Property.Children[0].Draw(showLabels ? GUIHelper.TempContent("X") : null); 38 | this.ValueEntry.Property.Children[1].Draw(showLabels ? GUIHelper.TempContent("Y") : null); 39 | GUIHelper.PopLabelWidth(); 40 | 41 | } 42 | SirenixEditorGUI.EndHorizontalPropertyLayout(); 43 | } 44 | 45 | /// 46 | /// Populates the generic menu for the property. 47 | /// 48 | public void PopulateGenericMenu(InspectorProperty property, GenericMenu genericMenu) 49 | { 50 | Vector2Int value = (Vector2Int)property.ValueEntry.WeakSmartValue; 51 | 52 | if (genericMenu.GetItemCount() > 0) 53 | { 54 | genericMenu.AddSeparator(""); 55 | } 56 | genericMenu.AddItem(new GUIContent("Zero", "Set the vector to (0, 0)"), value == Vector2Int.zero, () => SetVector(property, Vector2Int.zero)); 57 | genericMenu.AddItem(new GUIContent("One", "Set the vector to (1, 1)"), value == Vector2Int.one, () => SetVector(property, Vector2Int.one)); 58 | genericMenu.AddSeparator(""); 59 | genericMenu.AddItem(new GUIContent("Right", "Set the vector to (1, 0)"), value == Vector2Int.right, () => SetVector(property, Vector2Int.right)); 60 | genericMenu.AddItem(new GUIContent("Left", "Set the vector to (-1, 0)"), value == Vector2Int.left, () => SetVector(property, Vector2Int.left)); 61 | genericMenu.AddItem(new GUIContent("Up", "Set the vector to (0, 1)"), value == Vector2Int.up, () => SetVector(property, Vector2Int.up)); 62 | genericMenu.AddItem(new GUIContent("Down", "Set the vector to (0, -1)"), value == Vector2Int.down, () => SetVector(property, Vector2Int.down)); 63 | } 64 | 65 | private void SetVector(InspectorProperty property, Vector2Int value) 66 | { 67 | property.Tree.DelayActionUntilRepaint(() => 68 | { 69 | for (int i = 0; i < property.ValueEntry.ValueCount; i++) 70 | { 71 | property.ValueEntry.WeakValues[i] = value; 72 | } 73 | }); 74 | } 75 | } 76 | 77 | /// 78 | /// Vector3Int property drawer. 79 | /// 80 | public sealed class Vector3IntDrawer : OdinValueDrawer, IDefinesGenericMenuItems 81 | { 82 | /// 83 | /// Draws the property. 84 | /// 85 | protected override void DrawPropertyLayout(GUIContent label) 86 | { 87 | Rect labelRect; 88 | var contentRect = SirenixEditorGUI.BeginHorizontalPropertyLayout(label, out labelRect); 89 | { 90 | EditorGUI.BeginChangeCheck(); 91 | var val = SirenixEditorFields.VectorPrefixSlideRect(labelRect, (Vector3)this.ValueEntry.SmartValue); 92 | if (EditorGUI.EndChangeCheck()) 93 | { 94 | this.ValueEntry.SmartValue = new Vector3Int((int)val.x, (int)val.y, (int)val.z); 95 | } 96 | 97 | var showLabels = SirenixEditorFields.ResponsiveVectorComponentFields && contentRect.width >= 185; 98 | GUIHelper.PushLabelWidth(SirenixEditorFields.SingleLetterStructLabelWidth); 99 | this.ValueEntry.Property.Children[0].Draw(showLabels ? GUIHelper.TempContent("X") : null); 100 | this.ValueEntry.Property.Children[1].Draw(showLabels ? GUIHelper.TempContent("Y") : null); 101 | this.ValueEntry.Property.Children[2].Draw(showLabels ? GUIHelper.TempContent("Z") : null); 102 | GUIHelper.PopLabelWidth(); 103 | 104 | } 105 | SirenixEditorGUI.EndHorizontalPropertyLayout(); 106 | } 107 | 108 | /// 109 | /// Populates the generic menu for the property. 110 | /// 111 | public void PopulateGenericMenu(InspectorProperty property, GenericMenu genericMenu) 112 | { 113 | Vector3Int value = (Vector3Int)property.ValueEntry.WeakSmartValue; 114 | 115 | if (genericMenu.GetItemCount() > 0) 116 | { 117 | genericMenu.AddSeparator(""); 118 | } 119 | 120 | genericMenu.AddItem(new GUIContent("Zero", "Set the vector to (0, 0, 0)"), value == Vector3Int.zero, () => SetVector(property, Vector3Int.zero)); 121 | genericMenu.AddItem(new GUIContent("One", "Set the vector to (1, 1, 1)"), value == Vector3Int.one, () => SetVector(property, Vector3Int.one)); 122 | genericMenu.AddSeparator(""); 123 | genericMenu.AddItem(new GUIContent("Right", "Set the vector to (1, 0, 0)"), value == Vector3Int.right, () => SetVector(property, Vector3Int.right)); 124 | genericMenu.AddItem(new GUIContent("Left", "Set the vector to (-1, 0, 0)"), value == Vector3Int.left, () => SetVector(property, Vector3Int.left)); 125 | genericMenu.AddItem(new GUIContent("Up", "Set the vector to (0, 1, 0)"), value == Vector3Int.up, () => SetVector(property, Vector3Int.up)); 126 | genericMenu.AddItem(new GUIContent("Down", "Set the vector to (0, -1, 0)"), value == Vector3Int.down, () => SetVector(property, Vector3Int.down)); 127 | genericMenu.AddItem(new GUIContent("Forward", "Set the vector property to (0, 0, 1)"), value == new Vector3Int(0, 0, 1), () => SetVector(property, new Vector3Int(0, 0, 1))); 128 | genericMenu.AddItem(new GUIContent("Back", "Set the vector property to (0, 0, -1)"), value == new Vector3Int(0, 0, -1), () => SetVector(property, new Vector3Int(0, 0, -1))); 129 | } 130 | 131 | private void SetVector(InspectorProperty property, Vector3Int value) 132 | { 133 | property.Tree.DelayActionUntilRepaint(() => 134 | { 135 | property.ValueEntry.WeakSmartValue = value; 136 | }); 137 | } 138 | } 139 | } 140 | 141 | #endif -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/VectorIntDrawers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2fc48d59edff00f49b8ae717c776ff45 3 | timeCreated: 1520596090 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/VectorIntPropertyResolvers.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_2017_2_OR_NEWER 2 | 3 | //----------------------------------------------------------------------- 4 | // 5 | // Copyright (c) Sirenix IVS. All rights reserved. 6 | // 7 | //----------------------------------------------------------------------- 8 | 9 | namespace Sirenix.OdinInspector.Editor.Drawers 10 | { 11 | using UnityEngine; 12 | 13 | public sealed class Vector2IntResolver : BaseMemberPropertyResolver 14 | { 15 | protected override InspectorPropertyInfo[] GetPropertyInfos() 16 | { 17 | return new InspectorPropertyInfo[] 18 | { 19 | InspectorPropertyInfo.CreateValue("x", 0, this.Property.ValueEntry.SerializationBackend, 20 | new GetterSetter( 21 | getter: (ref Vector2Int vec) => vec.x, 22 | setter: (ref Vector2Int vec, int value) => vec.x = value)), 23 | InspectorPropertyInfo.CreateValue("y", 0, this.Property.ValueEntry.SerializationBackend, 24 | new GetterSetter( 25 | getter: (ref Vector2Int vec) => vec.y, 26 | setter: (ref Vector2Int vec, int value) => vec.y = value)), 27 | }; 28 | } 29 | } 30 | 31 | public sealed class Vector3IntResolver : BaseMemberPropertyResolver 32 | { 33 | protected override InspectorPropertyInfo[] GetPropertyInfos() 34 | { 35 | return new InspectorPropertyInfo[] 36 | { 37 | InspectorPropertyInfo.CreateValue("x", 0, this.Property.ValueEntry.SerializationBackend, 38 | new GetterSetter( 39 | getter: (ref Vector3Int vec) => vec.x, 40 | setter: (ref Vector3Int vec, int value) => vec.x = value)), 41 | InspectorPropertyInfo.CreateValue("y", 0, this.Property.ValueEntry.SerializationBackend, 42 | new GetterSetter( 43 | getter: (ref Vector3Int vec) => vec.y, 44 | setter: (ref Vector3Int vec, int value) => vec.y = value)), 45 | InspectorPropertyInfo.CreateValue("z", 0, this.Property.ValueEntry.SerializationBackend, 46 | new GetterSetter( 47 | getter: (ref Vector3Int vec) => vec.z, 48 | setter: (ref Vector3Int vec, int value) => vec.z = value)), 49 | }; 50 | } 51 | } 52 | } 53 | 54 | #endif -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/Editor/VectorIntPropertyResolvers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 435323e396d85494daeb5278528fe138 3 | timeCreated: 1539340561 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/SerializedNetworkBehaviour.cs: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) 2018 Sirenix IVS 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // http://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | // 17 | //----------------------------------------------------------------------- 18 | 19 | #if !UNITY_2019_1_OR_NEWER 20 | #pragma warning disable 0618 21 | 22 | namespace Sirenix.OdinInspector 23 | { 24 | using Sirenix.Serialization; 25 | using UnityEngine; 26 | using UnityEngine.Networking; 27 | 28 | /// 29 | /// A Unity NetworkBehaviour which is serialized by the Sirenix serialization system. 30 | /// Please note that Odin's custom serialization only works for non-synced variables - [SyncVar] and SyncLists still have the same limitations. 31 | /// 32 | [ShowOdinSerializedPropertiesInInspector] 33 | public abstract class SerializedNetworkBehaviour : NetworkBehaviour, ISerializationCallbackReceiver, ISupportsPrefabSerialization 34 | { 35 | [SerializeField, HideInInspector] 36 | private SerializationData serializationData; 37 | 38 | SerializationData ISupportsPrefabSerialization.SerializationData { get { return this.serializationData; } set { this.serializationData = value; } } 39 | 40 | void ISerializationCallbackReceiver.OnAfterDeserialize() 41 | { 42 | UnitySerializationUtility.DeserializeUnityObject(this, ref this.serializationData); 43 | this.OnAfterDeserialize(); 44 | } 45 | 46 | void ISerializationCallbackReceiver.OnBeforeSerialize() 47 | { 48 | UnitySerializationUtility.SerializeUnityObject(this, ref this.serializationData); 49 | this.OnBeforeSerialize(); 50 | } 51 | 52 | /// 53 | /// Invoked after deserialization has taken place. 54 | /// 55 | protected virtual void OnAfterDeserialize() 56 | { 57 | } 58 | 59 | /// 60 | /// Invoked before serialization has taken place. 61 | /// 62 | protected virtual void OnBeforeSerialize() 63 | { 64 | } 65 | 66 | #if UNITY_EDITOR 67 | 68 | [HideInTables] 69 | [OnInspectorGUI, PropertyOrder(int.MinValue)] 70 | private void InternalOnInspectorGUI() 71 | { 72 | EditorOnlyModeConfigUtility.InternalOnInspectorGUI(this.GetType()); 73 | } 74 | 75 | #endif 76 | } 77 | } 78 | 79 | #endif // UNITY_2019_1_OR_NEWER -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/SerializedNetworkBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d496f720527c984b8acc75a238bbd79 3 | timeCreated: 1545412221 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/VectorIntFormatters.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_2017_2_OR_NEWER 2 | 3 | //----------------------------------------------------------------------- 4 | // 5 | // Copyright (c) Sirenix IVS. All rights reserved. 6 | // 7 | //----------------------------------------------------------------------- 8 | 9 | [assembly: Sirenix.Serialization.RegisterFormatter(typeof(Sirenix.Serialization.Vector2IntFormatter))] 10 | [assembly: Sirenix.Serialization.RegisterFormatter(typeof(Sirenix.Serialization.Vector3IntFormatter))] 11 | namespace Sirenix.Serialization 12 | { 13 | using UnityEngine; 14 | 15 | /// 16 | /// Custom formatter for the type. 17 | /// 18 | /// 19 | public class Vector2IntFormatter : MinimalBaseFormatter 20 | { 21 | private static readonly Serializer Serializer = Serialization.Serializer.Get(); 22 | 23 | /// 24 | /// Reads into the specified value using the specified reader. 25 | /// 26 | /// The value to read into. 27 | /// The reader to use. 28 | protected override void Read(ref Vector2Int value, IDataReader reader) 29 | { 30 | value.x = Vector2IntFormatter.Serializer.ReadValue(reader); 31 | value.y = Vector2IntFormatter.Serializer.ReadValue(reader); 32 | } 33 | 34 | /// 35 | /// Writes from the specified value using the specified writer. 36 | /// 37 | /// The value to write from. 38 | /// The writer to use. 39 | protected override void Write(ref Vector2Int value, IDataWriter writer) 40 | { 41 | Vector2IntFormatter.Serializer.WriteValue(value.x, writer); 42 | Vector2IntFormatter.Serializer.WriteValue(value.y, writer); 43 | } 44 | } 45 | 46 | /// 47 | /// Custom formatter for the type. 48 | /// 49 | /// 50 | public class Vector3IntFormatter : MinimalBaseFormatter 51 | { 52 | private static readonly Serializer Serializer = Serialization.Serializer.Get(); 53 | 54 | /// 55 | /// Reads into the specified value using the specified reader. 56 | /// 57 | /// The value to read into. 58 | /// The reader to use. 59 | protected override void Read(ref Vector3Int value, IDataReader reader) 60 | { 61 | value.x = Vector3IntFormatter.Serializer.ReadValue(reader); 62 | value.y = Vector3IntFormatter.Serializer.ReadValue(reader); 63 | value.z = Vector3IntFormatter.Serializer.ReadValue(reader); 64 | } 65 | 66 | /// 67 | /// Writes from the specified value using the specified writer. 68 | /// 69 | /// The value to write from. 70 | /// The writer to use. 71 | protected override void Write(ref Vector3Int value, IDataWriter writer) 72 | { 73 | Vector3IntFormatter.Serializer.WriteValue(value.x, writer); 74 | Vector3IntFormatter.Serializer.WriteValue(value.y, writer); 75 | Vector3IntFormatter.Serializer.WriteValue(value.z, writer); 76 | } 77 | } 78 | } 79 | 80 | #endif -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Odin Inspector/Scripts/VectorIntFormatters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2f1c424a60dfbd4fa331449baeac351 3 | timeCreated: 1520596090 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Readme.txt: -------------------------------------------------------------------------------- 1 | ------------------------------------ Getting Started ------------------------------------ 2 | 3 | Open up the Getting Started guide from "Tools > Odin Inspector > Getting Started." 4 | 5 | 6 | ------------------------------------- Helpful Links ------------------------------------- 7 | 8 | Manual: https://sirenix.net/odininspector/manual/introduction/getting-started 9 | API Documentaion: https://sirenix.net/odininspector/documentation 10 | FAQ: https://sirenix.net/odininspector/faq 11 | Roadmap: https://sirenix.net/odininspector/roadmap 12 | Release Notes: https://sirenix.net/odininspector/releasenotes 13 | Issue Tracker: https://bitbucket.org/sirenix/odin-inspector 14 | 15 | 16 | --------------------------------- Community and Support --------------------------------- 17 | 18 | If you have any issues, suggestions or want advice, then you're more than welcome 19 | to join us on Discord, or reach out to us by any other means. 20 | 21 | Support: https://sirenix.net/support 22 | Community Addons: https://devdog.io/unity-assets/odin-inspector-and-serializer/community-bonus/ 23 | Discord: https://discord.gg/AgDmStu 24 | 25 | 26 | ---------------------------------------Thanks you!--------------------------------------- 27 | 28 | We really hope you like using Odin. Be sure to leave a review on the Asset Store, 29 | that helps us out a lot! 30 | 31 | Leave a review: https://assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041 32 | 33 | 34 | Odin Inspector is published by Devdog and developed by Sirenix. 35 | 36 | Devdog: https://devdog.io 37 | Sirenix: Https://sirenix.net -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e957a9e8b4f4bce4b8a34e504a8c39d7 3 | timeCreated: 1533815770 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Source.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f4a19cdf92ee8142bbf7a960080e7b8 3 | folderAsset: yes 4 | timeCreated: 1549460241 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Source/Source.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Plugins/Sirenix/Source/Source.zip -------------------------------------------------------------------------------- /Assets/Plugins/Sirenix/Source/Source.zip.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74ba0d0cbd75b16449c963267af7b442 3 | timeCreated: 1549459785 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts_w.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 048c74e1759c89f40be6dbaeecc0c6a8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts_w/JasonTest.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: SetMap.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | 7 | using Sirenix.OdinInspector; 8 | using System; 9 | using System.Collections; 10 | using System.Collections.Generic; 11 | using System.IO; 12 | using System.Runtime.Serialization.Formatters.Binary; 13 | using System.Text; 14 | using UnityEngine; 15 | 16 | [Serializable] 17 | public class GameStatus 18 | { 19 | public string gameName; 20 | public string version; 21 | public bool isTure; 22 | public bool isUseHardWare; 23 | public List refencenes; 24 | } 25 | 26 | [Serializable] 27 | public class refencenes 28 | { 29 | public string name; 30 | public int id; 31 | } 32 | 33 | 34 | public class JasonTest : MonoBehaviour 35 | { 36 | 37 | GameStatus _gameStatus = new GameStatus(); 38 | 39 | GameStatus inputDate 40 | { 41 | get 42 | { 43 | return _gameStatus; 44 | } 45 | set 46 | { 47 | _gameStatus = value; 48 | } 49 | } 50 | 51 | string path; 52 | bool truename; 53 | 54 | void Start() 55 | { 56 | path = Application.dataPath + "/Resources/inputdate.json"; 57 | 58 | if (LoadFromFile() != null) 59 | inputDate = LoadFromFile(); 60 | 61 | foreach (var v in inputDate.refencenes) 62 | { 63 | Debug.Log(v.id + " " + v.name); 64 | } 65 | } 66 | 67 | /// 68 | /// 读取Jason并返回该类型 69 | /// 70 | /// 71 | GameStatus LoadFromFile() 72 | { 73 | if (!File.Exists(path)) 74 | return null; 75 | 76 | StreamReader sr = new StreamReader(path); 77 | 78 | if (sr == null) 79 | return null; 80 | 81 | string json = sr.ReadToEnd(); 82 | 83 | if (json.Length > 0) 84 | return JsonUtility.FromJson(json); 85 | 86 | return null; 87 | } 88 | 89 | /// 90 | /// 退出时写入 91 | /// 92 | void OnApplicationQuit() 93 | { 94 | string json = JsonUtility.ToJson(inputDate, true); 95 | File.WriteAllText(path, json, Encoding.UTF8); 96 | } 97 | 98 | /// 99 | /// 更新值 100 | /// 101 | [Button] 102 | public void RangNumber() 103 | { 104 | path = Application.dataPath + "/Resources/inputdate.json"; 105 | GameStatus ide = new GameStatus(); 106 | 107 | 108 | if (truename) 109 | truename = false; 110 | else 111 | truename = true; 112 | 113 | 114 | List _refencenes=new List(); 115 | refencenes refencenes_0 = new refencenes(); 116 | refencenes_0.id = 0; 117 | refencenes_0.name = "DK"; 118 | _refencenes.Add(refencenes_0); 119 | refencenes refencenes_1 = new refencenes(); 120 | refencenes_1.id = 1; 121 | refencenes_1.name = "DK01"; 122 | _refencenes.Add(refencenes_1); 123 | 124 | ide.gameName = truename ? "AdvancePikachu" : "进击的皮卡丘"; 125 | ide.isTure = truename; 126 | ide.refencenes = _refencenes; 127 | Debug.Log(ide.gameName+ " "+ide.isTure); 128 | inputDate = ide; 129 | 130 | string json = JsonUtility.ToJson(ide, true); 131 | File.WriteAllText(path, json, Encoding.UTF8); 132 | 133 | } 134 | } 135 | 136 | 137 | /* 138 | 139 | { 140 | "library": 141 | [{ 142 | "materialManufacturer": "11", 143 | "regularLabelling": "", 144 | "sheetLabelling": "" 145 | }, 146 | { 147 | "materialManufacturer": "fqwfewq", 148 | "regularLabelling": "", 149 | "sheetLabelling": "" 150 | } 151 | ] 152 | } 153 | 154 | 155 | */ 156 | -------------------------------------------------------------------------------- /Assets/Scripts_w/JasonTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ed15369d294ca245881c5ae645408c0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts_w/LitJsonTest.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: LitJsonTest.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | using LitJson; 7 | using Sirenix.OdinInspector; 8 | using System; 9 | using System.Collections; 10 | using System.Collections.Generic; 11 | using System.IO; 12 | using System.Net; 13 | using System.Text; 14 | using UnityEngine; 15 | 16 | //一个材料信息,包含如下成员 17 | [Serializable] 18 | public class MaterialItem 19 | { 20 | //public static List materialList = new List(); 21 | public string materialManufacturer; 22 | public string regularLabelling; 23 | public string sheetLabelling; 24 | } 25 | 26 | public class LitJsonTest : MonoBehaviour { 27 | 28 | 29 | public List materialList = new List(); 30 | 31 | void Start () { 32 | //接口url 33 | //string url = " http://192.168.42.46/Windchill/servlet/Navigation/MaterialLibraryServlet "; 34 | string url = Application.dataPath + "/Resources/inputdate.json"; 35 | //签名 36 | string restName = "Authorization"; 37 | //认证 38 | string restValue = "Basic d2NhZG1pbjp3Y2FkbWlu"; 39 | //传入参数,读取Json字符串 40 | //GetJsonData(url, restName, restValue); 41 | GetJsonData(url); 42 | } 43 | /// 44 | /// Json解析的方法封装 45 | /// 46 | /// 传入的接口Url 47 | /// 签名 48 | /// 认证 49 | public void GetJsonData(string tmpUrlI, string tmpKeyName, string tmpKeyValue) 50 | { 51 | //获取请求 52 | HttpWebRequest request = WebRequest.Create(tmpUrlI) as HttpWebRequest; 53 | //加入请求头 54 | request.Headers.Add(tmpKeyName, tmpKeyValue); 55 | using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) 56 | { 57 | //获取响应数据流 58 | StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8); 59 | //获得json字符串 60 | string jsonstr = reader.ReadLine(); 61 | JsonData jsonData = JsonMapper.ToObject(jsonstr); 62 | if (jsonData != null) 63 | { 64 | //取library下键值字典 65 | JsonData jsonDicList = jsonData["library"]; 66 | foreach (JsonData item in jsonDicList) 67 | { 68 | MaterialItem JO = new MaterialItem(); 69 | JO.materialManufacturer = item["materialManufacturer"].ToString(); 70 | JO.regularLabelling = item["regularLabelling"].ToString(); 71 | JO.sheetLabelling = item["sheetLabelling"].ToString(); 72 | //MaterialItem.materialList.Add(JO); 73 | } 74 | } 75 | } 76 | } 77 | 78 | [Button] 79 | void set() 80 | { 81 | string url = Application.dataPath + "/Resources/inputdate.json"; 82 | 83 | GetJsonData(url); 84 | } 85 | 86 | public void GetJsonData(string tmpUrlI) 87 | { 88 | StreamReader reader = new StreamReader(tmpUrlI, Encoding.UTF8); 89 | Debug.Log(tmpUrlI); 90 | string jsonstr = reader.ReadToEnd(); 91 | Debug.Log(jsonstr); 92 | JsonData jsonData = JsonMapper.ToObject(jsonstr); 93 | if (jsonData != null) 94 | { 95 | //取library下键值字典 96 | JsonData jsonDicList = jsonData["library"]; 97 | foreach (JsonData item in jsonDicList) 98 | { 99 | MaterialItem JO = new MaterialItem(); 100 | JO.materialManufacturer = item["materialManufacturer"].ToString(); 101 | JO.regularLabelling = item["regularLabelling"].ToString(); 102 | JO.sheetLabelling = item["sheetLabelling"].ToString(); 103 | materialList.Add(JO); 104 | } 105 | Debug.Log(materialList.Count); 106 | } 107 | } 108 | } 109 | /* 110 | { 111 | "library": 112 | [{ 113 | "materialManufacturer": "11", 114 | "regularLabelling": "", 115 | "sheetLabelling": "" 116 | }, 117 | { 118 | "materialManufacturer": "fqwfewq", 119 | "regularLabelling": "", 120 | "sheetLabelling": "" 121 | } 122 | ] 123 | } 124 | 125 | 126 | 127 | */ 128 | -------------------------------------------------------------------------------- /Assets/Scripts_w/LitJsonTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 085bf7605d1744e44a9c771cc82db55d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SpriteTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f639b0ba4a40b842af9e024bfb5ac31 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2684c7cc279442f4fa144aa9a548bdae 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/AES加密与解密.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 280871e08e1e0b144a7597b9e2e17a67 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/AES加密与解密/AES.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: AES.cs 3 | // - CreateTime: 2021.1.15 4 | // - Description: AES加密算法,可实现加密解密功能(平台的适配性待验证) 5 | //====================================================== 6 | using System; 7 | using System.Collections; 8 | using System.Collections.Generic; 9 | using System.IO; 10 | using System.Security.Cryptography; 11 | using System.Text; 12 | using UnityEngine; 13 | 14 | public class AES : MonoBehaviour { 15 | 16 | 17 | void Start () { 18 | string user = Encrypt("admin"); 19 | string pass = Encrypt("666666"); 20 | Debug.Log("密文 "+user+" **************** "+ pass); 21 | string GetUser = Decrypt(user); 22 | string GetPass = Decrypt(pass); 23 | Debug.Log("明文 " + GetUser + " **************** " + GetPass); 24 | } 25 | 26 | /// 27 | /// 获取密钥 28 | /// 29 | private static string Key 30 | { 31 | get { return @"qO[NB]6,YF}gefcaj{+oESb9d8>Z'e9M"; } 32 | } 33 | 34 | /// 获取向量 35 | /// 36 | private static string IV 37 | { 38 | get { return @"L+\~f4.Ir)b$=pkf"; } 39 | } 40 | 41 | /// 42 | /// AES加密 43 | /// 44 | /// 明文字符串 45 | /// 密文 46 | public static string Encrypt(string plainStr) 47 | { 48 | byte[] bKey = Encoding.UTF8.GetBytes(Key); 49 | byte[] bIV = Encoding.UTF8.GetBytes(IV); 50 | byte[] byteArray = Encoding.UTF8.GetBytes(plainStr); 51 | 52 | string encrypt = null; 53 | Rijndael aes = Rijndael.Create(); 54 | try 55 | { 56 | using (MemoryStream mStream = new MemoryStream()) 57 | { 58 | using (CryptoStream cStream = new CryptoStream(mStream, aes.CreateEncryptor(bKey, bIV), CryptoStreamMode.Write)) 59 | { 60 | cStream.Write(byteArray, 0, byteArray.Length); 61 | cStream.FlushFinalBlock(); 62 | encrypt = Convert.ToBase64String(mStream.ToArray()); 63 | } 64 | } 65 | } 66 | catch { } 67 | aes.Clear(); 68 | 69 | return encrypt; 70 | } 71 | 72 | /// 73 | /// AES解密 74 | /// 75 | /// 密文字符串 76 | /// 明文 77 | public static string Decrypt(string encryptStr) 78 | { 79 | byte[] bKey = Encoding.UTF8.GetBytes(Key); 80 | byte[] bIV = Encoding.UTF8.GetBytes(IV); 81 | byte[] byteArray = Convert.FromBase64String(encryptStr); 82 | 83 | string decrypt = null; 84 | Rijndael aes = Rijndael.Create(); 85 | try 86 | { 87 | using (MemoryStream mStream = new MemoryStream()) 88 | { 89 | using (CryptoStream cStream = new CryptoStream(mStream, aes.CreateDecryptor(bKey, bIV), CryptoStreamMode.Write)) 90 | { 91 | cStream.Write(byteArray, 0, byteArray.Length); 92 | cStream.FlushFinalBlock(); 93 | decrypt = Encoding.UTF8.GetString(mStream.ToArray()); 94 | } 95 | } 96 | } 97 | catch { } 98 | aes.Clear(); 99 | 100 | return decrypt; 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /Assets/Tools_DK/AES加密与解密/AES.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 870ce66334573b94da452855a923dcf9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/AES加密与解密/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5eb5c02b6d6c553489a0e6927504ef9d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/AES加密与解密/Editor/SetAES.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: SetAES.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using UnityEditor; 9 | using UnityEngine; 10 | 11 | public class SetAES : EditorWindow 12 | { 13 | private static SetAES window; 14 | 15 | string Clear_Text; 16 | string Cipher_Text; 17 | 18 | [MenuItem("Tool_DK/SetAES")] 19 | public static void Init() 20 | { 21 | window = (SetAES)EditorWindow.GetWindow(typeof(SetAES), false, "AES 加密解密"); 22 | window.Show(); 23 | } 24 | 25 | private void OnGUI() 26 | { 27 | //GUILayout.BeginArea(new Rect(new Vector2(0,0),new Vector2(200,100)), "HelpBox"); 28 | //GUILayout.EndArea(); 29 | 30 | Clear_Text = GUILayout.TextArea("明文", Clear_Text); 31 | Cipher_Text = GUILayout.TextArea("密文", Cipher_Text); 32 | 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Assets/Tools_DK/AES加密与解密/Editor/SetAES.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ed4a532b1aae924189b1b01c3f46aaa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/AES加密与解密/Readme.txt: -------------------------------------------------------------------------------- 1 | AES加密与解密 2 | 采用AES对信息进行加密与解密 -------------------------------------------------------------------------------- /Assets/Tools_DK/AES加密与解密/Readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4878fe3ce6b87c43884a90e2e92c60c 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Bezier.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 767df903b9796124c8cd18a94adbab68 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Bezier/Bezier.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class Bezier : MonoBehaviour 6 | { 7 | public LineRenderer line; 8 | public List Ts; 9 | public int num = 2; 10 | public bool setLine; 11 | 12 | public List colors; 13 | void Start() 14 | { 15 | 16 | 17 | 18 | } 19 | 20 | [ContextMenu("color")] 21 | void setColor() 22 | { 23 | colors.Clear(); 24 | for (int i = 0; i < 255; i++) 25 | { 26 | colors.Add(new Color(255, (float)i / (float)255,0,1)); 27 | } 28 | 29 | for (int i = 0; i < 1000; i++) 30 | { 31 | 32 | Debug.Log(i % 254); 33 | } 34 | } 35 | 36 | // Update is called once per frame 37 | void Update() 38 | { 39 | line.positionCount = 0; 40 | Vector3[] vector3 = new Vector3[num + 1]; 41 | for (int i = 0; i <= num; i++) 42 | { 43 | float value = ((float)i / (float)num); 44 | vector3[i]=BezierLine(value,Ts); 45 | } 46 | 47 | line.positionCount = vector3.Length; 48 | line.SetPositions(vector3); 49 | for (int i = 0; i < vector3.Length; i++) 50 | { 51 | line.SetPosition(i, vector3[i]); 52 | } 53 | 54 | 55 | } 56 | 57 | 58 | public Vector3 BezierLine(float t, List p) 59 | { 60 | //colors.Clear(); 61 | if (p.Count < 2) 62 | return p[0]; 63 | List newp = new List(); 64 | for (int i = 0; i < p.Count - 1; i++) 65 | { 66 | if(setLine) 67 | Debug.DrawLine(p[i], p[i + 1], colors[i%254]); 68 | 69 | Debug.Log(i%254); 70 | //colors.Add(new Color((float)i / (float)p.Count, (float)i / (float)p.Count, (float)i / (float)p.Count, 1)); 71 | Vector3 p0p1 = (1 - t) * p[i] + t * p[i + 1]; 72 | newp.Add(p0p1); 73 | } 74 | return BezierLine(t, newp); 75 | } 76 | // transform转换为vector3,在调用参数为List的Bezier函数 77 | public Vector3 BezierLine(float t, List p) 78 | { 79 | if (p.Count < 2) 80 | return p[0].position; 81 | List newp = new List(); 82 | for (int i = 0; i < p.Count; i++) 83 | { 84 | newp.Add(p[i].position); 85 | } 86 | return BezierLine(t, newp); 87 | } 88 | 89 | } 90 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Bezier/Bezier.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d26eb9671c3054747ac17c73df8448ff 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Bezier/Bezier.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00924b0f657455242ad5ec61e35b22d2 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Bezier/setBezierLine.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: setBezierLine.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using UnityEditor; 9 | using UnityEngine; 10 | 11 | public class setBezierLine : EditorWindow 12 | { 13 | private static setBezierLine window; 14 | GameObject tag0; 15 | GameObject tag1; 16 | GameObject tag2; 17 | int number; 18 | LineRenderer line; 19 | 20 | [MenuItem("Tool_DK/setBezierLine")] 21 | public static void Init() 22 | { 23 | window = (setBezierLine)EditorWindow.GetWindow(typeof(setBezierLine), false, "set Bezier Line"); 24 | window.Show(); 25 | } 26 | private void OnGUI() 27 | { 28 | EditorGUILayout.LabelField("起点"); 29 | tag0 = EditorGUILayout.ObjectField(tag0, typeof(GameObject), true) as GameObject; 30 | EditorGUILayout.LabelField("影响点"); 31 | tag1 = EditorGUILayout.ObjectField(tag1, typeof(GameObject), true) as GameObject; 32 | EditorGUILayout.LabelField("终点"); 33 | tag2 = EditorGUILayout.ObjectField(tag2, typeof(GameObject), true) as GameObject; 34 | EditorGUILayout.LabelField("线"); 35 | line = EditorGUILayout.ObjectField(line, typeof(LineRenderer), true) as LineRenderer; 36 | 37 | number = EditorGUILayout.IntField("分段数量", number); 38 | if (number > 0) 39 | { getBezier(number); } 40 | 41 | if (GUILayout.Button("start")) 42 | { 43 | getBezier(number); 44 | } 45 | } 46 | 47 | void getBezier(int num) 48 | { 49 | line.positionCount = 0; 50 | Vector3[] vector3 = new Vector3[num+1]; 51 | for (int i = 0; i <= num; i++) 52 | { 53 | float value = ((float)i / (float)num); 54 | vector3[i]= (1 - value * value) * tag0.transform.position + 2 * value * (1 - value) * tag1.transform.position + value * value * tag2.transform.position; 55 | //Debug.Log(vector3[i]+" "+ value.ToString("")+" "+ num+ " " + i); 56 | } 57 | line.positionCount = vector3.Length; 58 | line.SetPositions(vector3); 59 | for (int i = 0; i < vector3.Length; i++) 60 | { 61 | line.SetPosition(i, vector3[i]); 62 | } 63 | 64 | } 65 | 66 | 67 | 68 | private void OnInspectorUpdate() 69 | { 70 | Repaint();//重绘 71 | // Debug.Log("监视面板调用"); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Bezier/setBezierLine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 595f98e8526f797499e6034bde81d1ac 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53bfc46c8b8574f45b0443b2d072e8a0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DLL.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70076529eab892040bdb8b3f046d52f4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DLL/EPPlus.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Tools_DK/Excel/DLL/EPPlus.dll -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DLL/EPPlus.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcce1062656ab244ea6745befe8a62de 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DLL/Excel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Tools_DK/Excel/DLL/Excel.dll -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DLL/Excel.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0be978a4eb99f814ba07c86c1a85c97a 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DLL/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Tools_DK/Excel/DLL/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DLL/ICSharpCode.SharpZipLib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47f77bb92cc6c044799be11b11e7c7b7 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DLL/System.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Tools_DK/Excel/DLL/System.Data.dll -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DLL/System.Data.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e526671efba2084b933869ea4597c08 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | isPreloaded: 0 9 | isOverridable: 0 10 | platformData: 11 | - first: 12 | Any: 13 | second: 14 | enabled: 1 15 | settings: {} 16 | - first: 17 | Editor: Editor 18 | second: 19 | enabled: 0 20 | settings: 21 | DefaultValueInitialized: true 22 | - first: 23 | Windows Store Apps: WindowsStoreApps 24 | second: 25 | enabled: 0 26 | settings: 27 | CPU: AnyCPU 28 | userData: 29 | assetBundleName: 30 | assetBundleVariant: 31 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/Data.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 89ec97ca52472dc44a656623034362ce 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/Data/test.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Tools_DK/Excel/Data/test.xlsx -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/Data/test.xlsx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cd13fd1a0a6f3c4392050bd28243ef2 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/Demo.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c009eb973cc724c409ddd42224918aad 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DoExcel.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: DoExcel.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using UnityEngine; 9 | using System.Data; 10 | using System.IO; 11 | using Excel; 12 | 13 | public class DoExcel 14 | { 15 | 16 | public static DataSet ReadExcel(string path) 17 | { 18 | FileStream stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read); 19 | // CreateOpenXmlReader用于读取Excel2007版本及以上的文件 20 | IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream); 21 | DataSet result = excelReader.AsDataSet(); 22 | excelReader.Close(); 23 | return result; 24 | } 25 | public static List Load(string path) 26 | { 27 | List _data = new List(); 28 | DataSet resultds = ReadExcel(path); 29 | int column = resultds.Tables[0].Columns.Count; 30 | int row = resultds.Tables[0].Rows.Count; 31 | Debug.LogWarning(column + " " + row); 32 | for (int i = 0; i < row; i++) 33 | { 34 | DepenceTableData temp_data; 35 | temp_data.instruct = resultds.Tables[0].Rows[i][0].ToString(); 36 | temp_data.word = resultds.Tables[0].Rows[i][1].ToString(); 37 | Debug.Log(temp_data.instruct + " " + temp_data.word); 38 | _data.Add(temp_data); 39 | } 40 | return _data; 41 | } 42 | } 43 | 44 | public struct DepenceTableData 45 | { 46 | public string word; 47 | public string instruct; 48 | } 49 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/DoExcel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 164c23dddf4f33b4c92d74a1a73e0bbb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c75413ed622395e4fab00cacd36b0023 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/Editor/ReadExcel.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: ReadExcel.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using UnityEditor; 9 | using UnityEngine; 10 | 11 | public class ReadExcel : EditorWindow 12 | { 13 | private static ReadExcel window; 14 | List listdata=new List(); 15 | List listdata_towrite = new List(); 16 | [MenuItem("Tool_DK/ReadExcel")] 17 | public static void Init() 18 | { 19 | window = (ReadExcel)EditorWindow.GetWindow(typeof(ReadExcel), false, "Read Excel"); 20 | window.Show(); 21 | } 22 | 23 | private void OnGUI() 24 | { 25 | if (listdata.Count > 0) 26 | { 27 | for(int i=0;i< listdata.Count;i++) 28 | { 29 | EditorGUILayout.BeginHorizontal(); 30 | EditorGUILayout.TextField(listdata[i].instruct); 31 | EditorGUILayout.TextField(listdata[i].word); 32 | EditorGUILayout.EndHorizontal(); 33 | } 34 | } 35 | if (GUILayout.Button("获取表格数据")) 36 | { 37 | read(); 38 | } 39 | } 40 | 41 | void read() 42 | { 43 | listdata = DoExcel.Load(Application.dataPath + "/Tools_DK/Excel/Data/" + "test.xlsx"); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/Editor/ReadExcel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 579f35f8554ec31488067d425e25cc41 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/PrintExcel.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: PrintExcel.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using UnityEngine; 9 | using UnityEngine.UI; 10 | public class PrintExcel : MonoBehaviour 11 | { 12 | public List listdata; 13 | void Start() 14 | { 15 | Text T = GameObject.Find("Canvas/Text").GetComponent(); 16 | T.text = "";//清空一开始的文本 17 | listdata = DoExcel.Load(Application.dataPath + "\\Data\\" + "test.xlsx"); 18 | foreach (var listing in listdata) 19 | { 20 | print(listing.instruct + " " + listing.word); 21 | T.text += (listing.instruct + " " + listing.word + "\n").ToString(); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/PrintExcel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3fb950cea4c9164b8bbae4d5ce638eb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/readme.txt: -------------------------------------------------------------------------------- 1 | 读取Excel 2 | https://www.cnblogs.com/XRTSDUT2008/p/6964856.html -------------------------------------------------------------------------------- /Assets/Tools_DK/Excel/readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b512cfe0d5fb1440a6c37984d43d9a3 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8ae8724338beb54ab26b4ba4a4e5b98 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51879dcd73f4298488fa4e7f99b90498 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/Editor/DKSkillEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de858827ed527564687ac66635c25f7d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/LitJson.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Tools_DK/Json/LitJson.dll -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/LitJson.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62967e1534276a8478c147b30890dd23 3 | PluginImporter: 4 | serializedVersion: 2 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | isOverridable: 0 9 | platformData: 10 | data: 11 | first: 12 | Any: 13 | second: 14 | enabled: 1 15 | settings: {} 16 | data: 17 | first: 18 | Editor: Editor 19 | second: 20 | enabled: 0 21 | settings: 22 | DefaultValueInitialized: true 23 | data: 24 | first: 25 | Windows Store Apps: WindowsStoreApps 26 | second: 27 | enabled: 0 28 | settings: 29 | CPU: AnyCPU 30 | userData: 31 | assetBundleName: 32 | assetBundleVariant: 33 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/Readme.txt: -------------------------------------------------------------------------------- 1 | Json读取与写入 2 | 在editor界面对Json读取与写入; -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/Readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04f72c74a73c4e84b973ddabfd23a3b3 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/inputdate.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Skill Data", 3 | "Total": 4, 4 | "_skills": [ 5 | { 6 | "id": 2, 7 | "name": "技能0", 8 | "sprite_skill": { 9 | "instanceID": 840 10 | }, 11 | "describe": "技能0000.", 12 | "level": 0, 13 | "cd_time": 0.0, 14 | "hit_rate": 0.0, 15 | "damage": 0.0, 16 | "key": 97 17 | }, 18 | { 19 | "id": 3, 20 | "name": "wq e", 21 | "sprite_skill": { 22 | "instanceID": 10628 23 | }, 24 | "describe": "eq we", 25 | "level": 0, 26 | "cd_time": 0.0, 27 | "hit_rate": 0.0, 28 | "damage": 0.0, 29 | "key": 97 30 | } 31 | ] 32 | } -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/inputdate.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 974bed9f8a4e53a40b8f8b2690f32a4e 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/skill_.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: skill_.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | using System; 7 | using System.Collections; 8 | using System.Collections.Generic; 9 | using UnityEngine; 10 | 11 | [Serializable] 12 | public class Skills 13 | { 14 | public string name; 15 | public int Total; 16 | public List _skills; 17 | } 18 | [Serializable] 19 | public class Skill 20 | { 21 | //技能ID 22 | public int id; 23 | //技能名称 24 | public string name; 25 | //技能图标 26 | public Sprite sprite_skill; 27 | //技能描述 28 | public string describe; 29 | //技能等级 30 | public int level; 31 | //冷却时间 32 | public float cd_time; 33 | //命中率 34 | public float hit_rate; 35 | //伤害量 36 | public float damage; 37 | //触发按键 38 | public KeyCode key; 39 | } 40 | -------------------------------------------------------------------------------- /Assets/Tools_DK/Json/skill_.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 150ae50682177bd4198413386ae7ce61 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/MapEditor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a30c1151b81203e4d82ee1756834666d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/MapEditor/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0e30815006939a43a3d141eddee05ac 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/MapEditor/Editor/DkWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0b8ab2e79b736f408360cf5c5dc0e50 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/MapEditor/Readme.txt: -------------------------------------------------------------------------------- 1 | 地图编辑器 -------------------------------------------------------------------------------- /Assets/Tools_DK/MapEditor/Readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4d31976da588ea49b642597b077fed0 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9bb13deec0b817b449c40d15f686f869 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Local.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28bc7800cbbc7004598fa01e86dedba3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Local/CreatQR.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | using ZXing; 6 | using ZXing.QrCode; 7 | 8 | public class CreatQR : MonoBehaviour { 9 | 10 | //需要生产二维码的字符串 11 | string QrCodeStr = "https://DarkingForUnity.github.io"; 12 | //在屏幕上显示二维码载体 13 | public RawImage image;//用于UGUI 14 | public SpriteRenderer SpriteRenderer;//用于sprite图片 15 | 16 | void Start() 17 | { 18 | image.texture = GetQR_Local.CreatQR_texture(QrCodeStr); 19 | SpriteRenderer.sprite= GetQR_Local.CreatQR_sprite(QrCodeStr); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Local/CreatQR.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7aaa3e3dabe3af41a5171f34ae7ce27 3 | timeCreated: 1528882859 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Local/GetQR_Local.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: GetQR_Local.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using UnityEngine; 9 | using ZXing; 10 | using ZXing.QrCode; 11 | 12 | public class GetQR_Local : MonoBehaviour { 13 | 14 | public static Texture CreatQR_texture(string message) 15 | { 16 | Texture2D encoded; 17 | encoded = new Texture2D(256, 256); 18 | if (message.Length > 1) 19 | { 20 | //二维码写入图片 21 | var color32 = Encode(message, encoded.width, encoded.height); 22 | encoded.SetPixels32(color32); 23 | encoded.Apply(); 24 | } 25 | else 26 | { 27 | Debug.Log("生成二维码失败"); 28 | } 29 | return encoded; 30 | } 31 | 32 | public static Sprite CreatQR_sprite(string message) 33 | { 34 | Texture2D encoded; 35 | encoded = new Texture2D(256, 256); 36 | if (message.Length > 1) 37 | { 38 | //二维码写入图片 39 | var color32 = Encode(message, encoded.width, encoded.height); 40 | encoded.SetPixels32(color32); 41 | encoded.Apply(); 42 | } 43 | else 44 | { 45 | Debug.Log("生成二维码失败"); 46 | } 47 | Sprite sprite = Sprite.Create(encoded, new Rect(0, 0, encoded.width, encoded.height), Vector2.zero); 48 | return sprite; 49 | } 50 | 51 | /// 52 | /// 定义方法生成二维码 53 | /// 54 | /// 需要生产二维码的字符串 55 | /// 宽 56 | /// 高 57 | /// 58 | private static Color32[] Encode(string textForEncoding, int width, int height) 59 | { 60 | var writer = new BarcodeWriter 61 | { 62 | Format = BarcodeFormat.QR_CODE, 63 | Options = new QrCodeEncodingOptions 64 | { 65 | Height = height, 66 | Width = width 67 | } 68 | }; 69 | return writer.Write(textForEncoding); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Local/GetQR_Local.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 622d4e410f7b44146abd90111f83b00a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Local/GetQR_Local.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 109618bc4cde64640952e7613813f58c 3 | timeCreated: 1528883058 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Local/zxing.unity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkingForUnity/EditorTools/869e6436a10ae0e77acec94f733671aec3e2b9c9/Assets/Tools_DK/QR/Local/zxing.unity.dll -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Local/zxing.unity.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 373b76ae84b184d4383e8e537a419133 3 | timeCreated: 1528882924 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Network request.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91e0796509b067c4daf80b3543d38c31 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Network request/GetQR_net.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b667090f8ddc0044b1102b932752456 3 | timeCreated: 1528883058 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Network request/GetQR_network.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - FileName: GetQR_network.cs 3 | // - CreateTime: #CreateTime# 4 | // - Description: 脚本描述 5 | //====================================================== 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using UnityEngine; 9 | using UnityEngine.UI; 10 | 11 | public class GetQR_network : MonoBehaviour { 12 | 13 | public static IEnumerator getQR(RawImage encoded,string message) 14 | { 15 | WWW w = new WWW("https://cli.im/api/qrcode/code?text=" + message); 16 | yield return w; 17 | //获取'src=" //' 后所有的数据 18 | string s = w.text.Substring(w.text.IndexOf(" 1) 38 | { 39 | //二维码写入图片 40 | var color32 = Encode(message, encoded.width, encoded.height); 41 | encoded.SetPixels32(color32); 42 | encoded.Apply(); 43 | } 44 | else 45 | { 46 | Debug.Log("生成二维码失败"); 47 | } 48 | return encoded; 49 | } 50 | ``` 51 | Sprite: 52 | 53 | ```C# 54 | public static Sprite CreatQR_sprite(string message) 55 | { 56 | Texture2D encoded; 57 | encoded = new Texture2D(256, 256); 58 | if (message.Length > 1) 59 | { 60 | //二维码写入图片 61 | var color32 = Encode(message, encoded.width, encoded.height); 62 | encoded.SetPixels32(color32); 63 | encoded.Apply(); 64 | } 65 | else 66 | { 67 | Debug.Log("生成二维码失败"); 68 | } 69 | Sprite sprite = Sprite.Create(encoded, new Rect(0, 0, encoded.width, encoded.height), Vector2.zero); 70 | return sprite; 71 | } 72 | 73 | ``` 74 | 75 | ### Net: 76 | 77 | 网络请求二维码,是直接调用草料二维码在线生成二维码API,通过解析返回页面,获取对应二维码图片,再交给对应图片对象; 78 | 79 | * 网络请求: 80 | * 查询草料官网的API,找到请求格式,这就是之后我们需要请求的地址;
81 | ![QR](https://github.com/DarkingForUnity/DarkingForUnity.github.io/blob/main/images/草料API.png)
82 | 83 | * 在浏览器根据API的格式输入请求地址 https://cli.im/api/qrcode/code?text=https://DarkingForUnity.github.io
84 | * 在浏览器界面按下F12,调出界面代码,依次点击 1、2,在3区域能看到二维码的图片链接,我们需要的就是提取`src="//`后面的图片链接。
85 | ![QR](https://github.com/DarkingForUnity/DarkingForUnity.github.io/blob/main/images/QRpage.png)
86 | * 将提取到的图片链接直接输入浏览器,就可以看到成功出现了二维码,就表示这个地址可用,我们可以在unity中使用该地址获取图片
87 | ![QR](https://github.com/DarkingForUnity/DarkingForUnity.github.io/blob/main/images/QRpage1.png)
88 | 89 | ```C# 90 | WWW w = new WWW("https://cli.im/api/qrcode/code?text=" + message); 91 | yield return w; 92 | //获取'src=" //' 后所有的数据 93 | string s = w.text.Substring(w.text.IndexOf(" 106 | 107 | 108 | --- 109 | -------------------------------------------------------------------------------- /Assets/Tools_DK/QR/Readme.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8964989169cd734eab74b0c92c3172b 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Tools_DK/SpriteManage.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30a3de8af1944264c95e5e76b9a56421 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/SpriteManage/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7aca7ca21d6b2b34baa44b16232b237e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tools_DK/SpriteManage/Editor/CheckEmptySprite.cs: -------------------------------------------------------------------------------- 1 | //===================================================== 2 | // - Description: 查找空精灵图片以及未激活的图片 3 | //====================================================== 4 | using System.Collections.Generic; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | public class CheckEmptySprite : EditorWindow 9 | { 10 | List Empty_sprite = new List(); 11 | List Disenable_sprite = new List(); 12 | List Disenable_obj = new List(); 13 | private Vector2 m_ScrollPosition; 14 | private Vector2 m_ScrollPosition_0; 15 | private Vector2 m_ScrollPosition_1; 16 | [MenuItem("Tool_DK/SpriteManage/CheckEmptySprite")] 17 | public static void Openwindows() 18 | { 19 | EditorWindow window = GetWindow(typeof(CheckEmptySprite)); 20 | window.minSize = new Vector2(300, 330); 21 | //window.maxSize = new Vector2(420, 330); 22 | window.Show(); 23 | } 24 | private void OnGUI() 25 | { 26 | EditorGUILayout.BeginHorizontal("HelpBox"); 27 | 28 | EditorGUILayout.BeginVertical("HelpBox"); 29 | GUILayout.Space(20); 30 | GUILayout.Label("图片为空:"); 31 | GUILayout.Space(20); 32 | m_ScrollPosition = EditorGUILayout.BeginScrollView(m_ScrollPosition); 33 | if (Empty_sprite.Count > 0) 34 | { 35 | for (int i = 0; i < Empty_sprite.Count; i++) 36 | { 37 | GameObject obj = EditorGUILayout.ObjectField(Empty_sprite[i], typeof(GameObject), true) as GameObject; 38 | } 39 | 40 | } 41 | EditorGUILayout.EndScrollView(); 42 | GUI.color = Color.red; 43 | if (GUILayout.Button("清除组件(不可逆)")) 44 | { 45 | remove_sprite_Component(Empty_sprite); 46 | } 47 | if (GUILayout.Button("清除对象(不可逆)")) 48 | { 49 | Delete(Empty_sprite); 50 | } 51 | GUI.color = Color.white; 52 | EditorGUILayout.EndVertical(); 53 | 54 | EditorGUILayout.BeginVertical("HelpBox"); 55 | GUILayout.Space(20); 56 | GUILayout.Label("图片组件未激活:"); 57 | GUILayout.Space(20); 58 | m_ScrollPosition_0 = EditorGUILayout.BeginScrollView(m_ScrollPosition_0); 59 | if (Disenable_sprite.Count > 0) 60 | { 61 | for (int i = 0; i < Disenable_sprite.Count; i++) 62 | { 63 | GameObject obj = EditorGUILayout.ObjectField(Disenable_sprite[i], typeof(GameObject), true) as GameObject; 64 | } 65 | 66 | } 67 | EditorGUILayout.EndScrollView(); 68 | GUI.color = Color.red; 69 | if (GUILayout.Button("清除组件(不可逆)")) 70 | { 71 | remove_sprite_Component(Disenable_sprite); 72 | } 73 | if (GUILayout.Button("清除对象(不可逆)")) 74 | { 75 | Delete(Disenable_sprite); 76 | } 77 | GUI.color = Color.white; 78 | EditorGUILayout.EndVertical(); 79 | 80 | EditorGUILayout.BeginVertical("HelpBox"); 81 | GUILayout.Space(20); 82 | GUILayout.Label("对象未激活:"); 83 | GUILayout.Space(20); 84 | m_ScrollPosition_1 = EditorGUILayout.BeginScrollView(m_ScrollPosition_1); 85 | if (Disenable_obj.Count > 0) 86 | { 87 | for (int i = 0; i < Disenable_obj.Count; i++) 88 | { 89 | GameObject obj = EditorGUILayout.ObjectField(Disenable_obj[i], typeof(GameObject), true) as GameObject; 90 | } 91 | 92 | } 93 | EditorGUILayout.EndScrollView(); 94 | EditorGUILayout.EndVertical(); 95 | EditorGUILayout.EndHorizontal(); 96 | if (GUILayout.Button("搜索")) 97 | { 98 | check(); 99 | } 100 | } 101 | 102 | void check() 103 | { 104 | SpriteRenderer[] sprite = Resources.FindObjectsOfTypeAll(typeof(SpriteRenderer)) as SpriteRenderer[]; 105 | Debug.Log(sprite.Length); 106 | Empty_sprite.Clear(); 107 | Disenable_sprite.Clear(); 108 | Disenable_obj.Clear(); 109 | 110 | for (int i = 0; i < sprite.Length; i++) 111 | { 112 | EditorUtility.DisplayProgressBar("空图片整理中", sprite[i].name, (float)i / (float)sprite.Length); 113 | if (sprite[i].sprite == null) 114 | { 115 | Empty_sprite.Add(sprite[i]); 116 | } 117 | if (sprite[i].enabled == false) 118 | { 119 | Disenable_sprite.Add(sprite[i]); 120 | } 121 | if (sprite[i].gameObject.activeSelf == false) 122 | { 123 | Disenable_obj.Add(sprite[i]); 124 | } 125 | } 126 | Debug.Log("完成引用检索"); 127 | EditorUtility.ClearProgressBar(); 128 | } 129 | 130 | void remove_sprite_Component(List _sprite) 131 | { 132 | for (int i = 0; i < _sprite.Count; i++) 133 | { 134 | EditorUtility.DisplayProgressBar("图片组件清理中", _sprite[i].name, (float)i / (float)_sprite.Count); 135 | DestroyImmediate(_sprite[i].gameObject.transform.GetComponent()); 136 | } 137 | Debug.Log("完成图片组件清理"); 138 | EditorUtility.ClearProgressBar(); 139 | check(); 140 | } 141 | 142 | void Delete(List _sprite) 143 | { 144 | for (int i = 0; i < _sprite.Count; i++) 145 | { 146 | 147 | if (_sprite[i]) 148 | { 149 | EditorUtility.DisplayProgressBar("对象清理中", _sprite[i].name, (float)i / (float)_sprite.Count); 150 | DestroyImmediate(_sprite[i].gameObject); 151 | } 152 | 153 | } 154 | Debug.Log("完成对象清理"); 155 | EditorUtility.ClearProgressBar(); 156 | check(); 157 | } 158 | 159 | private void OnInspectorUpdate() 160 | { 161 | Repaint();//重绘 162 | // Debug.Log("监视面板调用"); 163 | } 164 | } 165 | -------------------------------------------------------------------------------- /Assets/Tools_DK/SpriteManage/Editor/CheckEmptySprite.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c934f633ede216448f7a13ddc1ee79c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/SpriteManage/Editor/CreatImagecollection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f053c2b87e80a9740933bca2fe4334b8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tools_DK/SpriteManage/Readme.md: -------------------------------------------------------------------------------- 1 | * 精灵管理: 2 | * 检索场景中所有的空引用精灵图片;未激活spriterender组件的对象,未激活对象的spriterender;
3 | 对于频繁改动的场景素材,有时候会留下一些空图片或者暂时保留,隐藏,最后要删除的图片对象。
4 | 此脚本能帮助检索,识别以上对象,并进行一键清除组件或者清除对象。
5 | 6 | ![image](/Image/CheckEmptySprite.png)
7 | 8 | * 检索场景中引用到的精灵图集
9 | 1、能够检索到场景中使用的所有图片的地址、图片存放文件夹地址以及打包图集名称,检测出是否包含未打包图片以及筛选未打包图片
10 | 2、在引用过多过杂乱的情况下,提供一键迁移功能,能够将图片一键迁移到目标文件夹,并将图片引用地址转移到新图片。 -------------------------------------------------------------------------------- /Assets/Tools_DK/SpriteManage/Readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4970f05d937a5aa4ab76a18cf10ad58e 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/jsonTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 805ffdb3065a36044bba855f6e0c720f 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Logs/Packages-Update.log: -------------------------------------------------------------------------------- 1 | 2 | === Thu Feb 4 20:38:31 2021 3 | 4 | Packages were changed. 5 | Update Mode: resetToDefaultDependencies 6 | 7 | The following packages were added: 8 | com.unity.analytics@3.2.2 9 | com.unity.purchasing@2.0.3 10 | com.unity.ads@2.0.8 11 | com.unity.textmeshpro@1.3.0 12 | com.unity.package-manager-ui@2.0.3 13 | com.unity.collab-proxy@1.2.15 14 | com.unity.modules.ai@1.0.0 15 | com.unity.modules.animation@1.0.0 16 | com.unity.modules.assetbundle@1.0.0 17 | com.unity.modules.audio@1.0.0 18 | com.unity.modules.cloth@1.0.0 19 | com.unity.modules.director@1.0.0 20 | com.unity.modules.imageconversion@1.0.0 21 | com.unity.modules.imgui@1.0.0 22 | com.unity.modules.jsonserialize@1.0.0 23 | com.unity.modules.particlesystem@1.0.0 24 | com.unity.modules.physics@1.0.0 25 | com.unity.modules.physics2d@1.0.0 26 | com.unity.modules.screencapture@1.0.0 27 | com.unity.modules.terrain@1.0.0 28 | com.unity.modules.terrainphysics@1.0.0 29 | com.unity.modules.tilemap@1.0.0 30 | com.unity.modules.ui@1.0.0 31 | com.unity.modules.uielements@1.0.0 32 | com.unity.modules.umbra@1.0.0 33 | com.unity.modules.unityanalytics@1.0.0 34 | com.unity.modules.unitywebrequest@1.0.0 35 | com.unity.modules.unitywebrequestassetbundle@1.0.0 36 | com.unity.modules.unitywebrequestaudio@1.0.0 37 | com.unity.modules.unitywebrequesttexture@1.0.0 38 | com.unity.modules.unitywebrequestwww@1.0.0 39 | com.unity.modules.vehicles@1.0.0 40 | com.unity.modules.video@1.0.0 41 | com.unity.modules.vr@1.0.0 42 | com.unity.modules.wind@1.0.0 43 | com.unity.modules.xr@1.0.0 44 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "3.2.2", 5 | "com.unity.collab-proxy": "1.2.15", 6 | "com.unity.package-manager-ui": "2.0.3", 7 | "com.unity.purchasing": "2.0.3", 8 | "com.unity.textmeshpro": "1.3.0", 9 | "com.unity.modules.ai": "1.0.0", 10 | "com.unity.modules.animation": "1.0.0", 11 | "com.unity.modules.assetbundle": "1.0.0", 12 | "com.unity.modules.audio": "1.0.0", 13 | "com.unity.modules.cloth": "1.0.0", 14 | "com.unity.modules.director": "1.0.0", 15 | "com.unity.modules.imageconversion": "1.0.0", 16 | "com.unity.modules.imgui": "1.0.0", 17 | "com.unity.modules.jsonserialize": "1.0.0", 18 | "com.unity.modules.particlesystem": "1.0.0", 19 | "com.unity.modules.physics": "1.0.0", 20 | "com.unity.modules.physics2d": "1.0.0", 21 | "com.unity.modules.screencapture": "1.0.0", 22 | "com.unity.modules.terrain": "1.0.0", 23 | "com.unity.modules.terrainphysics": "1.0.0", 24 | "com.unity.modules.tilemap": "1.0.0", 25 | "com.unity.modules.ui": "1.0.0", 26 | "com.unity.modules.uielements": "1.0.0", 27 | "com.unity.modules.umbra": "1.0.0", 28 | "com.unity.modules.unityanalytics": "1.0.0", 29 | "com.unity.modules.unitywebrequest": "1.0.0", 30 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 31 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 32 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 33 | "com.unity.modules.unitywebrequestwww": "1.0.0", 34 | "com.unity.modules.vehicles": "1.0.0", 35 | "com.unity.modules.video": "1.0.0", 36 | "com.unity.modules.vr": "1.0.0", 37 | "com.unity.modules.wind": "1.0.0", 38 | "com.unity.modules.xr": "1.0.0" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /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: 7 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 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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: 7 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 1 11 | m_SpritePackerMode: 4 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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: 3 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_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /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 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.3.4f1 2 | -------------------------------------------------------------------------------- /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 | blendWeights: 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 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 4 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 70 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 2 136 | antiAliasing: 2 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSM: 5 183 | PSP2: 2 184 | Standalone: 5 185 | Tizen: 2 186 | WebGL: 3 187 | WiiU: 5 188 | Windows Store Apps: 5 189 | XboxOne: 5 190 | iPhone: 2 191 | tvOS: 2 192 | -------------------------------------------------------------------------------- /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 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 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_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # EditorTools 2 | unity常用工具集合 3 | 4 | #### 以下为目录链接: 5 | 6 | ##### [AES加密与解密](https://github.com/DarkingForUnity/EditorTools/tree/master/Assets/Tools_DK/AES%E5%8A%A0%E5%AF%86%E4%B8%8E%E8%A7%A3%E5%AF%86) 7 | * 采用AES对信息进行加密与解密 8 | 9 | --- 10 | 11 | ##### [Excel](https://github.com/DarkingForUnity/EditorTools/tree/master/Assets/Tools_DK/Excel) 12 | * 读取Excel 13 | * [参考链接](https://www.cnblogs.com/XRTSDUT2008/p/6964856.html) 14 | 15 | --- 16 | 17 | ##### [Json](https://github.com/DarkingForUnity/EditorTools/tree/master/Assets/Tools_DK/Json) 18 | * Json读取与写入 19 | * 在editor界面对Json读取与写入; 20 | 21 | --- 22 | 23 | ##### [MapEditor](https://github.com/DarkingForUnity/EditorTools/tree/master/Assets/Tools_DK/MapEditor) 24 | * 地图编辑器 25 | 26 | --- 27 | 28 | ##### [QR Code](https://github.com/DarkingForUnity/EditorTools/tree/master/Assets/Tools_DK/QR) 29 | * 二维码生成器 30 | * Local:本地生成; 31 | * Network request :请求草料二维码API ,返回二维码图片,需要网络 32 | 33 | --- 34 | 35 | ## [SpriteManage](https://github.com/DarkingForUnity/EditorTools/tree/master/Assets/Tools_DK/SpriteManage) 36 | * 精灵管理: 37 | * 1、检索场景中所有的空引用精灵图片;未激活spriterender组件的对象,未激活对象的spriterender; 38 | * 2、检索场景中引用到的精灵图集 39 | 40 | ## [三次贝塞尔曲线](https://github.com/DarkingForUnity/EditorTools/tree/master/Assets/Tools_DK/Bezier) 41 | * 三次贝塞尔曲线 42 | * 通过贝塞尔曲线运算,在LineRender中插入坐标,使其拟合; 43 | --------------------------------------------------------------------------------