├── .editorconfig ├── .gitattribute ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md └── Unity ├── .gitignore ├── Assets ├── Sample.meta ├── Sample │ ├── Editor.meta │ ├── Editor │ │ ├── Test.cs │ │ ├── Test.cs.meta │ │ ├── Tests.asmdef │ │ └── Tests.asmdef.meta │ ├── Script.meta │ ├── Script │ │ ├── Runtime.cs │ │ └── Runtime.cs.meta │ ├── test.txt │ ├── test.txt.meta │ ├── test.x │ └── test.x.meta ├── Scenes.meta ├── Scenes │ ├── SampleScene.unity │ └── SampleScene.unity.meta ├── XEncrypt.meta └── XEncrypt │ ├── Editor.meta │ ├── Editor │ ├── Generator.cs │ ├── Generator.cs.meta │ ├── Xencrypt.Editor.asmdef │ └── Xencrypt.Editor.asmdef.meta │ ├── Plugins.meta │ ├── Plugins │ ├── Android.meta │ ├── Android │ │ ├── arm64-v8a.meta │ │ ├── arm64-v8a │ │ │ ├── libXEncrypt.so │ │ │ └── libXEncrypt.so.meta │ │ ├── armeabi-v7a.meta │ │ ├── armeabi-v7a │ │ │ ├── libXEncrypt.so │ │ │ └── libXEncrypt.so.meta │ │ ├── x86.meta │ │ ├── x86 │ │ │ ├── libXEncrypt.so │ │ │ └── libXEncrypt.so.meta │ │ ├── x86_64.meta │ │ └── x86_64 │ │ │ ├── libXEncrypt.so │ │ │ └── libXEncrypt.so.meta │ ├── Linux.meta │ ├── Linux │ │ ├── x86_64.meta │ │ └── x86_64 │ │ │ ├── libXEncrypt.so │ │ │ └── libXEncrypt.so.meta │ ├── OSX.meta │ ├── OSX │ │ ├── libXEncrypt.dylib │ │ └── libXEncrypt.dylib.meta │ ├── WSA.meta │ ├── WSA │ │ ├── ARM64.meta │ │ ├── ARM64 │ │ │ ├── XEncrypt.dll │ │ │ └── XEncrypt.dll.meta │ │ ├── x64.meta │ │ ├── x64 │ │ │ ├── XEncrypt.dll │ │ │ └── XEncrypt.dll.meta │ │ ├── x86.meta │ │ └── x86 │ │ │ ├── XEncrypt.dll │ │ │ └── XEncrypt.dll.meta │ ├── Windows.meta │ ├── Windows │ │ ├── x86.meta │ │ ├── x86 │ │ │ ├── XEncrypt.dll │ │ │ └── XEncrypt.dll.meta │ │ ├── x86_64.meta │ │ └── x86_64 │ │ │ ├── XEncrypt.dll │ │ │ └── XEncrypt.dll.meta │ ├── iOS.meta │ ├── iOS │ │ ├── libXEncrypt.a │ │ └── libXEncrypt.a.meta │ ├── tvOS.meta │ └── tvOS │ │ ├── libXEncrypt.a │ │ └── libXEncrypt.a.meta │ ├── Runtime.meta │ └── Runtime │ ├── API.meta │ ├── API │ ├── DecryptScope.cs │ ├── DecryptScope.cs.meta │ ├── EncryptScope.cs │ ├── EncryptScope.cs.meta │ ├── NativeLibrary.cs │ ├── NativeLibrary.cs.meta │ ├── ResultCode.cs │ ├── ResultCode.cs.meta │ ├── XEncryptApi.cs │ ├── XEncryptApi.cs.meta │ ├── plugin.meta │ └── plugin │ │ ├── IPlugin.cs │ │ ├── IPlugin.cs.meta │ │ ├── XEFPlugin.cs │ │ └── XEFPlugin.cs.meta │ ├── XEncryptApi.asmdef │ └── XEncryptApi.asmdef.meta ├── Packages ├── manifest.json └── packages-lock.json └── ProjectSettings ├── AudioManager.asset ├── AutoStreamingSettings.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset /.editorconfig: -------------------------------------------------------------------------------- 1 | ############################### 2 | # Core EditorConfig Options # 3 | ############################### 4 | root = true 5 | # All files 6 | [*] 7 | indent_style = space 8 | end_of_line = lf 9 | # XML project files 10 | [*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] 11 | indent_size = 2 12 | 13 | # XML config files 14 | [*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] 15 | indent_size = 2 16 | 17 | # Code files 18 | [*.{cs,csx,vb,vbx,c,c++,h,hpp,cxx}] 19 | indent_size = 4 20 | insert_final_newline = true 21 | charset = utf-8-bom 22 | ############################### 23 | # .NET Coding Conventions # 24 | ############################### 25 | [*.{cs,vb}] 26 | # Organize usings 27 | dotnet_sort_system_directives_first = true 28 | # this. preferences 29 | dotnet_style_qualification_for_field = false:silent 30 | dotnet_style_qualification_for_property = false:silent 31 | dotnet_style_qualification_for_method = false:silent 32 | dotnet_style_qualification_for_event = false:silent 33 | # Language keywords vs BCL types preferences 34 | dotnet_style_predefined_type_for_locals_parameters_members = true:silent 35 | dotnet_style_predefined_type_for_member_access = true:silent 36 | # Parentheses preferences 37 | dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent 38 | dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent 39 | dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent 40 | dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent 41 | # Modifier preferences 42 | dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent 43 | dotnet_style_readonly_field = true:suggestion 44 | # Expression-level preferences 45 | dotnet_style_object_initializer = true:suggestion 46 | dotnet_style_collection_initializer = true:suggestion 47 | dotnet_style_explicit_tuple_names = true:suggestion 48 | dotnet_style_null_propagation = true:suggestion 49 | dotnet_style_coalesce_expression = true:suggestion 50 | dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent 51 | dotnet_style_prefer_inferred_tuple_names = true:suggestion 52 | dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion 53 | dotnet_style_prefer_auto_properties = true:silent 54 | dotnet_style_prefer_conditional_expression_over_assignment = true:silent 55 | dotnet_style_prefer_conditional_expression_over_return = true:silent 56 | ############################### 57 | # Naming Conventions # 58 | ############################### 59 | # Style Definitions 60 | dotnet_naming_style.pascal_case_style.capitalization = pascal_case 61 | # Use PascalCase for constant fields 62 | dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion 63 | dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields 64 | dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style 65 | dotnet_naming_symbols.constant_fields.applicable_kinds = field 66 | dotnet_naming_symbols.constant_fields.applicable_accessibilities = * 67 | dotnet_naming_symbols.constant_fields.required_modifiers = const 68 | ############################### 69 | # C# Coding Conventions # 70 | ############################### 71 | [*.cs] 72 | # var preferences 73 | csharp_style_var_for_built_in_types = true:silent 74 | csharp_style_var_when_type_is_apparent = true:silent 75 | csharp_style_var_elsewhere = true:silent 76 | # Expression-bodied members 77 | csharp_style_expression_bodied_methods = false:silent 78 | csharp_style_expression_bodied_constructors = false:silent 79 | csharp_style_expression_bodied_operators = false:silent 80 | csharp_style_expression_bodied_properties = true:silent 81 | csharp_style_expression_bodied_indexers = true:silent 82 | csharp_style_expression_bodied_accessors = true:silent 83 | # Pattern matching preferences 84 | csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion 85 | csharp_style_pattern_matching_over_as_with_null_check = true:suggestion 86 | # Null-checking preferences 87 | csharp_style_throw_expression = true:suggestion 88 | csharp_style_conditional_delegate_call = true:suggestion 89 | # Modifier preferences 90 | csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion 91 | # Expression-level preferences 92 | csharp_prefer_braces = true:silent 93 | csharp_style_deconstructed_variable_declaration = true:suggestion 94 | csharp_prefer_simple_default_expression = true:suggestion 95 | csharp_style_pattern_local_over_anonymous_function = true:suggestion 96 | csharp_style_inlined_variable_declaration = true:suggestion 97 | ############################### 98 | # C# Formatting Rules # 99 | ############################### 100 | # New line preferences 101 | csharp_new_line_before_open_brace = all 102 | csharp_new_line_before_else = true 103 | csharp_new_line_before_catch = true 104 | csharp_new_line_before_finally = true 105 | csharp_new_line_before_members_in_object_initializers = true 106 | csharp_new_line_before_members_in_anonymous_types = true 107 | csharp_new_line_between_query_expression_clauses = true 108 | # Indentation preferences 109 | csharp_indent_case_contents = true 110 | csharp_indent_switch_labels = true 111 | csharp_indent_labels = flush_left 112 | # Space preferences 113 | csharp_space_after_cast = false 114 | csharp_space_after_keywords_in_control_flow_statements =false 115 | csharp_space_between_method_call_parameter_list_parentheses = false 116 | csharp_space_between_method_declaration_parameter_list_parentheses = false 117 | csharp_space_between_parentheses = false 118 | csharp_space_before_colon_in_inheritance_clause = true 119 | csharp_space_after_colon_in_inheritance_clause = true 120 | csharp_space_around_binary_operators = before_and_after 121 | csharp_space_between_method_declaration_empty_parameter_list_parentheses = false 122 | csharp_space_between_method_call_name_and_opening_parenthesis = false 123 | csharp_space_between_method_call_empty_parameter_list_parentheses = false 124 | # Wrapping preferences 125 | csharp_preserve_single_line_statements = true 126 | csharp_preserve_single_line_blocks = true 127 | ############################### 128 | # VB Coding Conventions # 129 | ############################### 130 | [*.vb] 131 | # Modifier preferences 132 | visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion 133 | -------------------------------------------------------------------------------- /.gitattribute: -------------------------------------------------------------------------------- 1 | *.bytes eol=lf 2 | *.asset eol=lf 3 | *.shader eol=text 4 | *.unity eol=text 5 | *.cs eol=lf 6 | *.meta eol=lf 7 | *.prefab eol=lf 8 | .gitattributes text 9 | .gitignore text 10 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore 4 | # 5 | .utmp/ 6 | /[Ll]ibrary/ 7 | /[Tt]emp/ 8 | /[Oo]bj/ 9 | /[Bb]uild/ 10 | /[Bb]uilds/ 11 | /[Ll]ogs/ 12 | /[Uu]ser[Ss]ettings/ 13 | 14 | # MemoryCaptures can get excessive in size. 15 | # They also could contain extremely sensitive data 16 | /[Mm]emoryCaptures/ 17 | 18 | # Recordings can get excessive in size 19 | /[Rr]ecordings/ 20 | 21 | # Uncomment this line if you wish to ignore the asset store tools plugin 22 | # /[Aa]ssets/AssetStoreTools* 23 | 24 | # Autogenerated Jetbrains Rider plugin 25 | /[Aa]ssets/Plugins/Editor/JetBrains* 26 | 27 | # Visual Studio cache directory 28 | .vs/ 29 | 30 | # Gradle cache directory 31 | .gradle/ 32 | 33 | # Autogenerated VS/MD/Consulo solution and project files 34 | ExportedObj/ 35 | .consulo/ 36 | *.csproj 37 | *.unityproj 38 | *.sln 39 | *.suo 40 | *.tmp 41 | *.user 42 | *.userprefs 43 | *.pidb 44 | *.booproj 45 | *.svd 46 | *.pdb 47 | *.mdb 48 | *.opendb 49 | *.VC.db 50 | 51 | # Unity3D generated meta files 52 | *.pidb.meta 53 | *.pdb.meta 54 | *.mdb.meta 55 | 56 | # Unity3D generated file on crash reports 57 | sysinfo.txt 58 | 59 | # Builds 60 | *.apk 61 | *.aab 62 | *.unitypackage 63 | *.unitypackage.meta 64 | *.app 65 | 66 | # Crashlytics generated file 67 | crashlytics-build.properties 68 | 69 | # Packed Addressables 70 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 71 | 72 | # Temporary auto-generated Android Assets 73 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 74 | /[Aa]ssets/[Ss]treamingAssets/aa/* 75 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Y-way 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # XEncrypt-Unity 2 | 该Unity插件用于对Unity的资源进行加密,防止被逆向工程。 3 | 该插件基于[x-encrypt](https://github.com/Y-way/x-encrypt)原生加密/解密库和[XFileEncoder](https://github.com/Y-way/x-encrypt/tree/main/C%23)创建. 4 | 5 | ## 使用方法 6 | 参见工程Sample示例代码 7 | -------------------------------------------------------------------------------- /Unity/.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | /Assets/FightScene* 8 | /Assets/GameFramework* 9 | /Assets/Samples* 10 | /Assets/CLineActionEditor* 11 | 12 | UIProject/.objs/ 13 | /[Ll]ogs/ 14 | 15 | # Autogenerated VS/MD/Consulo solution and project files 16 | .vs/ 17 | ExportedObj/ 18 | .consulo/ 19 | *.csproj 20 | *.unityproj 21 | *.sln 22 | *.suo 23 | *.tmp 24 | *.user 25 | *.userprefs 26 | *.pidb 27 | *.booproj 28 | *.svd 29 | 30 | 31 | # Unity3D generated meta files 32 | *.pidb.meta 33 | 34 | # Unity3D Generated File On Crash Reports 35 | sysinfo.txt 36 | 37 | # Builds 38 | *.apk 39 | *.unitypackage 40 | .DS_Store 41 | /XLog1.txt 42 | /XLog.log 43 | -------------------------------------------------------------------------------- /Unity/Assets/Sample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ccd9e6d67e02bf459e51f6beb46fd64 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a443387a7577e5f4ea81d369ea4341ce 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/Editor/Test.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Text; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | public class Test 9 | { 10 | const string s_source = "Assets/Sample/test.txt"; 11 | const string s_xfile = "Assets/Sample/test.x"; 12 | 13 | [MenuItem("XEncrypt/加密")] 14 | static void Encrypt() 15 | { 16 | if (!File.Exists(s_source)) 17 | { 18 | StringBuilder sb = new StringBuilder(); 19 | sb.AppendLine("This is a test."); 20 | sb.AppendLine("This is a test."); 21 | sb.AppendLine("This is a test."); 22 | sb.AppendLine("This is a test."); 23 | File.WriteAllText(s_source, sb.ToString()); 24 | } 25 | 26 | XFileEncoder.Generator.Encrypt(s_source, s_xfile, 32, XEncryptAPI.XEFPlugin.XEncodeType.XGZip); 27 | 28 | AssetDatabase.Refresh(); 29 | } 30 | 31 | [MenuItem("XEncrypt/解密")] 32 | static void Decrypt() 33 | { 34 | XFileEncoder.Generator.Decrypt(s_xfile, s_source); 35 | AssetDatabase.Refresh(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/Editor/Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3705eb3a095099a41ae5dfb7f0824aaf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/Editor/Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Tests", 3 | "references": [ 4 | "XEncryptApi", 5 | "Xencrypt.Editor" 6 | ], 7 | "includePlatforms": [], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": true, 11 | "precompiledReferences": [ 12 | "nunit.framework.dll" 13 | ], 14 | "autoReferenced": false, 15 | "defineConstraints": [ 16 | "UNITY_INCLUDE_TESTS" 17 | ], 18 | "versionDefines": [], 19 | "noEngineReferences": false 20 | } -------------------------------------------------------------------------------- /Unity/Assets/Sample/Editor/Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b4278682c5fe1a44bcac3b03f10a0cd 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/Script.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60b674ed7831f784cad744839023400e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/Script/Runtime.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using UnityEngine; 5 | 6 | public class Runtime : MonoBehaviour 7 | { 8 | // Start is called before the first frame update 9 | void Start() 10 | { 11 | byte[] encryptedData = null; 12 | byte[] decryptedData = null; 13 | using (XEncryptAPI.EncryptScope scope = new XEncryptAPI.EncryptScope(XEncryptAPI.XEFPlugin.XEncodeType.XGZip, 32)) 14 | { 15 | string data = "This is a test string."; 16 | byte[] rawdata = System.Text.Encoding.UTF8.GetBytes(data); 17 | 18 | scope.Begin(); 19 | XEncryptAPI.ResultCode result = scope.EncryptData(rawdata, out encryptedData); 20 | scope.End(); 21 | Debug.LogWarning($"Encrypt {result}"); 22 | 23 | Debug.LogWarning($"Encrypted Data:{System.Text.Encoding.UTF8.GetString(encryptedData)}"); 24 | } 25 | 26 | using (XEncryptAPI.DecryptScope scope = new XEncryptAPI.DecryptScope()) 27 | { 28 | scope.Begin(); 29 | XEncryptAPI.ResultCode result = scope.DecryptData(encryptedData, out decryptedData); 30 | scope.End(); 31 | Debug.LogWarning($"Decrypt {result}"); 32 | 33 | Debug.LogWarning($"Decrypted Data:{System.Text.Encoding.UTF8.GetString(decryptedData)}"); 34 | } 35 | } 36 | 37 | // Update is called once per frame 38 | void Update() 39 | { 40 | 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/Script/Runtime.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 460f8f148a46fb345b0008b9a9c54a69 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/test.txt: -------------------------------------------------------------------------------- 1 | This is a test. 2 | This is a test. 3 | This is a test. 4 | This is a test. 5 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/test.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db510576fa56d374ca0ccc9ea7231cac 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Unity/Assets/Sample/test.x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/Sample/test.x -------------------------------------------------------------------------------- /Unity/Assets/Sample/test.x.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fd2915cac5649d488c19e1fec599923 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Unity/Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2909e1d36937a3f42b03dcd1bb82d94f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/Scenes/SampleScene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 0 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 1 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &519420028 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 519420032} 133 | - component: {fileID: 519420031} 134 | - component: {fileID: 519420029} 135 | - component: {fileID: 519420030} 136 | m_Layer: 0 137 | m_Name: Main Camera 138 | m_TagString: MainCamera 139 | m_Icon: {fileID: 0} 140 | m_NavMeshLayer: 0 141 | m_StaticEditorFlags: 0 142 | m_IsActive: 1 143 | --- !u!81 &519420029 144 | AudioListener: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInstance: {fileID: 0} 148 | m_PrefabAsset: {fileID: 0} 149 | m_GameObject: {fileID: 519420028} 150 | m_Enabled: 1 151 | --- !u!114 &519420030 152 | MonoBehaviour: 153 | m_ObjectHideFlags: 0 154 | m_CorrespondingSourceObject: {fileID: 0} 155 | m_PrefabInstance: {fileID: 0} 156 | m_PrefabAsset: {fileID: 0} 157 | m_GameObject: {fileID: 519420028} 158 | m_Enabled: 1 159 | m_EditorHideFlags: 0 160 | m_Script: {fileID: 11500000, guid: 460f8f148a46fb345b0008b9a9c54a69, type: 3} 161 | m_Name: 162 | m_EditorClassIdentifier: 163 | --- !u!20 &519420031 164 | Camera: 165 | m_ObjectHideFlags: 0 166 | m_CorrespondingSourceObject: {fileID: 0} 167 | m_PrefabInstance: {fileID: 0} 168 | m_PrefabAsset: {fileID: 0} 169 | m_GameObject: {fileID: 519420028} 170 | m_Enabled: 1 171 | serializedVersion: 2 172 | m_ClearFlags: 2 173 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 174 | m_projectionMatrixMode: 1 175 | m_GateFitMode: 2 176 | m_FOVAxisMode: 0 177 | m_SensorSize: {x: 36, y: 24} 178 | m_LensShift: {x: 0, y: 0} 179 | m_FocalLength: 50 180 | m_NormalizedViewPortRect: 181 | serializedVersion: 2 182 | x: 0 183 | y: 0 184 | width: 1 185 | height: 1 186 | near clip plane: 0.3 187 | far clip plane: 1000 188 | field of view: 60 189 | orthographic: 1 190 | orthographic size: 5 191 | m_Depth: -1 192 | m_CullingMask: 193 | serializedVersion: 2 194 | m_Bits: 4294967295 195 | m_RenderingPath: -1 196 | m_TargetTexture: {fileID: 0} 197 | m_TargetDisplay: 0 198 | m_TargetEye: 0 199 | m_HDR: 1 200 | m_AllowMSAA: 0 201 | m_AllowDynamicResolution: 0 202 | m_ForceIntoRT: 0 203 | m_OcclusionCulling: 0 204 | m_StereoConvergence: 10 205 | m_StereoSeparation: 0.022 206 | --- !u!4 &519420032 207 | Transform: 208 | m_ObjectHideFlags: 0 209 | m_CorrespondingSourceObject: {fileID: 0} 210 | m_PrefabInstance: {fileID: 0} 211 | m_PrefabAsset: {fileID: 0} 212 | m_GameObject: {fileID: 519420028} 213 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 214 | m_LocalPosition: {x: 0, y: 0, z: -10} 215 | m_LocalScale: {x: 1, y: 1, z: 1} 216 | m_Children: [] 217 | m_Father: {fileID: 0} 218 | m_RootOrder: 0 219 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 220 | -------------------------------------------------------------------------------- /Unity/Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c13b53eef8241ee4483e133b379fea75 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d20735e688e6dc4c9f1a15aadba9cb5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Editor/Generator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using XEncryptAPI; 4 | using static XEncryptAPI.XEFPlugin; 5 | 6 | namespace XFileEncoder 7 | { 8 | public static class Generator 9 | { 10 | private static string _xFile; 11 | private static string _outFile; 12 | private static byte _encryptSize; 13 | private static byte _encodeType; 14 | private static int _cmd; 15 | #region Commandline Args 16 | /// 17 | /// commandLineArgs:"encrypt -load global-metadata.dat -out global-metadata.xef -encode-type zip"
18 | /// commandLineArgs:"decrypt -load global-metadata.xef -out global-metadata.dat" 19 | ///
20 | /// 21 | public static void Gen(string[] args) 22 | { 23 | _xFile = ""; 24 | _outFile = "out.xfe"; 25 | _encodeType = 0; 26 | _encryptSize = 16; 27 | _cmd = 0; 28 | 29 | if (!ParseParameter(args)) 30 | { 31 | return; 32 | } 33 | 34 | try 35 | { 36 | if (_cmd == 0) 37 | { 38 | Encrypt(_xFile, _outFile, _encryptSize, (XEncodeType)_encodeType); 39 | } 40 | else if (_cmd == 1) 41 | { 42 | Decrypt(_xFile, _outFile); 43 | } 44 | } 45 | catch (Exception ex) 46 | { 47 | XService.DebugError(ex.Message); 48 | } 49 | } 50 | 51 | static void PrintUsage() 52 | { 53 | XService.DebugLog("Usage:"); 54 | XService.DebugLog("XFileEncoder command args"); 55 | XService.DebugLog("\tcommand:执行命令,必须参数"); 56 | XService.DebugLog("\t\tencrypt:加密命令"); 57 | XService.DebugLog("\t\tdecrypt:解密命令"); 58 | XService.DebugLog("\targs:命令参数"); 59 | XService.DebugLog("\t\t-load:加载欲加密文件,必须参数"); 60 | XService.DebugLog("\t\t-out:输出文件名字.可选参数,默认文件名out.xfe"); 61 | XService.DebugLog("\t\t-encrypt-size:加密数据长度,可选参数,默认16字节. 取值范围:Min(Clamp(encrypt-size, 1, 255), file_size)"); 62 | XService.DebugLog("\t\t-encode-type:加密源数据方式,可选参数. none:只加密源文件内容, 默认;zip:加密并zip压缩源文件内容"); 63 | XService.DebugLog("\t-help:查看帮助"); 64 | XService.DebugLog("例:\n加密:\n\tXFileEncoder encrypt -load test.png -out test.png -encrypt-size 32 -encode-type zip"); 65 | XService.DebugLog("解密:\n\tXFileEncoder edcrypt -load test.png -out test.png"); 66 | } 67 | 68 | static bool ParseParameter(string[] args) 69 | { 70 | bool result = true; 71 | do 72 | { 73 | if (args.Length < 1) 74 | { 75 | XService.DebugError("参数不对{0}", args.Length.ToString()); 76 | result = false; 77 | break; 78 | } 79 | if (args.Length == 1 80 | && args[0] == "-help") 81 | { 82 | result = false; 83 | break; 84 | } 85 | 86 | if (args.Length < 3) 87 | { 88 | XService.DebugError("参数错误{0}", args.Length.ToString()); 89 | result = false; 90 | break; 91 | } 92 | _cmd = -1; 93 | if (args[0] == "encrypt") 94 | { 95 | _cmd = 0; 96 | } 97 | else if (args[0] == "decrypt") 98 | { 99 | _cmd = 1; 100 | } 101 | else 102 | { 103 | result = false; 104 | break; 105 | } 106 | 107 | for (int i = 1; i < args.Length; i++) 108 | { 109 | if (args[i] == "-load") 110 | { 111 | if (i + 1 >= args.Length) 112 | { 113 | break; 114 | } 115 | 116 | if (IsValidVariate(args[i + 1])) 117 | { 118 | i++; 119 | _xFile = args[i]; 120 | } 121 | else 122 | { 123 | XService.DebugError($"{args[i]} 参数值无效"); 124 | } 125 | } 126 | 127 | if (args[i] == "-out") 128 | { 129 | if (i + 1 >= args.Length) 130 | { 131 | break; 132 | } 133 | 134 | if (IsValidVariate(args[i + 1])) 135 | { 136 | i++; 137 | _outFile = args[i]; 138 | } 139 | else 140 | { 141 | XService.DebugError($"{args[i]} 参数值无效"); 142 | } 143 | } 144 | 145 | if (args[i] == "-encrypt-size") 146 | { 147 | _encryptSize = 16; 148 | 149 | if (i + 1 >= args.Length) 150 | { 151 | break; 152 | } 153 | 154 | if (IsValidVariate(args[i + 1])) 155 | { 156 | i++; 157 | if (!byte.TryParse(args[i], out _encryptSize)) 158 | { 159 | _encryptSize = 16; 160 | } 161 | } 162 | else 163 | { 164 | XService.DebugError($"{args[i]} 参数值无效"); 165 | } 166 | 167 | if (_encryptSize < 16) 168 | { 169 | _encryptSize = 16; 170 | } 171 | } 172 | if (args[i] == "-encode-type") 173 | { 174 | _encodeType = 0; 175 | if (i + 1 >= args.Length) 176 | { 177 | break; 178 | } 179 | if (IsValidVariate(args[i + 1])) 180 | { 181 | i++; 182 | if (args[i] == "zip") 183 | { 184 | _encodeType = 1; 185 | } 186 | } 187 | else 188 | { 189 | XService.DebugError($"{args[i]} 参数值无效"); 190 | } 191 | } 192 | } 193 | 194 | if (string.IsNullOrWhiteSpace(_xFile)) 195 | { 196 | result = false; 197 | break; 198 | } 199 | 200 | if (string.IsNullOrWhiteSpace(_outFile)) 201 | { 202 | _outFile = "out.xfe"; 203 | } 204 | } while (false); 205 | 206 | if (!result) 207 | { 208 | PrintUsage(); 209 | } 210 | return result; 211 | } 212 | 213 | static bool IsValidVariate(string variate) 214 | { 215 | if (string.IsNullOrWhiteSpace(variate)) 216 | { 217 | return false; 218 | } 219 | return !variate.StartsWith("-"); 220 | } 221 | #endregion 222 | 223 | #region 解密 224 | /// 225 | /// 文件解密.输入文件/输出文件可同名,同名文件解密后,源文件将丢失. 226 | /// 227 | /// 加密文件名 228 | /// 解密输出文件名 229 | public static void Decrypt(string source, string xFileName) 230 | { 231 | if (string.IsNullOrWhiteSpace(source) || 232 | string.IsNullOrWhiteSpace(xFileName)) 233 | { 234 | XService.DebugError($"参数错误. 源文件:{source}=>输出文件:{xFileName}"); 235 | return; 236 | } 237 | 238 | if (xFileName.EndsWith("/") || xFileName.EndsWith("\\")) 239 | { 240 | XService.DebugError($"输出文件无效:{xFileName}"); 241 | return; 242 | } 243 | try 244 | { 245 | string path = Path.GetDirectoryName(xFileName); 246 | if (!string.IsNullOrWhiteSpace(path)) 247 | { 248 | if (!Directory.Exists(path)) 249 | { 250 | Directory.CreateDirectory(path); 251 | } 252 | } 253 | } 254 | catch (Exception ex) 255 | { 256 | XService.DebugError(ex.Message); 257 | return; 258 | } 259 | 260 | ///Decrypt the source file. 261 | 262 | try 263 | { 264 | using (FileStream sourceStream = new FileStream(source, FileMode.Open)) 265 | { 266 | long lSize = sourceStream.Length; 267 | byte[] data = new byte[lSize]; 268 | sourceStream.Read(data, 0, (int)lSize); 269 | sourceStream.Close(); 270 | 271 | MemoryStream memory = new MemoryStream(data); 272 | 273 | if (!DecryptData(memory, out var buffer)) 274 | { 275 | return; 276 | } 277 | using (FileStream sw = new FileStream(xFileName, FileMode.Create)) 278 | using (BinaryWriter writer = new BinaryWriter(sw)) 279 | { 280 | writer.Write(buffer); 281 | writer.Flush(); 282 | } 283 | } 284 | XService.DebugLog("输出成功!" + xFileName); 285 | } 286 | catch (Exception ex) 287 | { 288 | XService.DebugError(ex.Message); 289 | } 290 | } 291 | /// 292 | /// 解密数据流,输出字节数组 293 | /// 294 | /// 295 | /// 296 | /// 解密成功,返回true,否则返回false 297 | public static bool DecryptData(Stream stream, out byte[] bytes) 298 | { 299 | bytes = null; 300 | if (stream == null) 301 | { 302 | XService.DebugError("输出流为空"); 303 | return false; 304 | } 305 | byte[] rawdata = new byte[stream.Length]; 306 | stream.Read(rawdata, 0, rawdata.Length); 307 | 308 | using (DecryptScope scope = new DecryptScope()) 309 | { 310 | scope.Begin(); 311 | ResultCode code = scope.DecryptData(rawdata, out bytes); 312 | scope.End(); 313 | XService.DebugLog($"State:{code}"); 314 | if (code == ResultCode.InvalidInputData) 315 | { 316 | XService.DebugError($"解密器输入的数据无效"); 317 | } 318 | return code == ResultCode.Ok; 319 | } 320 | } 321 | #endregion 322 | 323 | #region 加密 324 | /// 325 | /// 文件加密.输入文件/输出文件可同名,同名文件加密后,源文件将丢失. 326 | /// 327 | /// 源文件名 328 | /// 加密输出文件名 329 | /// 加密数据长度 330 | /// 源文件数据加密格式 331 | public static void Encrypt(string source, string xFileName, byte encryptSize = 16, XEncodeType encodeType = XEncodeType.XNone) 332 | { 333 | if (string.IsNullOrWhiteSpace(source) 334 | || string.IsNullOrWhiteSpace(xFileName)) 335 | { 336 | XService.DebugError($"参数错误. 源文件:{source}=>输出文件:{xFileName}"); 337 | return; 338 | } 339 | 340 | if (xFileName.EndsWith("/") || xFileName.EndsWith("\\")) 341 | { 342 | XService.DebugError($"输出文件无效:{xFileName}"); 343 | return; 344 | } 345 | try 346 | { 347 | string path = Path.GetDirectoryName(xFileName); 348 | if (!string.IsNullOrWhiteSpace(path)) 349 | { 350 | if (!Directory.Exists(path)) 351 | { 352 | Directory.CreateDirectory(path); 353 | } 354 | } 355 | } 356 | catch (Exception ex) 357 | { 358 | XService.DebugError(ex.Message); 359 | return; 360 | } 361 | 362 | ///Encode the source file. 363 | 364 | try 365 | { 366 | using (FileStream sourceStream = File.Open(source, FileMode.Open)) 367 | { 368 | long lSize = sourceStream.Length; 369 | byte[] data = new byte[lSize]; 370 | sourceStream.Read(data, 0, (int)lSize); 371 | sourceStream.Close(); 372 | using (FileStream sw = new FileStream(xFileName, FileMode.Create)) 373 | { 374 | if (!EncryptData(data, sw, encryptSize, encodeType)) 375 | { 376 | XService.DebugError("失败!" + xFileName); 377 | return; 378 | } 379 | } 380 | } 381 | 382 | XService.DebugLog("输出成功!" + xFileName); 383 | } 384 | catch (Exception ex) 385 | { 386 | XService.DebugError(ex.Message); 387 | } 388 | } 389 | /// 390 | /// 数据加密,输出数据流. 391 | /// 392 | /// 待加密数据 393 | /// 加密输出 394 | /// 加密数据长度 395 | /// 源文件数据加密格式 396 | /// 加密成功,返回true,否则返回false 397 | public static bool EncryptData(byte[] bytes, Stream stream, byte encryptSize = 16, XEncodeType type = XEncodeType.XGZip) 398 | { 399 | if (stream == null) 400 | { 401 | XService.DebugError("输出流为空"); 402 | return false; 403 | } 404 | 405 | if (bytes == null || bytes.Length <= 0) 406 | { 407 | XService.DebugError("加密数据为空"); 408 | return false; 409 | } 410 | using (EncryptScope scope = new EncryptScope(type, encryptSize)) 411 | { 412 | scope.Begin(); 413 | ResultCode code = scope.EncryptData(bytes, out var encodeData, encryptSize, type); 414 | scope.End(); 415 | XService.DebugLog($"State:{code}"); 416 | if (code == ResultCode.Ok) 417 | { 418 | using (BinaryWriter bw = new BinaryWriter(stream)) 419 | { 420 | bw.Write(encodeData, 0, encodeData.Length); 421 | bw.Flush(); 422 | } 423 | } 424 | else if (code == ResultCode.EncryptedData) 425 | { 426 | XService.DebugWarn($"源数据已经加密"); 427 | } 428 | return code == ResultCode.Ok; 429 | } 430 | 431 | } 432 | #endregion 433 | } 434 | } 435 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Editor/Generator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12df8c9a499a21846a4fe6f42d3e820f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Editor/Xencrypt.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Xencrypt.Editor", 3 | "rootNamespace": "", 4 | "references": [ 5 | "XEncryptApi" 6 | ], 7 | "includePlatforms": [ 8 | "Editor" 9 | ], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": true, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [], 16 | "versionDefines": [], 17 | "noEngineReferences": false 18 | } -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Editor/Xencrypt.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f020ce42bcd104a419edbfa8b0948796 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b8ecaf730defbe4381589284b5e9d09 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca80981569d8b6146937c970d827f68f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/arm64-v8a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3431e807ce9137746bf19371e3a885a2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/arm64-v8a/libXEncrypt.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/Android/arm64-v8a/libXEncrypt.so -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/arm64-v8a/libXEncrypt.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38637a06168a4104abcab12b5991188d 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: 31 | CPU: ARM64 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/armeabi-v7a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d9a02cfc39844b4faaaa450643b6c0f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/armeabi-v7a/libXEncrypt.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/Android/armeabi-v7a/libXEncrypt.so -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/armeabi-v7a/libXEncrypt.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81705c8405cf0c94c9f09b1ec5dcfd8d 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 72d08cfb97c65834bb3b097a15a72867 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/x86/libXEncrypt.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/Android/x86/libXEncrypt.so -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/x86/libXEncrypt.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5bd748b3203cc424982c3cfb64684626 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: 31 | CPU: X86 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7b7d00e4e93c46449cf34b0db4e1035 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/x86_64/libXEncrypt.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/Android/x86_64/libXEncrypt.so -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Android/x86_64/libXEncrypt.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fe9ee44ff2a0be4cb79f50b0d534829 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 1 30 | settings: 31 | CPU: X86_64 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Linux.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82b13f9b6e657674a9363fdede58d11c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Linux/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 970e169fea518f4409f6fe372c3a0c30 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Linux/x86_64/libXEncrypt.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/Linux/x86_64/libXEncrypt.so -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Linux/x86_64/libXEncrypt.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94388596d80167b419e4d982034396c2 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 0 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 0 24 | Exclude Win64: 0 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86_64 43 | DefaultValueInitialized: true 44 | OS: Linux 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 1 49 | settings: 50 | CPU: AnyCPU 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 1 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 1 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/OSX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1be2f661a0bbc9d428a29ddabea66fe2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/OSX/libXEncrypt.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/OSX/libXEncrypt.dylib -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/OSX/libXEncrypt.dylib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 134d85344d00fa24eb72850c54c3cf83 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86_64 43 | DefaultValueInitialized: true 44 | OS: OSX 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 1 55 | settings: 56 | CPU: AnyCPU 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: x86 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2997b72e50edf164faf083a57fab4d4d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA/ARM64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78ebc9f283d2f1a4c8e5963f425de7ce 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA/ARM64/XEncrypt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/WSA/ARM64/XEncrypt.dll -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA/ARM64/XEncrypt.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c308615b0fcc30442bfae08a90c43d22 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA/x64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8374c0c24a200ff40a575de1e99ca620 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA/x64/XEncrypt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/WSA/x64/XEncrypt.dll -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA/x64/XEncrypt.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98f00880eeaaddd47b5be8cc0dd30ca1 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 707155ac2579ce442ab7190fcc6adc15 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA/x86/XEncrypt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/WSA/x86/XEncrypt.dll -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/WSA/x86/XEncrypt.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73c2c05ad2410de41af6464f0afc2aad 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Windows.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02268965b0e41674eaf4713cf3d1aba0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Windows/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9235dadb109b1f4a98846da5c0ddbd2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Windows/x86/XEncrypt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/Windows/x86/XEncrypt.dll -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Windows/x86/XEncrypt.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 921ccc0bc87cbf4478638ffc7b0f7a7a 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 0 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 0 24 | Exclude Win64: 0 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86 43 | DefaultValueInitialized: true 44 | OS: Windows 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 1 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 1 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 1 61 | settings: 62 | CPU: x86 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 1 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Windows/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07c1e16297dac2045b6ed13412c06621 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Windows/x86_64/XEncrypt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/Windows/x86_64/XEncrypt.dll -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/Windows/x86_64/XEncrypt.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15d09172c45d20b4ea1e6d7fb945245c 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 0 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 0 24 | Exclude Win64: 0 25 | Exclude iOS: 1 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86_64 43 | DefaultValueInitialized: true 44 | OS: Windows 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 1 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 1 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 1 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 1 67 | settings: 68 | CPU: x86_64 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 0 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: AnyCPU 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f53a56059421c9a468b3bd38e447f64b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/iOS/libXEncrypt.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/iOS/libXEncrypt.a -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/iOS/libXEncrypt.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb3c388409da3d347a22e37ebf354b96 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 0 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 1 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: ARM64 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/tvOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcb886b956eb51846a9d06eb6548c091 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/tvOS/libXEncrypt.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Y-way/XEncrypt-Unity/73ede7c34131e7d98d5fe796ae23759f3c704fbc/Unity/Assets/XEncrypt/Plugins/tvOS/libXEncrypt.a -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Plugins/tvOS/libXEncrypt.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6cd3b1fa1012b242ba6f610f38709a9 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 0 26 | - first: 27 | Android: Android 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: ARMv7 32 | - first: 33 | Any: 34 | second: 35 | enabled: 0 36 | settings: {} 37 | - first: 38 | Editor: Editor 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: AnyCPU 43 | DefaultValueInitialized: true 44 | OS: AnyOS 45 | - first: 46 | Standalone: Linux64 47 | second: 48 | enabled: 0 49 | settings: 50 | CPU: None 51 | - first: 52 | Standalone: OSXUniversal 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: None 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: None 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: None 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 1 73 | settings: 74 | AddToEmbeddedBinaries: false 75 | CPU: ARM64 76 | CompileFlags: 77 | FrameworkDependencies: 78 | userData: 79 | assetBundleName: 80 | assetBundleVariant: 81 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79878f532885bf04aa6578473d00599f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1921376b0f3d894cbe7d14dc5e371b5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/DecryptScope.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using static XEncryptAPI.XService; 4 | 5 | namespace XEncryptAPI 6 | { 7 | /// 8 | /// 解密Scope 9 | /// 10 | public class DecryptScope : IDisposable 11 | { 12 | IntPtr _plugin = IntPtr.Zero; 13 | IntPtr _service = IntPtr.Zero; 14 | public DecryptScope() 15 | { 16 | #if DEBUG 17 | DebugLog("DecryptScope Initialize"); 18 | #endif 19 | _plugin = XEFPlugin.Create(XEFPlugin.XEncodeType.XNone, 0); 20 | } 21 | 22 | public void Begin() 23 | { 24 | #if DEBUG 25 | DebugLog("DecryptScope Begin"); 26 | #endif 27 | _service = XService.Initialize(_plugin); 28 | } 29 | 30 | public ResultCode DecryptData(byte[] rawdata, out byte[] data) 31 | { 32 | #if DEBUG 33 | DebugLog("DecryptScope DecryptData"); 34 | #endif 35 | data = rawdata; 36 | unsafe 37 | { 38 | fixed(byte* rawdataPtr = rawdata) 39 | { 40 | if(!XService.IsEncrypted(_service, rawdataPtr, rawdata.LongLength)) 41 | { 42 | return ResultCode.InvalidInputData; 43 | } 44 | 45 | XResult result = XService.Decrypt(_service, rawdataPtr, rawdata.LongLength); 46 | #if DEBUG 47 | DebugLog($"Decrypt data state({result.code})"); 48 | #endif 49 | if(result.code == ResultCode.Ok) 50 | { 51 | data = new byte[result.size]; 52 | Marshal.Copy(result.data, data, 0, (int)result.size); 53 | } 54 | XService.ReleaseResult(_service, ref result); 55 | return result.code; 56 | } 57 | } 58 | } 59 | 60 | public void End() 61 | { 62 | #if DEBUG 63 | DebugLog("DecryptScope End"); 64 | #endif 65 | if(_service != IntPtr.Zero) 66 | { 67 | XService.Deinitialize(_service); 68 | } 69 | } 70 | 71 | public void Dispose() 72 | { 73 | if(_plugin != IntPtr.Zero) 74 | { 75 | XEFPlugin.Destroy(_plugin); 76 | } 77 | _plugin = IntPtr.Zero; 78 | #if DEBUG 79 | DebugLog("DecryptScope UnInitialize"); 80 | #endif 81 | 82 | } 83 | } 84 | 85 | } 86 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/DecryptScope.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82f5d853fdf4e72488f29a23abcc88e4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/EncryptScope.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using static XEncryptAPI.XService; 4 | 5 | namespace XEncryptAPI 6 | { 7 | /// 8 | /// 加密Scope 9 | /// 10 | public class EncryptScope : IDisposable 11 | { 12 | IntPtr _plugin = IntPtr.Zero; 13 | IntPtr _service = IntPtr.Zero; 14 | public EncryptScope(XEFPlugin.XEncodeType type, byte encryptSize = 16) 15 | { 16 | #if DEBUG 17 | DebugLog("EncryptScope Initialize"); 18 | #endif 19 | _plugin = XEFPlugin.Create(type, encryptSize); 20 | } 21 | 22 | public void Begin() 23 | { 24 | #if DEBUG 25 | DebugLog("EncryptScope Begin"); 26 | #endif 27 | _service = XService.Initialize(_plugin); 28 | } 29 | 30 | public ResultCode EncryptData(byte[] rawdata, out byte[] data, byte encryptSize = 16, XEFPlugin.XEncodeType type = XEFPlugin.XEncodeType.XNone) 31 | { 32 | #if DEBUG 33 | DebugLog("EncryptScope EncryptData"); 34 | #endif 35 | data = rawdata; 36 | unsafe 37 | { 38 | fixed(byte* rawdataPtr = rawdata) 39 | { 40 | if(XService.IsEncrypted(_service, rawdataPtr, rawdata.LongLength)) 41 | { 42 | return ResultCode.EncryptedData; 43 | } 44 | 45 | XResult result = XService.Encrypt(_service, rawdataPtr, rawdata.LongLength); 46 | #if DEBUG 47 | DebugLog($"Encrypt data state({result.code})"); 48 | #endif 49 | if(result.code == ResultCode.Ok) 50 | { 51 | data = new byte[result.size]; 52 | 53 | Marshal.Copy(result.data, data, 0, (int)result.size); 54 | } 55 | XService.ReleaseResult(_service, ref result); 56 | return result.code; 57 | } 58 | } 59 | } 60 | 61 | public void End() 62 | { 63 | #if DEBUG 64 | DebugLog("EncryptScope End"); 65 | #endif 66 | if(_service != IntPtr.Zero) 67 | { 68 | XService.Deinitialize(_service); 69 | } 70 | _service = IntPtr.Zero; 71 | } 72 | 73 | public void Dispose() 74 | { 75 | #if DEBUG 76 | DebugLog("EncryptScope UnInitialize"); 77 | #endif 78 | if(_plugin != IntPtr.Zero) 79 | { 80 | XEFPlugin.Destroy(_plugin); 81 | } 82 | _plugin = IntPtr.Zero; 83 | } 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/EncryptScope.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96f58f4ab3c600e49b5c5cf4064ed6fb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/NativeLibrary.cs: -------------------------------------------------------------------------------- 1 | public static class NativeLibrary 2 | { 3 | #if UNITY_EDITOR 4 | public const string Name = "XEncrypt"; 5 | #else 6 | #if UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_STANDALONE_LINUX 7 | public const string Name = "XEncrypt"; 8 | #elif UNITY_IOS || UNITY_WEBGL 9 | public const string Name = "__Internal"; 10 | #elif UNITY_ANDROID 11 | public const string Name = "XEncrypt"; 12 | #else 13 | public const string Name = "XEncrypt"; 14 | #endif 15 | #endif 16 | } 17 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/NativeLibrary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e519a0be469d43a48971d01a1dcb5c63 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/ResultCode.cs: -------------------------------------------------------------------------------- 1 | namespace XEncryptAPI 2 | { 3 | /// 4 | /// 加密/解密结果状态码 5 | /// 6 | public enum ResultCode : int 7 | { 8 | /// 9 | /// 完成 10 | /// 11 | Ok, 12 | /// 13 | /// 未知 14 | /// 15 | Unknown, 16 | /// 17 | /// 服务未初始化 18 | /// 19 | UnInitialize, 20 | /// 21 | /// 无效的加密/解密插件 22 | /// 23 | InvalidPlugin, 24 | /// 25 | /// 无效的输入数据 26 | /// 27 | InvalidInputData, 28 | /// 29 | /// 无效的上下文 30 | /// 31 | InvalidXContext, 32 | /// 33 | /// 解密数据长度错误 34 | /// 35 | InvalidInputDataSize, 36 | /// 37 | /// 无效的解密器 38 | /// 39 | InvalidDecoder, 40 | /// 41 | /// 解密数据解压缩失败 42 | /// 43 | InvalidUnzip, 44 | /// 45 | /// 无效的加密器 46 | /// 47 | InvalidEncoder, 48 | /// 49 | /// 数据GZip压缩编码失败 50 | /// 51 | InvalidZip, 52 | /// 53 | /// 数据已加密 54 | /// 55 | EncryptedData, 56 | /// 57 | /// 内存不足 58 | /// 59 | OutMemory, 60 | /// 61 | /// 服务上下文类型不匹配 62 | /// 63 | ContextTypeError, 64 | /// 65 | /// 不支持解密服务 66 | /// 67 | NotSupportDecrypt, 68 | /// 69 | /// 不支持加密服务 70 | /// 71 | NotSupportEncrypt, 72 | }; 73 | 74 | } 75 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/ResultCode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c286b0c10d20b8e419e2bf72e0c3196c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/XEncryptApi.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | namespace XEncryptAPI 4 | { 5 | public sealed class XService : IDisposable 6 | { 7 | /// 8 | /// 加密/解密结果 9 | /// 10 | [StructLayout(LayoutKind.Sequential)] 11 | public struct XResult 12 | { 13 | /// 14 | /// 结果状态码 15 | /// 16 | public ResultCode code; 17 | /// 18 | /// 结果数据大小 19 | /// 20 | public long size; 21 | /// 22 | /// 结果数据 23 | /// 24 | public IntPtr data; 25 | /// 26 | /// XReult指针, 用于释放内存 27 | /// 28 | private IntPtr result; 29 | } 30 | 31 | #region C# API 32 | private IntPtr _service; 33 | 34 | public XService(IPlugin plugin) 35 | { 36 | _service = XService.Initialize(plugin.Native); 37 | } 38 | 39 | public unsafe bool IsEncrypted(byte[] data, long size) 40 | { 41 | fixed(byte* ptr = data) 42 | { 43 | return XService.IsEncrypted(_service, ptr, size); 44 | } 45 | } 46 | 47 | public unsafe XResult Encrypt(byte[] data, long size) 48 | { 49 | fixed(byte* ptr = data) 50 | { 51 | return XService.Encrypt(_service, ptr, data.Length); 52 | } 53 | } 54 | 55 | public unsafe XResult Decrypt(byte[] data, long size) 56 | { 57 | fixed(byte* ptr = data) 58 | { 59 | return XService.Decrypt(_service, ptr, data.Length); 60 | } 61 | } 62 | 63 | public unsafe void ReleaseResult(XResult result) 64 | { 65 | XService.ReleaseResult(_service, ref result); 66 | } 67 | 68 | public void Dispose() 69 | { 70 | if(_service != IntPtr.Zero) 71 | { 72 | Deinitialize(_service); 73 | } 74 | _service = IntPtr.Zero; 75 | } 76 | #endregion 77 | 78 | #region Log 79 | public static void DebugLog(string format, params object[] args) 80 | { 81 | #if UNITY_EDITOR 82 | UnityEngine.Debug.LogFormat(format, args); 83 | #else 84 | Console.WriteLine(format, args); 85 | #endif 86 | } 87 | 88 | public static void DebugWarn(string format, params object[] args) 89 | { 90 | #if UNITY_EDITOR 91 | UnityEngine.Debug.LogWarningFormat(format, args); 92 | #else 93 | Console.WriteLine(format, args); 94 | #endif 95 | } 96 | 97 | public static void DebugError(string format, params object[] args) 98 | { 99 | #if UNITY_EDITOR 100 | UnityEngine.Debug.LogErrorFormat(format, args); 101 | #else 102 | Console.WriteLine(format, args); 103 | #endif 104 | } 105 | #endregion 106 | 107 | #region Native API 108 | /// 109 | /// 初始化服务
110 | /// void* xencrypt_service_initialize(void* plugin) 111 | ///
112 | /// 加密/解密插件实例 113 | /// 加密/解密服务实例 114 | [DllImport(NativeLibrary.Name, EntryPoint = "xencrypt_service_initialize", CallingConvention = CallingConvention.Cdecl)] 115 | public static extern IntPtr Initialize(IntPtr plugin); 116 | 117 | /// 118 | /// 检查数据是否已加密
119 | /// bool xencrypt_service_is_encrypted(void* service, const byte* data, int64_t size) 120 | ///
121 | /// 加密/解密服务实例 122 | /// 内存数据地址 123 | /// 数据长度 124 | /// 数据是否已加密.返回true,数据已加密,否则,未加密. 125 | [DllImport(NativeLibrary.Name, EntryPoint = "xencrypt_service_is_encrypted", CallingConvention = CallingConvention.Cdecl)] 126 | public static extern unsafe bool IsEncrypted(IntPtr service, byte* data, long size); 127 | /// 128 | /// 加密数据
129 | /// void* xencrypt_service_encrypt(void* service, const byte* in, int64_t in_size) 130 | /// 加密/解密服务实例 131 | /// 待加密数据 132 | /// 待加密数据长度 133 | /// 解密结果实例指针 134 | [DllImport(NativeLibrary.Name, EntryPoint = "xencrypt_service_encrypt", CallingConvention = CallingConvention.Cdecl)] 135 | public static extern unsafe XResult Encrypt(IntPtr service, byte* inData, long size); 136 | /// 137 | /// 解密数据
138 | /// void* xencrypt_service_decrypt(void* service, const byte* in, int64_t in_size) 139 | ///
140 | /// 加密/解密服务实例 141 | /// 待解密数据 142 | /// 密数据长度 143 | /// 解密结果实例指针 144 | [DllImport(NativeLibrary.Name, EntryPoint = "xencrypt_service_decrypt", CallingConvention = CallingConvention.Cdecl)] 145 | public static extern unsafe XResult Decrypt(IntPtr service, byte* inData, long size, bool cloneInput = false); 146 | /// 147 | /// 销毁结果
148 | /// void xencrypt_service_release_result(void* service, void* result) 149 | ///
150 | /// 加密/解密服务实例 151 | /// 加/解密结果指针 152 | /// 153 | [DllImport(NativeLibrary.Name, EntryPoint = "xencrypt_service_release_result", CallingConvention = CallingConvention.Cdecl)] 154 | public static extern unsafe void ReleaseResult(IntPtr service, ref XResult result); 155 | /// 156 | /// 注销服务
157 | /// void xencrypt_service_deinitialize(void* service) 158 | ///
159 | /// 加密/解密服务实例 160 | [DllImport(NativeLibrary.Name, EntryPoint = "xencrypt_service_deinitialize", CallingConvention = CallingConvention.Cdecl)] 161 | public static extern unsafe void Deinitialize(IntPtr service); 162 | #endregion 163 | } 164 | } 165 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/XEncryptApi.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19cb2d32617f3b74cab01da34f4e2546 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/plugin.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7754e08859b6842428661d6626b771a8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/plugin/IPlugin.cs: -------------------------------------------------------------------------------- 1 | 2 | using System; 3 | 4 | namespace XEncryptAPI 5 | { 6 | public interface IPlugin 7 | { 8 | IntPtr Native { get; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/plugin/IPlugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52f246dd79cae2140ba9aab86323b85c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/plugin/XEFPlugin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace XEncryptAPI 5 | { 6 | public sealed class XEFPlugin : IPlugin, IDisposable 7 | { 8 | #region C# API 9 | private IntPtr _native; 10 | /// 11 | /// 加密服务时,源数据加密编码格式 12 | /// 13 | public enum XEncodeType : int 14 | { 15 | /// 16 | /// 源文件不作处理,只增加加密文件头部 17 | /// 18 | XNone, 19 | /// 20 | /// 源数据重新GZip压缩编码 21 | /// 22 | XGZip, 23 | }; 24 | 25 | public IntPtr Native => _native; 26 | 27 | public XEFPlugin(XEncodeType type, byte encryptSize = 16) 28 | { 29 | _native = Create(type, encryptSize); 30 | } 31 | 32 | public void Dispose() 33 | { 34 | if(_native != IntPtr.Zero) 35 | { 36 | Destroy(_native); 37 | } 38 | _native = IntPtr.Zero; 39 | } 40 | #endregion 41 | 42 | #region Native API 43 | 44 | /// 45 | /// 创建XEF格式加密/解密器插件实例
46 | /// void* xef_plugin_create(int type, uint8_t encryptSize) 47 | ///
48 | /// 数据加密编码类型 49 | /// 数据加密长度 50 | /// 插件实例指针 51 | [DllImport(NativeLibrary.Name, EntryPoint = "xef_plugin_create", CallingConvention = CallingConvention.Cdecl)] 52 | public static extern IntPtr Create(XEncodeType type, byte encryptSize); 53 | 54 | /// 55 | /// 销毁XEF格式 加密/解密插件实例
56 | /// void xef_plugin_destroy(void* plugin) 57 | ///
58 | /// 已创建的插件实例 59 | [DllImport(NativeLibrary.Name, EntryPoint = "xef_plugin_destroy", CallingConvention = CallingConvention.Cdecl)] 60 | public static extern void Destroy(IntPtr plugin); 61 | } 62 | #endregion 63 | } 64 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/API/plugin/XEFPlugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7bdaaaafbd1f654288d8a632644cd21 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/XEncryptApi.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "XEncryptApi", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [], 6 | "excludePlatforms": [], 7 | "allowUnsafeCode": true, 8 | "overrideReferences": false, 9 | "precompiledReferences": [], 10 | "autoReferenced": true, 11 | "defineConstraints": [], 12 | "versionDefines": [], 13 | "noEngineReferences": false 14 | } -------------------------------------------------------------------------------- /Unity/Assets/XEncrypt/Runtime/XEncryptApi.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b409373e3269a4943a2dc4eb068f6add 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Unity/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.animation": "3.2.18", 4 | "com.unity.2d.pixel-perfect": "2.1.0", 5 | "com.unity.2d.psdimporter": "2.1.11", 6 | "com.unity.2d.sprite": "1.0.0", 7 | "com.unity.2d.spriteshape": "3.0.18", 8 | "com.unity.2d.tilemap": "1.0.0", 9 | "com.unity.collab-proxy": "1.14.18", 10 | "com.unity.ide.rider": "1.2.1", 11 | "com.unity.ide.visualstudio": "2.0.15", 12 | "com.unity.ide.vscode": "1.2.5", 13 | "com.unity.test-framework": "1.1.31", 14 | "com.unity.textmeshpro": "2.1.6", 15 | "com.unity.timeline": "1.2.18", 16 | "com.unity.ugui": "1.0.0", 17 | "com.unity.modules.ai": "1.0.0", 18 | "com.unity.modules.androidjni": "1.0.0", 19 | "com.unity.modules.animation": "1.0.0", 20 | "com.unity.modules.assetbundle": "1.0.0", 21 | "com.unity.modules.audio": "1.0.0", 22 | "com.unity.modules.autostreaming": "1.0.0", 23 | "com.unity.modules.cloth": "1.0.0", 24 | "com.unity.modules.director": "1.0.0", 25 | "com.unity.modules.imageconversion": "1.0.0", 26 | "com.unity.modules.imgui": "1.0.0", 27 | "com.unity.modules.jsonserialize": "1.0.0", 28 | "com.unity.modules.particlesystem": "1.0.0", 29 | "com.unity.modules.physics": "1.0.0", 30 | "com.unity.modules.physics2d": "1.0.0", 31 | "com.unity.modules.screencapture": "1.0.0", 32 | "com.unity.modules.terrain": "1.0.0", 33 | "com.unity.modules.terrainphysics": "1.0.0", 34 | "com.unity.modules.tilemap": "1.0.0", 35 | "com.unity.modules.ui": "1.0.0", 36 | "com.unity.modules.uielements": "1.0.0", 37 | "com.unity.modules.umbra": "1.0.0", 38 | "com.unity.modules.unityanalytics": "1.0.0", 39 | "com.unity.modules.unitywebrequest": "1.0.0", 40 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 41 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 42 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 43 | "com.unity.modules.unitywebrequestwww": "1.0.0", 44 | "com.unity.modules.vehicles": "1.0.0", 45 | "com.unity.modules.video": "1.0.0", 46 | "com.unity.modules.vr": "1.0.0", 47 | "com.unity.modules.wind": "1.0.0", 48 | "com.unity.modules.xr": "1.0.0" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Unity/Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.animation": { 4 | "version": "3.2.18", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.2d.common": "2.1.2", 9 | "com.unity.mathematics": "1.1.0", 10 | "com.unity.2d.sprite": "1.0.0", 11 | "com.unity.modules.animation": "1.0.0", 12 | "com.unity.modules.uielements": "1.0.0" 13 | }, 14 | "url": "https://packages.unity.cn" 15 | }, 16 | "com.unity.2d.common": { 17 | "version": "2.1.2", 18 | "depth": 1, 19 | "source": "registry", 20 | "dependencies": { 21 | "com.unity.2d.sprite": "1.0.0", 22 | "com.unity.modules.uielements": "1.0.0" 23 | }, 24 | "url": "https://packages.unity.cn" 25 | }, 26 | "com.unity.2d.path": { 27 | "version": "2.1.1", 28 | "depth": 1, 29 | "source": "registry", 30 | "dependencies": {}, 31 | "url": "https://packages.unity.cn" 32 | }, 33 | "com.unity.2d.pixel-perfect": { 34 | "version": "2.1.0", 35 | "depth": 0, 36 | "source": "registry", 37 | "dependencies": {}, 38 | "url": "https://packages.unity.cn" 39 | }, 40 | "com.unity.2d.psdimporter": { 41 | "version": "2.1.11", 42 | "depth": 0, 43 | "source": "registry", 44 | "dependencies": { 45 | "com.unity.2d.common": "2.1.2", 46 | "com.unity.2d.animation": "3.2.17", 47 | "com.unity.2d.sprite": "1.0.0" 48 | }, 49 | "url": "https://packages.unity.cn" 50 | }, 51 | "com.unity.2d.sprite": { 52 | "version": "1.0.0", 53 | "depth": 0, 54 | "source": "builtin", 55 | "dependencies": {} 56 | }, 57 | "com.unity.2d.spriteshape": { 58 | "version": "3.0.18", 59 | "depth": 0, 60 | "source": "registry", 61 | "dependencies": { 62 | "com.unity.mathematics": "1.1.0", 63 | "com.unity.2d.common": "2.1.0", 64 | "com.unity.2d.path": "2.1.1" 65 | }, 66 | "url": "https://packages.unity.cn" 67 | }, 68 | "com.unity.2d.tilemap": { 69 | "version": "1.0.0", 70 | "depth": 0, 71 | "source": "builtin", 72 | "dependencies": {} 73 | }, 74 | "com.unity.collab-proxy": { 75 | "version": "1.14.18", 76 | "depth": 0, 77 | "source": "registry", 78 | "dependencies": {}, 79 | "url": "https://packages.unity.cn" 80 | }, 81 | "com.unity.ext.nunit": { 82 | "version": "1.0.6", 83 | "depth": 1, 84 | "source": "registry", 85 | "dependencies": {}, 86 | "url": "https://packages.unity.cn" 87 | }, 88 | "com.unity.ide.rider": { 89 | "version": "1.2.1", 90 | "depth": 0, 91 | "source": "registry", 92 | "dependencies": { 93 | "com.unity.test-framework": "1.1.1" 94 | }, 95 | "url": "https://packages.unity.cn" 96 | }, 97 | "com.unity.ide.visualstudio": { 98 | "version": "2.0.15", 99 | "depth": 0, 100 | "source": "registry", 101 | "dependencies": { 102 | "com.unity.test-framework": "1.1.9" 103 | }, 104 | "url": "https://packages.unity.cn" 105 | }, 106 | "com.unity.ide.vscode": { 107 | "version": "1.2.5", 108 | "depth": 0, 109 | "source": "registry", 110 | "dependencies": {}, 111 | "url": "https://packages.unity.cn" 112 | }, 113 | "com.unity.mathematics": { 114 | "version": "1.1.0", 115 | "depth": 1, 116 | "source": "registry", 117 | "dependencies": {}, 118 | "url": "https://packages.unity.cn" 119 | }, 120 | "com.unity.test-framework": { 121 | "version": "1.1.31", 122 | "depth": 0, 123 | "source": "registry", 124 | "dependencies": { 125 | "com.unity.ext.nunit": "1.0.6", 126 | "com.unity.modules.imgui": "1.0.0", 127 | "com.unity.modules.jsonserialize": "1.0.0" 128 | }, 129 | "url": "https://packages.unity.cn" 130 | }, 131 | "com.unity.textmeshpro": { 132 | "version": "2.1.6", 133 | "depth": 0, 134 | "source": "registry", 135 | "dependencies": { 136 | "com.unity.ugui": "1.0.0" 137 | }, 138 | "url": "https://packages.unity.cn" 139 | }, 140 | "com.unity.timeline": { 141 | "version": "1.2.18", 142 | "depth": 0, 143 | "source": "registry", 144 | "dependencies": { 145 | "com.unity.modules.director": "1.0.0", 146 | "com.unity.modules.animation": "1.0.0", 147 | "com.unity.modules.audio": "1.0.0", 148 | "com.unity.modules.particlesystem": "1.0.0" 149 | }, 150 | "url": "https://packages.unity.cn" 151 | }, 152 | "com.unity.ugui": { 153 | "version": "1.0.0", 154 | "depth": 0, 155 | "source": "builtin", 156 | "dependencies": { 157 | "com.unity.modules.ui": "1.0.0", 158 | "com.unity.modules.imgui": "1.0.0" 159 | } 160 | }, 161 | "com.unity.modules.ai": { 162 | "version": "1.0.0", 163 | "depth": 0, 164 | "source": "builtin", 165 | "dependencies": {} 166 | }, 167 | "com.unity.modules.androidjni": { 168 | "version": "1.0.0", 169 | "depth": 0, 170 | "source": "builtin", 171 | "dependencies": {} 172 | }, 173 | "com.unity.modules.animation": { 174 | "version": "1.0.0", 175 | "depth": 0, 176 | "source": "builtin", 177 | "dependencies": {} 178 | }, 179 | "com.unity.modules.assetbundle": { 180 | "version": "1.0.0", 181 | "depth": 0, 182 | "source": "builtin", 183 | "dependencies": {} 184 | }, 185 | "com.unity.modules.audio": { 186 | "version": "1.0.0", 187 | "depth": 0, 188 | "source": "builtin", 189 | "dependencies": {} 190 | }, 191 | "com.unity.modules.autostreaming": { 192 | "version": "1.0.0", 193 | "depth": 0, 194 | "source": "builtin", 195 | "dependencies": { 196 | "com.unity.modules.animation": "1.0.0", 197 | "com.unity.modules.assetbundle": "1.0.0", 198 | "com.unity.modules.audio": "1.0.0", 199 | "com.unity.modules.jsonserialize": "1.0.0", 200 | "com.unity.modules.unitywebrequest": "1.0.0", 201 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0" 202 | } 203 | }, 204 | "com.unity.modules.cloth": { 205 | "version": "1.0.0", 206 | "depth": 0, 207 | "source": "builtin", 208 | "dependencies": { 209 | "com.unity.modules.physics": "1.0.0" 210 | } 211 | }, 212 | "com.unity.modules.director": { 213 | "version": "1.0.0", 214 | "depth": 0, 215 | "source": "builtin", 216 | "dependencies": { 217 | "com.unity.modules.audio": "1.0.0", 218 | "com.unity.modules.animation": "1.0.0" 219 | } 220 | }, 221 | "com.unity.modules.imageconversion": { 222 | "version": "1.0.0", 223 | "depth": 0, 224 | "source": "builtin", 225 | "dependencies": {} 226 | }, 227 | "com.unity.modules.imgui": { 228 | "version": "1.0.0", 229 | "depth": 0, 230 | "source": "builtin", 231 | "dependencies": {} 232 | }, 233 | "com.unity.modules.jsonserialize": { 234 | "version": "1.0.0", 235 | "depth": 0, 236 | "source": "builtin", 237 | "dependencies": {} 238 | }, 239 | "com.unity.modules.particlesystem": { 240 | "version": "1.0.0", 241 | "depth": 0, 242 | "source": "builtin", 243 | "dependencies": {} 244 | }, 245 | "com.unity.modules.physics": { 246 | "version": "1.0.0", 247 | "depth": 0, 248 | "source": "builtin", 249 | "dependencies": {} 250 | }, 251 | "com.unity.modules.physics2d": { 252 | "version": "1.0.0", 253 | "depth": 0, 254 | "source": "builtin", 255 | "dependencies": {} 256 | }, 257 | "com.unity.modules.screencapture": { 258 | "version": "1.0.0", 259 | "depth": 0, 260 | "source": "builtin", 261 | "dependencies": { 262 | "com.unity.modules.imageconversion": "1.0.0" 263 | } 264 | }, 265 | "com.unity.modules.subsystems": { 266 | "version": "1.0.0", 267 | "depth": 1, 268 | "source": "builtin", 269 | "dependencies": { 270 | "com.unity.modules.jsonserialize": "1.0.0" 271 | } 272 | }, 273 | "com.unity.modules.terrain": { 274 | "version": "1.0.0", 275 | "depth": 0, 276 | "source": "builtin", 277 | "dependencies": {} 278 | }, 279 | "com.unity.modules.terrainphysics": { 280 | "version": "1.0.0", 281 | "depth": 0, 282 | "source": "builtin", 283 | "dependencies": { 284 | "com.unity.modules.physics": "1.0.0", 285 | "com.unity.modules.terrain": "1.0.0" 286 | } 287 | }, 288 | "com.unity.modules.tilemap": { 289 | "version": "1.0.0", 290 | "depth": 0, 291 | "source": "builtin", 292 | "dependencies": { 293 | "com.unity.modules.physics2d": "1.0.0" 294 | } 295 | }, 296 | "com.unity.modules.ui": { 297 | "version": "1.0.0", 298 | "depth": 0, 299 | "source": "builtin", 300 | "dependencies": {} 301 | }, 302 | "com.unity.modules.uielements": { 303 | "version": "1.0.0", 304 | "depth": 0, 305 | "source": "builtin", 306 | "dependencies": { 307 | "com.unity.modules.imgui": "1.0.0", 308 | "com.unity.modules.jsonserialize": "1.0.0" 309 | } 310 | }, 311 | "com.unity.modules.umbra": { 312 | "version": "1.0.0", 313 | "depth": 0, 314 | "source": "builtin", 315 | "dependencies": {} 316 | }, 317 | "com.unity.modules.unityanalytics": { 318 | "version": "1.0.0", 319 | "depth": 0, 320 | "source": "builtin", 321 | "dependencies": { 322 | "com.unity.modules.unitywebrequest": "1.0.0", 323 | "com.unity.modules.jsonserialize": "1.0.0" 324 | } 325 | }, 326 | "com.unity.modules.unitywebrequest": { 327 | "version": "1.0.0", 328 | "depth": 0, 329 | "source": "builtin", 330 | "dependencies": {} 331 | }, 332 | "com.unity.modules.unitywebrequestassetbundle": { 333 | "version": "1.0.0", 334 | "depth": 0, 335 | "source": "builtin", 336 | "dependencies": { 337 | "com.unity.modules.assetbundle": "1.0.0", 338 | "com.unity.modules.unitywebrequest": "1.0.0" 339 | } 340 | }, 341 | "com.unity.modules.unitywebrequestaudio": { 342 | "version": "1.0.0", 343 | "depth": 0, 344 | "source": "builtin", 345 | "dependencies": { 346 | "com.unity.modules.unitywebrequest": "1.0.0", 347 | "com.unity.modules.audio": "1.0.0" 348 | } 349 | }, 350 | "com.unity.modules.unitywebrequesttexture": { 351 | "version": "1.0.0", 352 | "depth": 0, 353 | "source": "builtin", 354 | "dependencies": { 355 | "com.unity.modules.unitywebrequest": "1.0.0", 356 | "com.unity.modules.imageconversion": "1.0.0" 357 | } 358 | }, 359 | "com.unity.modules.unitywebrequestwww": { 360 | "version": "1.0.0", 361 | "depth": 0, 362 | "source": "builtin", 363 | "dependencies": { 364 | "com.unity.modules.unitywebrequest": "1.0.0", 365 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 366 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 367 | "com.unity.modules.audio": "1.0.0", 368 | "com.unity.modules.assetbundle": "1.0.0", 369 | "com.unity.modules.imageconversion": "1.0.0" 370 | } 371 | }, 372 | "com.unity.modules.vehicles": { 373 | "version": "1.0.0", 374 | "depth": 0, 375 | "source": "builtin", 376 | "dependencies": { 377 | "com.unity.modules.physics": "1.0.0" 378 | } 379 | }, 380 | "com.unity.modules.video": { 381 | "version": "1.0.0", 382 | "depth": 0, 383 | "source": "builtin", 384 | "dependencies": { 385 | "com.unity.modules.audio": "1.0.0", 386 | "com.unity.modules.ui": "1.0.0", 387 | "com.unity.modules.unitywebrequest": "1.0.0" 388 | } 389 | }, 390 | "com.unity.modules.vr": { 391 | "version": "1.0.0", 392 | "depth": 0, 393 | "source": "builtin", 394 | "dependencies": { 395 | "com.unity.modules.jsonserialize": "1.0.0", 396 | "com.unity.modules.physics": "1.0.0", 397 | "com.unity.modules.xr": "1.0.0" 398 | } 399 | }, 400 | "com.unity.modules.wind": { 401 | "version": "1.0.0", 402 | "depth": 0, 403 | "source": "builtin", 404 | "dependencies": {} 405 | }, 406 | "com.unity.modules.xr": { 407 | "version": "1.0.0", 408 | "depth": 0, 409 | "source": "builtin", 410 | "dependencies": { 411 | "com.unity.modules.physics": "1.0.0", 412 | "com.unity.modules.jsonserialize": "1.0.0", 413 | "com.unity.modules.subsystems": "1.0.0" 414 | } 415 | } 416 | } 417 | } 418 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/AutoStreamingSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1200 &1 4 | AutoStreamingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | mSearchMode: 15 8 | mCustomSearchFile: 9 | mTextureSearchString: 10 | mMeshSearchString: 11 | mTextures: [] 12 | mAudios: [] 13 | mMeshes: [] 14 | mScenes: [] 15 | mConfigCCD: 16 | useCCD: 0 17 | cosKey: 18 | projectGuid: 19 | bucketUuid: 20 | bucketName: 21 | badgeName: 22 | -------------------------------------------------------------------------------- /Unity/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 | -------------------------------------------------------------------------------- /Unity/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: 11 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: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /Unity/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 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 9 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 1 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 4 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 1 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | m_CacheServerValidationMode: 2 37 | -------------------------------------------------------------------------------- /Unity/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: 10753, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 34 | m_PreloadedShaders: [] 35 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 36 | type: 0} 37 | m_CustomRenderPipeline: {fileID: 0} 38 | m_TransparencySortMode: 0 39 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 40 | m_DefaultRenderingPath: 1 41 | m_DefaultMobileRenderingPath: 1 42 | m_TierSettings: [] 43 | m_LightmapStripping: 0 44 | m_FogStripping: 0 45 | m_InstancingStripping: 0 46 | m_LightmapKeepPlain: 1 47 | m_LightmapKeepDirCombined: 1 48 | m_LightmapKeepDynamicPlain: 1 49 | m_LightmapKeepDynamicDirCombined: 1 50 | m_LightmapKeepShadowMask: 1 51 | m_LightmapKeepSubtractive: 1 52 | m_FogKeepLinear: 1 53 | m_FogKeepExp: 1 54 | m_FogKeepExp2: 1 55 | m_AlbedoSwatchInfos: [] 56 | m_LightsUseLinearIntensity: 0 57 | m_LightsUseColorTemperature: 0 58 | -------------------------------------------------------------------------------- /Unity/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 | -------------------------------------------------------------------------------- /Unity/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 | -------------------------------------------------------------------------------- /Unity/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 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_ScopedRegistriesSettingsExpanded: 1 16 | oneTimeWarningShown: 0 17 | m_Registries: 18 | - m_Id: main 19 | m_Name: 20 | m_Url: https://packages.unity.cn 21 | m_Scopes: [] 22 | m_IsDefault: 1 23 | m_UserSelectedRegistryName: 24 | m_UserAddingNewScopedRegistry: 0 25 | m_RegistryInfoDraft: 26 | m_ErrorMessage: 27 | m_Original: 28 | m_Id: 29 | m_Name: 30 | m_Url: 31 | m_Scopes: [] 32 | m_IsDefault: 0 33 | m_Modified: 0 34 | m_Name: 35 | m_Url: 36 | m_Scopes: 37 | - 38 | m_SelectedScopeIndex: 0 39 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 20 7 | productGUID: 45577c539db673c42bd027aa158875e2 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: XEncrypt 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_ShowUnitySplashAds: 0 45 | m_AdsAndroidGameId: 46 | m_AdsIosGameId: 47 | m_ShowSplashAdsSlogan: 0 48 | m_SloganImage: {fileID: 0} 49 | m_SloganHeight: 150 50 | m_HolographicTrackingLossScreen: {fileID: 0} 51 | defaultScreenWidth: 1024 52 | defaultScreenHeight: 768 53 | defaultScreenWidthWeb: 960 54 | defaultScreenHeightWeb: 600 55 | m_StereoRenderingPath: 0 56 | m_ActiveColorSpace: 0 57 | m_MTRendering: 1 58 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 59 | iosShowActivityIndicatorOnLoading: -1 60 | androidShowActivityIndicatorOnLoading: -1 61 | iosUseCustomAppBackgroundBehavior: 0 62 | iosAllowHTTPDownload: 1 63 | allowedAutorotateToPortrait: 1 64 | allowedAutorotateToPortraitUpsideDown: 1 65 | allowedAutorotateToLandscapeRight: 1 66 | allowedAutorotateToLandscapeLeft: 1 67 | useOSAutorotation: 1 68 | use32BitDisplayBuffer: 1 69 | preserveFramebufferAlpha: 0 70 | disableDepthAndStencilBuffers: 0 71 | androidStartInFullscreen: 1 72 | androidRenderOutsideSafeArea: 1 73 | androidUseSwappy: 0 74 | androidBlitType: 0 75 | androidResizableWindow: 0 76 | androidDefaultWindowWidth: 1920 77 | androidDefaultWindowHeight: 1080 78 | androidMinimumWindowWidth: 400 79 | androidMinimumWindowHeight: 300 80 | androidFullscreenMode: 1 81 | defaultIsNativeResolution: 1 82 | macRetinaSupport: 1 83 | runInBackground: 1 84 | captureSingleScreen: 0 85 | muteOtherAudioSources: 0 86 | Prepare IOS For Recording: 0 87 | Force IOS Speakers When Recording: 0 88 | deferSystemGesturesMode: 0 89 | hideHomeButton: 0 90 | submitAnalytics: 1 91 | usePlayerLog: 1 92 | autoStreaming: 0 93 | useAnimationStreaming: 0 94 | useFontStreaming: 0 95 | autoStreamingId: 96 | instantGameAppId: 97 | bakeCollisionMeshes: 0 98 | forceSingleInstance: 0 99 | useFlipModelSwapchain: 1 100 | resizableWindow: 0 101 | useMacAppStoreValidation: 0 102 | macAppStoreCategory: public.app-category.games 103 | gpuSkinning: 0 104 | xboxPIXTextureCapture: 0 105 | xboxEnableAvatar: 0 106 | xboxEnableKinect: 0 107 | xboxEnableKinectAutoTracking: 0 108 | xboxEnableFitness: 0 109 | visibleInBackground: 1 110 | allowFullscreenSwitch: 1 111 | fullscreenMode: 1 112 | xboxSpeechDB: 0 113 | xboxEnableHeadOrientation: 0 114 | xboxEnableGuest: 0 115 | xboxEnablePIXSampling: 0 116 | metalFramebufferOnly: 0 117 | xboxOneResolution: 0 118 | xboxOneSResolution: 0 119 | xboxOneXResolution: 3 120 | xboxOneMonoLoggingLevel: 0 121 | xboxOneLoggingLevel: 1 122 | xboxOneDisableEsram: 0 123 | xboxOneEnableTypeOptimization: 0 124 | xboxOnePresentImmediateThreshold: 0 125 | switchQueueCommandMemory: 0 126 | switchQueueControlMemory: 16384 127 | switchQueueComputeMemory: 262144 128 | switchNVNShaderPoolsGranularity: 33554432 129 | switchNVNDefaultPoolsGranularity: 16777216 130 | switchNVNOtherPoolsGranularity: 16777216 131 | switchNVNMaxPublicTextureIDCount: 0 132 | switchNVNMaxPublicSamplerIDCount: 0 133 | stadiaPresentMode: 0 134 | stadiaTargetFramerate: 0 135 | vulkanNumSwapchainBuffers: 3 136 | vulkanEnableSetSRGBWrite: 0 137 | vulkanEnableLateAcquireNextImage: 0 138 | useSecurityBuild: 0 139 | m_SupportedAspectRatios: 140 | 4:3: 1 141 | 5:4: 1 142 | 16:10: 1 143 | 16:9: 1 144 | Others: 1 145 | bundleVersion: 0.1 146 | preloadedAssets: [] 147 | metroInputSource: 0 148 | wsaTransparentSwapchain: 0 149 | m_HolographicPauseOnTrackingLoss: 1 150 | xboxOneDisableKinectGpuReservation: 1 151 | xboxOneEnable7thCore: 1 152 | vrSettings: 153 | cardboard: 154 | depthFormat: 0 155 | enableTransitionView: 0 156 | daydream: 157 | depthFormat: 0 158 | useSustainedPerformanceMode: 0 159 | enableVideoLayer: 0 160 | useProtectedVideoMemory: 0 161 | minimumSupportedHeadTracking: 0 162 | maximumSupportedHeadTracking: 1 163 | hololens: 164 | depthFormat: 1 165 | depthBufferSharingEnabled: 1 166 | lumin: 167 | depthFormat: 0 168 | frameTiming: 2 169 | enableGLCache: 0 170 | glCacheMaxBlobSize: 524288 171 | glCacheMaxFileSize: 8388608 172 | oculus: 173 | sharedDepthBuffer: 1 174 | dashSupport: 1 175 | lowOverheadMode: 0 176 | protectedContext: 0 177 | v2Signing: 1 178 | enable360StereoCapture: 0 179 | isWsaHolographicRemotingEnabled: 0 180 | enableFrameTimingStats: 0 181 | useHDRDisplay: 0 182 | D3DHDRBitDepth: 0 183 | m_ColorGamuts: 00000000 184 | targetPixelDensity: 30 185 | resolutionScalingMode: 0 186 | androidSupportedAspectRatio: 1 187 | androidMaxAspectRatio: 2.1 188 | applicationIdentifier: {} 189 | buildNumber: {} 190 | AndroidBundleVersionCode: 1 191 | AndroidMinSdkVersion: 19 192 | AndroidTargetSdkVersion: 0 193 | AndroidPreferredInstallLocation: 1 194 | aotOptions: 195 | stripEngineCode: 1 196 | iPhoneStrippingLevel: 0 197 | iPhoneScriptCallOptimization: 0 198 | ForceInternetPermission: 0 199 | ForceSDCardPermission: 0 200 | CreateWallpaper: 0 201 | APKExpansionFiles: 0 202 | keepLoadedShadersAlive: 0 203 | StripUnusedMeshComponents: 1 204 | VertexChannelCompressionMask: 4054 205 | iPhoneSdkVersion: 988 206 | iOSTargetOSVersionString: 10.0 207 | tvOSSdkVersion: 0 208 | tvOSRequireExtendedGameController: 0 209 | tvOSTargetOSVersionString: 10.0 210 | uIPrerenderedIcon: 0 211 | uIRequiresPersistentWiFi: 0 212 | uIRequiresFullScreen: 1 213 | uIStatusBarHidden: 1 214 | uIExitOnSuspend: 0 215 | uIStatusBarStyle: 0 216 | appleTVSplashScreen: {fileID: 0} 217 | appleTVSplashScreen2x: {fileID: 0} 218 | tvOSSmallIconLayers: [] 219 | tvOSSmallIconLayers2x: [] 220 | tvOSLargeIconLayers: [] 221 | tvOSLargeIconLayers2x: [] 222 | tvOSTopShelfImageLayers: [] 223 | tvOSTopShelfImageLayers2x: [] 224 | tvOSTopShelfImageWideLayers: [] 225 | tvOSTopShelfImageWideLayers2x: [] 226 | iOSLaunchScreenType: 0 227 | iOSLaunchScreenPortrait: {fileID: 0} 228 | iOSLaunchScreenLandscape: {fileID: 0} 229 | iOSLaunchScreenBackgroundColor: 230 | serializedVersion: 2 231 | rgba: 0 232 | iOSLaunchScreenFillPct: 100 233 | iOSLaunchScreenSize: 100 234 | iOSLaunchScreenCustomXibPath: 235 | iOSLaunchScreeniPadType: 0 236 | iOSLaunchScreeniPadImage: {fileID: 0} 237 | iOSLaunchScreeniPadBackgroundColor: 238 | serializedVersion: 2 239 | rgba: 0 240 | iOSLaunchScreeniPadFillPct: 100 241 | iOSLaunchScreeniPadSize: 100 242 | iOSLaunchScreeniPadCustomXibPath: 243 | iOSUseLaunchScreenStoryboard: 0 244 | iOSLaunchScreenCustomStoryboardPath: 245 | iOSDeviceRequirements: [] 246 | iOSURLSchemes: [] 247 | iOSBackgroundModes: 0 248 | iOSMetalForceHardShadows: 0 249 | metalEditorSupport: 1 250 | metalAPIValidation: 1 251 | iOSRenderExtraFrameOnPause: 0 252 | iosCopyPluginsCodeInsteadOfSymlink: 0 253 | appleDeveloperTeamID: 254 | iOSManualSigningProvisioningProfileID: 255 | tvOSManualSigningProvisioningProfileID: 256 | iOSManualSigningProvisioningProfileType: 0 257 | tvOSManualSigningProvisioningProfileType: 0 258 | appleEnableAutomaticSigning: 0 259 | iOSRequireARKit: 0 260 | iOSAutomaticallyDetectAndAddCapabilities: 1 261 | appleEnableProMotion: 0 262 | clonedFromGUID: 5f34be1353de5cf4398729fda238591b 263 | templatePackageId: com.unity.template.2d@3.3.2 264 | templateDefaultScene: Assets/Scenes/SampleScene.unity 265 | AndroidTargetArchitectures: 1 266 | AndroidTargetDevices: 0 267 | AndroidSplashScreenScale: 0 268 | androidSplashScreen: {fileID: 0} 269 | AndroidKeystoreName: 270 | AndroidKeyaliasName: 271 | AndroidBuildApkPerCpuArchitecture: 0 272 | AndroidTVCompatibility: 0 273 | AndroidIsGame: 1 274 | AndroidEnableTango: 0 275 | androidEnableBanner: 1 276 | androidUseLowAccuracyLocation: 0 277 | androidUseCustomKeystore: 0 278 | m_AndroidBanners: 279 | - width: 320 280 | height: 180 281 | banner: {fileID: 0} 282 | androidGamepadSupportLevel: 0 283 | chromeosInputEmulation: 1 284 | AndroidValidateAppBundleSize: 1 285 | AndroidAppBundleSizeToValidate: 150 286 | m_BuildTargetIcons: [] 287 | m_BuildTargetPlatformIcons: [] 288 | m_BuildTargetBatching: [] 289 | m_BuildTargetEncrypting: [] 290 | m_BuildTargetGraphicsJobs: 291 | - m_BuildTarget: MacStandaloneSupport 292 | m_GraphicsJobs: 0 293 | - m_BuildTarget: Switch 294 | m_GraphicsJobs: 0 295 | - m_BuildTarget: MetroSupport 296 | m_GraphicsJobs: 0 297 | - m_BuildTarget: AppleTVSupport 298 | m_GraphicsJobs: 0 299 | - m_BuildTarget: BJMSupport 300 | m_GraphicsJobs: 0 301 | - m_BuildTarget: LinuxStandaloneSupport 302 | m_GraphicsJobs: 0 303 | - m_BuildTarget: PS4Player 304 | m_GraphicsJobs: 0 305 | - m_BuildTarget: iOSSupport 306 | m_GraphicsJobs: 0 307 | - m_BuildTarget: WindowsStandaloneSupport 308 | m_GraphicsJobs: 0 309 | - m_BuildTarget: XboxOnePlayer 310 | m_GraphicsJobs: 0 311 | - m_BuildTarget: LuminSupport 312 | m_GraphicsJobs: 0 313 | - m_BuildTarget: AndroidPlayer 314 | m_GraphicsJobs: 0 315 | - m_BuildTarget: WebGLSupport 316 | m_GraphicsJobs: 0 317 | m_BuildTargetGraphicsJobMode: 318 | - m_BuildTarget: PS4Player 319 | m_GraphicsJobMode: 0 320 | - m_BuildTarget: XboxOnePlayer 321 | m_GraphicsJobMode: 0 322 | m_BuildTargetGraphicsAPIs: 323 | - m_BuildTarget: AndroidPlayer 324 | m_APIs: 150000000b000000 325 | m_Automatic: 0 326 | m_BuildTargetVRSettings: [] 327 | openGLRequireES31: 0 328 | openGLRequireES31AEP: 0 329 | openGLRequireES32: 0 330 | m_TemplateCustomTags: {} 331 | mobileMTRendering: 332 | Android: 1 333 | iPhone: 1 334 | tvOS: 1 335 | m_BuildTargetGroupLightmapEncodingQuality: [] 336 | m_BuildTargetGroupLightmapSettings: [] 337 | playModeTestRunnerEnabled: 0 338 | runPlayModeTestAsEditModeTest: 0 339 | actionOnDotNetUnhandledException: 1 340 | enableInternalProfiler: 0 341 | logObjCUncaughtExceptions: 1 342 | enableCrashReportAPI: 0 343 | cameraUsageDescription: 344 | locationUsageDescription: 345 | microphoneUsageDescription: 346 | switchNetLibKey: 347 | switchSocketMemoryPoolSize: 6144 348 | switchSocketAllocatorPoolSize: 128 349 | switchSocketConcurrencyLimit: 14 350 | switchScreenResolutionBehavior: 2 351 | switchUseCPUProfiler: 0 352 | switchApplicationID: 0x01004b9000490000 353 | switchNSODependencies: 354 | switchTitleNames_0: 355 | switchTitleNames_1: 356 | switchTitleNames_2: 357 | switchTitleNames_3: 358 | switchTitleNames_4: 359 | switchTitleNames_5: 360 | switchTitleNames_6: 361 | switchTitleNames_7: 362 | switchTitleNames_8: 363 | switchTitleNames_9: 364 | switchTitleNames_10: 365 | switchTitleNames_11: 366 | switchTitleNames_12: 367 | switchTitleNames_13: 368 | switchTitleNames_14: 369 | switchTitleNames_15: 370 | switchPublisherNames_0: 371 | switchPublisherNames_1: 372 | switchPublisherNames_2: 373 | switchPublisherNames_3: 374 | switchPublisherNames_4: 375 | switchPublisherNames_5: 376 | switchPublisherNames_6: 377 | switchPublisherNames_7: 378 | switchPublisherNames_8: 379 | switchPublisherNames_9: 380 | switchPublisherNames_10: 381 | switchPublisherNames_11: 382 | switchPublisherNames_12: 383 | switchPublisherNames_13: 384 | switchPublisherNames_14: 385 | switchPublisherNames_15: 386 | switchIcons_0: {fileID: 0} 387 | switchIcons_1: {fileID: 0} 388 | switchIcons_2: {fileID: 0} 389 | switchIcons_3: {fileID: 0} 390 | switchIcons_4: {fileID: 0} 391 | switchIcons_5: {fileID: 0} 392 | switchIcons_6: {fileID: 0} 393 | switchIcons_7: {fileID: 0} 394 | switchIcons_8: {fileID: 0} 395 | switchIcons_9: {fileID: 0} 396 | switchIcons_10: {fileID: 0} 397 | switchIcons_11: {fileID: 0} 398 | switchIcons_12: {fileID: 0} 399 | switchIcons_13: {fileID: 0} 400 | switchIcons_14: {fileID: 0} 401 | switchIcons_15: {fileID: 0} 402 | switchSmallIcons_0: {fileID: 0} 403 | switchSmallIcons_1: {fileID: 0} 404 | switchSmallIcons_2: {fileID: 0} 405 | switchSmallIcons_3: {fileID: 0} 406 | switchSmallIcons_4: {fileID: 0} 407 | switchSmallIcons_5: {fileID: 0} 408 | switchSmallIcons_6: {fileID: 0} 409 | switchSmallIcons_7: {fileID: 0} 410 | switchSmallIcons_8: {fileID: 0} 411 | switchSmallIcons_9: {fileID: 0} 412 | switchSmallIcons_10: {fileID: 0} 413 | switchSmallIcons_11: {fileID: 0} 414 | switchSmallIcons_12: {fileID: 0} 415 | switchSmallIcons_13: {fileID: 0} 416 | switchSmallIcons_14: {fileID: 0} 417 | switchSmallIcons_15: {fileID: 0} 418 | switchManualHTML: 419 | switchAccessibleURLs: 420 | switchLegalInformation: 421 | switchMainThreadStackSize: 1048576 422 | switchPresenceGroupId: 423 | switchLogoHandling: 0 424 | switchReleaseVersion: 0 425 | switchDisplayVersion: 1.0.0 426 | switchStartupUserAccount: 0 427 | switchTouchScreenUsage: 0 428 | switchSupportedLanguagesMask: 0 429 | switchLogoType: 0 430 | switchApplicationErrorCodeCategory: 431 | switchUserAccountSaveDataSize: 0 432 | switchUserAccountSaveDataJournalSize: 0 433 | switchApplicationAttribute: 0 434 | switchCardSpecSize: -1 435 | switchCardSpecClock: -1 436 | switchRatingsMask: 0 437 | switchRatingsInt_0: 0 438 | switchRatingsInt_1: 0 439 | switchRatingsInt_2: 0 440 | switchRatingsInt_3: 0 441 | switchRatingsInt_4: 0 442 | switchRatingsInt_5: 0 443 | switchRatingsInt_6: 0 444 | switchRatingsInt_7: 0 445 | switchRatingsInt_8: 0 446 | switchRatingsInt_9: 0 447 | switchRatingsInt_10: 0 448 | switchRatingsInt_11: 0 449 | switchRatingsInt_12: 0 450 | switchLocalCommunicationIds_0: 451 | switchLocalCommunicationIds_1: 452 | switchLocalCommunicationIds_2: 453 | switchLocalCommunicationIds_3: 454 | switchLocalCommunicationIds_4: 455 | switchLocalCommunicationIds_5: 456 | switchLocalCommunicationIds_6: 457 | switchLocalCommunicationIds_7: 458 | switchParentalControl: 0 459 | switchAllowsScreenshot: 1 460 | switchAllowsVideoCapturing: 1 461 | switchAllowsRuntimeAddOnContentInstall: 0 462 | switchDataLossConfirmation: 0 463 | switchUserAccountLockEnabled: 0 464 | switchSystemResourceMemory: 16777216 465 | switchSupportedNpadStyles: 22 466 | switchNativeFsCacheSize: 32 467 | switchIsHoldTypeHorizontal: 0 468 | switchSupportedNpadCount: 8 469 | switchSocketConfigEnabled: 0 470 | switchTcpInitialSendBufferSize: 32 471 | switchTcpInitialReceiveBufferSize: 64 472 | switchTcpAutoSendBufferSizeMax: 256 473 | switchTcpAutoReceiveBufferSizeMax: 256 474 | switchUdpSendBufferSize: 9 475 | switchUdpReceiveBufferSize: 42 476 | switchSocketBufferEfficiency: 4 477 | switchSocketInitializeEnabled: 1 478 | switchNetworkInterfaceManagerInitializeEnabled: 1 479 | switchPlayerConnectionEnabled: 1 480 | switchUseMicroSleepForYield: 1 481 | switchEnableRamDiskSupport: 0 482 | switchMicroSleepForYieldTime: 25 483 | switchRamDiskSpaceSize: 12 484 | ps4NPAgeRating: 12 485 | ps4NPTitleSecret: 486 | ps4NPTrophyPackPath: 487 | ps4ParentalLevel: 11 488 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 489 | ps4Category: 0 490 | ps4MasterVersion: 01.00 491 | ps4AppVersion: 01.00 492 | ps4AppType: 0 493 | ps4ParamSfxPath: 494 | ps4VideoOutPixelFormat: 0 495 | ps4VideoOutInitialWidth: 1920 496 | ps4VideoOutBaseModeInitialWidth: 1920 497 | ps4VideoOutReprojectionRate: 60 498 | ps4PronunciationXMLPath: 499 | ps4PronunciationSIGPath: 500 | ps4BackgroundImagePath: 501 | ps4StartupImagePath: 502 | ps4StartupImagesFolder: 503 | ps4IconImagesFolder: 504 | ps4SaveDataImagePath: 505 | ps4SdkOverride: 506 | ps4BGMPath: 507 | ps4ShareFilePath: 508 | ps4ShareOverlayImagePath: 509 | ps4PrivacyGuardImagePath: 510 | ps4ExtraSceSysFile: 511 | ps4NPtitleDatPath: 512 | ps4RemotePlayKeyAssignment: -1 513 | ps4RemotePlayKeyMappingDir: 514 | ps4PlayTogetherPlayerCount: 0 515 | ps4EnterButtonAssignment: 1 516 | ps4ApplicationParam1: 0 517 | ps4ApplicationParam2: 0 518 | ps4ApplicationParam3: 0 519 | ps4ApplicationParam4: 0 520 | ps4DownloadDataSize: 0 521 | ps4GarlicHeapSize: 2048 522 | ps4ProGarlicHeapSize: 2560 523 | playerPrefsMaxSize: 32768 524 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 525 | ps4pnSessions: 1 526 | ps4pnPresence: 1 527 | ps4pnFriends: 1 528 | ps4pnGameCustomData: 1 529 | playerPrefsSupport: 0 530 | enableApplicationExit: 0 531 | resetTempFolder: 1 532 | restrictedAudioUsageRights: 0 533 | ps4UseResolutionFallback: 0 534 | ps4ReprojectionSupport: 0 535 | ps4UseAudio3dBackend: 0 536 | ps4UseLowGarlicFragmentationMode: 1 537 | ps4SocialScreenEnabled: 0 538 | ps4ScriptOptimizationLevel: 0 539 | ps4Audio3dVirtualSpeakerCount: 14 540 | ps4attribCpuUsage: 0 541 | ps4PatchPkgPath: 542 | ps4PatchLatestPkgPath: 543 | ps4PatchChangeinfoPath: 544 | ps4PatchDayOne: 0 545 | ps4attribUserManagement: 0 546 | ps4attribMoveSupport: 0 547 | ps4attrib3DSupport: 0 548 | ps4attribShareSupport: 0 549 | ps4attribExclusiveVR: 0 550 | ps4disableAutoHideSplash: 0 551 | ps4videoRecordingFeaturesUsed: 0 552 | ps4contentSearchFeaturesUsed: 0 553 | ps4CompatibilityPS5: 0 554 | ps4AllowPS5Detection: 0 555 | ps4GPU800MHz: 1 556 | ps4attribEyeToEyeDistanceSettingVR: 0 557 | ps4IncludedModules: [] 558 | ps4attribVROutputEnabled: 0 559 | ps5ParamFilePath: 560 | ps5VideoOutPixelFormat: 0 561 | ps5VideoOutInitialWidth: 1920 562 | ps5VideoOutOutputMode: 1 563 | ps5BackgroundImagePath: 564 | ps5StartupImagePath: 565 | ps5Pic2Path: 566 | ps5StartupImagesFolder: 567 | ps5IconImagesFolder: 568 | ps5SaveDataImagePath: 569 | ps5SdkOverride: 570 | ps5BGMPath: 571 | ps5ShareOverlayImagePath: 572 | ps5NPConfigZipPath: 573 | ps5Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 574 | ps5UseResolutionFallback: 0 575 | ps5UseAudio3dBackend: 0 576 | ps5ScriptOptimizationLevel: 2 577 | ps5Audio3dVirtualSpeakerCount: 14 578 | ps5VrrSupport: 0 579 | ps5UpdateReferencePackage: 580 | ps5disableAutoHideSplash: 0 581 | ps5OperatingSystemCanDisableSplashScreen: 0 582 | ps5IncludedModules: [] 583 | ps5SharedBinaryContentLabels: [] 584 | ps5SharedBinarySystemFolders: [] 585 | monoEnv: 586 | splashScreenBackgroundSourceLandscape: {fileID: 0} 587 | splashScreenBackgroundSourcePortrait: {fileID: 0} 588 | blurSplashScreenBackground: 1 589 | spritePackerPolicy: 590 | webGLMemorySize: 16 591 | webGLExceptionSupport: 1 592 | webGLNameFilesAsHashes: 0 593 | webGLDataCaching: 1 594 | webGLDebugSymbols: 0 595 | webGLEmscriptenArgs: 596 | webGLModulesDirectory: 597 | webGLTemplate: APPLICATION:Default 598 | webGLAnalyzeBuildSize: 0 599 | webGLUseEmbeddedResources: 0 600 | webGLCompressionFormat: 1 601 | webGLLinkerTarget: 1 602 | webGLThreadsSupport: 0 603 | webGLWasmStreaming: 0 604 | scriptingDefineSymbols: {} 605 | platformArchitecture: {} 606 | scriptingBackend: {} 607 | il2cppCompilerConfiguration: {} 608 | managedStrippingLevel: {} 609 | incrementalIl2cppBuild: {} 610 | suppressCommonWarnings: 1 611 | allowUnsafeCode: 0 612 | additionalIl2CppArgs: 613 | scriptingRuntimeVersion: 1 614 | gcIncremental: 0 615 | assemblyVersionValidation: 1 616 | gcWBarrierValidation: 0 617 | apiCompatibilityLevelPerPlatform: {} 618 | m_RenderingPath: 1 619 | m_MobileRenderingPath: 1 620 | metroPackageName: Template_2D 621 | metroPackageVersion: 622 | metroCertificatePath: 623 | metroCertificatePassword: 624 | metroCertificateSubject: 625 | metroCertificateIssuer: 626 | metroCertificateNotAfter: 0000000000000000 627 | metroApplicationDescription: Template_2D 628 | wsaImages: {} 629 | metroTileShortName: 630 | metroTileShowName: 0 631 | metroMediumTileShowName: 0 632 | metroLargeTileShowName: 0 633 | metroWideTileShowName: 0 634 | metroSupportStreamingInstall: 0 635 | metroLastRequiredScene: 0 636 | metroDefaultTileSize: 1 637 | metroTileForegroundText: 2 638 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 639 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 640 | a: 1} 641 | metroSplashScreenUseBackgroundColor: 0 642 | platformCapabilities: {} 643 | metroTargetDeviceFamilies: {} 644 | metroFTAName: 645 | metroFTAFileTypes: [] 646 | metroProtocolName: 647 | XboxOneProductId: 648 | XboxOneUpdateKey: 649 | XboxOneSandboxId: 650 | XboxOneContentId: 651 | XboxOneTitleId: 652 | XboxOneSCId: 653 | XboxOneGameOsOverridePath: 654 | XboxOnePackagingOverridePath: 655 | XboxOneAppManifestOverridePath: 656 | XboxOneVersion: 1.0.0.0 657 | XboxOnePackageEncryption: 0 658 | XboxOnePackageUpdateGranularity: 2 659 | XboxOneDescription: 660 | XboxOneLanguage: 661 | - enus 662 | XboxOneCapability: [] 663 | XboxOneGameRating: {} 664 | XboxOneIsContentPackage: 0 665 | XboxOneEnhancedXboxCompatibilityMode: 0 666 | XboxOneEnableGPUVariability: 1 667 | XboxOneSockets: {} 668 | XboxOneSplashScreen: {fileID: 0} 669 | XboxOneAllowedProductIds: [] 670 | XboxOnePersistentLocalStorageSize: 0 671 | XboxOneXTitleMemory: 8 672 | XboxOneOverrideIdentityName: 673 | XboxOneOverrideIdentityPublisher: 674 | vrEditorSettings: 675 | daydream: 676 | daydreamIconForeground: {fileID: 0} 677 | daydreamIconBackground: {fileID: 0} 678 | cloudServicesEnabled: 679 | UNet: 1 680 | luminIcon: 681 | m_Name: 682 | m_ModelFolderPath: 683 | m_PortalFolderPath: 684 | luminCert: 685 | m_CertPath: 686 | m_SignPackage: 1 687 | luminIsChannelApp: 0 688 | luminVersion: 689 | m_VersionCode: 1 690 | m_VersionName: 691 | apiCompatibilityLevel: 6 692 | cloudProjectId: 693 | framebufferDepthMemorylessMode: 0 694 | projectName: 695 | organizationId: 696 | cloudEnabled: 0 697 | enableNativePlatformBackendsForNewInputSystem: 0 698 | disableOldInputManagerSupport: 0 699 | legacyClampBlendShapeWeights: 0 700 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.4.40f1c1 2 | m_EditorVersionWithRevision: 2019.4.40f1c1 (bcafa7f80565) 3 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 3 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: 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: 16 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: 16 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 0 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: 0 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: 16 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 0 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: 0 108 | antiAliasing: 0 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 0 112 | billboardsFaceCameraPosition: 0 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 16 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 0 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: 0 136 | antiAliasing: 0 137 | softParticles: 0 138 | softVegetation: 1 139 | realtimeReflectionProbes: 0 140 | billboardsFaceCameraPosition: 0 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 16 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 0 153 | shadowResolution: 0 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: 0 164 | antiAliasing: 0 165 | softParticles: 0 166 | softVegetation: 1 167 | realtimeReflectionProbes: 0 168 | billboardsFaceCameraPosition: 0 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 16 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 | Stadia: 5 185 | Standalone: 5 186 | Tizen: 2 187 | WebGL: 3 188 | WiiU: 5 189 | Windows Store Apps: 5 190 | XboxOne: 5 191 | iPhone: 2 192 | tvOS: 2 193 | -------------------------------------------------------------------------------- /Unity/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 | -------------------------------------------------------------------------------- /Unity/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.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_CNEventUrl: https://cdp.cloud.unity.cn/v1/events 13 | m_CNConfigUrl: https://cdp.cloud.unity.cn/config 14 | m_TestInitMode: 0 15 | CrashReportingSettings: 16 | m_EventUrl: https://perf-events.cloud.unity.cn 17 | m_Enabled: 0 18 | m_LogBufferSize: 10 19 | m_CaptureEditorExceptions: 1 20 | UnityPurchasingSettings: 21 | m_Enabled: 0 22 | m_TestMode: 0 23 | UnityAnalyticsSettings: 24 | m_Enabled: 1 25 | m_TestMode: 0 26 | m_InitializeOnStartup: 1 27 | UnityAdsSettings: 28 | m_Enabled: 0 29 | m_InitializeOnStartup: 1 30 | m_TestMode: 0 31 | m_IosGameId: 32 | m_AndroidGameId: 33 | m_GameIds: {} 34 | m_GameId: 35 | PerformanceReportingSettings: 36 | m_Enabled: 0 37 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /Unity/ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } --------------------------------------------------------------------------------