├── .github └── workflows │ └── unity-test-personal.yml ├── .gitignore ├── Assets ├── Editor.meta ├── Editor │ ├── EditorWindow.meta │ ├── EditorWindow │ │ ├── UnityPackageExporterWindow.cs │ │ └── UnityPackageExporterWindow.cs.meta │ ├── Tests.meta │ ├── Tests │ │ ├── UnitTest.meta │ │ └── UnitTest │ │ │ ├── RSAEncryptionTest.cs │ │ │ ├── RSAEncryptionTest.cs.meta │ │ │ ├── RijndaelEncryptionTest.cs │ │ │ └── RijndaelEncryptionTest.cs.meta │ ├── UnityPackageExporter.cs │ └── UnityPackageExporter.cs.meta ├── Examples.meta ├── Examples │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── TabController.prefab │ │ └── TabController.prefab.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── Example.unity │ │ └── Example.unity.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── RSAContent.cs │ │ ├── RSAContent.cs.meta │ │ ├── RijndaelContent.cs │ │ ├── RijndaelContent.cs.meta │ │ ├── TabButton.cs │ │ ├── TabButton.cs.meta │ │ ├── TabController.cs │ │ └── TabController.cs.meta ├── UnityCipher.meta └── UnityCipher │ ├── Scripts.meta │ ├── Scripts │ ├── RSAEncryption.cs │ ├── RSAEncryption.cs.meta │ ├── RijndaelEncryption.cs │ └── RijndaelEncryption.cs.meta │ ├── package.json │ └── package.json.meta ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset ├── XRSettings.asset └── boot.config ├── README.md ├── UserSettings ├── EditorUserSettings.asset └── Layouts │ └── default-2021.dwlt └── images ├── giturl.png ├── packageFromGitURL.png ├── packageManager.png └── windowbar.png /.github/workflows/unity-test-personal.yml: -------------------------------------------------------------------------------- 1 | name: execute-unity-test 2 | on: 3 | push: 4 | branches: 5 | master 6 | jobs: 7 | test: 8 | name: ${{ matrix.testMode }}-unitytest 9 | runs-on: ubuntu-latest 10 | strategy: 11 | fail-fast: false 12 | matrix: 13 | unity-editor-version: [2021.3.4f1] 14 | unity-license-version: [2021.x] 15 | node-version: [14.x] 16 | root-project-path: [.] 17 | testMode: 18 | - editmode 19 | steps: 20 | - name: Set up Node.js ${{ matrix.node-version }} 21 | uses: actions/setup-node@v3 22 | with: 23 | node-version: ${{ matrix.node-version }} 24 | 25 | # Checkout 26 | - name: Checkout 27 | uses: actions/checkout@v2 28 | with: 29 | fetch-depth: 0 30 | 31 | # Cache 32 | - uses: actions/cache@v3 33 | id: cache-unity-library 34 | with: 35 | key: ${{ runner.os }}-Unity-Library-${{ matrix.unity-license-version }} 36 | path: | 37 | ${{ matrix.root-project-path }}/Library 38 | restore-keys: | 39 | ${{ runner.os }}-Unity-Library- 40 | 41 | # Cache 42 | - uses: actions/cache@v3 43 | id: cache-unity-license 44 | with: 45 | key: ${{ runner.os }}-Unity-License-${{ matrix.unity-license-version }} 46 | path: | 47 | ${{ matrix.root-project-path }}/Unity_v${{ matrix.unity-license-version }}.ulf 48 | ${{ matrix.root-project-path }}/Unity_v${{ matrix.unity-editor-version }}.alf 49 | 50 | # Request Unity Activation File 51 | - name: Request manual activation file 52 | id: getManualLicenseFile 53 | uses: game-ci/unity-request-activation-file@v2 54 | with: 55 | unityVersion: ${{ matrix.unity-editor-version }} 56 | 57 | # Activate from alf File 58 | - name: Install node package, `unity-activate` 59 | run: npm install -g unity-activate 60 | - name: Activate The License 61 | id: activateLicense 62 | run: unity-activate -u "${{ secrets.UNITY_EMAIL }}" -p "${{ secrets.UNITY_PASSWORD }}" -k "${{ secrets.UNITY_AUTHENTICATOR_KEY }}" -o ${{ matrix.root-project-path }}/ "${{ steps.getManualLicenseFile.outputs.filePath }}" 63 | - name: Read ulf 64 | id: ulfRead 65 | uses: juliangruber/read-file-action@v1 66 | with: 67 | path: ${{ matrix.root-project-path }}/Unity_v${{ matrix.unity-license-version }}.ulf 68 | 69 | # Test 70 | - uses: game-ci/unity-test-runner@v2 71 | env: 72 | UNITY_LICENSE: ${{ steps.ulfRead.outputs.content }} 73 | with: 74 | projectPath: ${{ matrix.root-project-path }} 75 | testMode: ${{ matrix.testMode }} 76 | artifactsPath: ${{ matrix.testMode }}-artifacts 77 | 78 | # Upload Test Result 79 | - name: Upload Test Result 80 | uses: actions/upload-artifact@v3 81 | with: 82 | name: Test-Results 83 | path: ${{ matrix.testMode }}-artifacts -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Exclude temp nibs and swap files 2 | *~.nib 3 | *.swp 4 | 5 | # Exclude OS X folder attributes 6 | .DS_Store 7 | 8 | Library/ 9 | Temp/ 10 | [Ll]ibrary/* 11 | [Tt]emp/* 12 | [Oo]bj/* 13 | [Bb]uild/* 14 | [Bb]uilds/* 15 | Assets/AssetStoreTools* 16 | 17 | # Autogenerated VS/MD solution and project files 18 | ExportedObj/ 19 | *.csproj 20 | *.unityproj 21 | *.sln 22 | *.suo 23 | *.tmp 24 | *.user 25 | *.userprefs 26 | *.pidb 27 | *.pidb.meta 28 | *.booproj 29 | *.svd 30 | 31 | # Visual Studio cache directory 32 | .vs/ 33 | 34 | # Unity3D generated meta files 35 | *.pidb.meta 36 | 37 | # Unity3D Generated File On Crash Reports 38 | sysinfo.txt 39 | 40 | # Builds 41 | *.apk 42 | *.unitypackage 43 | 44 | # Exclude user-specific XCode 3 and 4 files 45 | *.mode1 46 | *.mode1v3 47 | *.mode2v3 48 | *.xcodeproj/* 49 | !*.xcodeproj/project.pbxproj 50 | !*.xcodeproj/default.* 51 | *.xcworkspace/* 52 | !*.xcworkspace/contents.xcworkspacedata 53 | 54 | # Android 55 | .classpath 56 | .project 57 | bin/* 58 | gen/* 59 | libs/* 60 | obj/* 61 | 62 | # etc 63 | tags 64 | 65 | LocalCache/ 66 | 67 | AdjustPostBuildiOSLog.txt 68 | AdjustPostBuildAndroidLog.txt 69 | 70 | current_platform.txt 71 | Library_iOS 72 | Library_Android 73 | 74 | # Log 75 | *.log 76 | 77 | # PackageManager 78 | Packages/ 79 | !Packages/manifest.json 80 | !Packages/packages-lock.json 81 | 82 | .vsconfig -------------------------------------------------------------------------------- /Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02b240c134a114e8bb71ad5eb179cf99 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/EditorWindow.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b6385ca7919240dbb8200f0e5d5973f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/EditorWindow/UnityPackageExporterWindow.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor.Compilation; 3 | using UnityEditor; 4 | using System.IO; 5 | using System.Collections.Generic; 6 | 7 | public class UnityPackageExporterWindow : EditorWindow 8 | { 9 | private string buildIncludeRootPath = UnityPackageExporter.DefaultBuildIncludeRootPath; 10 | private string exportUnityPackageFilePath = UnityPackageExporter.DefaultExportUnityPackageFilePath; 11 | 12 | [MenuItem("Tools/ExportUnityPackage")] 13 | static void Open() 14 | { 15 | // メニューのWindow/EditorExを選択するとOpen()が呼ばれる。 16 | // 表示させたいウィンドウは基本的にGetWindow()で表示&取得する。 17 | EditorWindow.GetWindow("ExportUnityPackage"); 18 | } 19 | 20 | // オブジェクトがロードされたとき、この関数は呼び出されます。 21 | void OnEnable() 22 | { 23 | } 24 | 25 | // Windowのクライアント領域のGUI処理を記述 26 | void OnGUI() 27 | { 28 | EditorGUILayout.BeginHorizontal(); 29 | EditorGUILayout.LabelField("Include Unity Package Root Path"); 30 | buildIncludeRootPath = (string)EditorGUILayout.TextField(buildIncludeRootPath); 31 | UnityEngine.Object buildIncludeRoot = AssetDatabase.LoadAssetAtPath(buildIncludeRootPath, typeof(UnityEngine.Object)); 32 | buildIncludeRoot = EditorGUILayout.ObjectField(buildIncludeRoot, typeof(UnityEngine.Object), false); 33 | if (buildIncludeRoot != null) 34 | { 35 | buildIncludeRootPath = AssetDatabase.GetAssetPath(buildIncludeRoot); 36 | } 37 | GUILayout.EndHorizontal(); 38 | 39 | EditorGUILayout.BeginHorizontal(); 40 | EditorGUILayout.LabelField("Export Unity Package Path"); 41 | exportUnityPackageFilePath = (string)EditorGUILayout.TextField(exportUnityPackageFilePath); 42 | GUILayout.EndHorizontal(); 43 | 44 | EditorGUILayout.BeginHorizontal(); 45 | if (GUILayout.Button(new GUIContent("Export Unity Package"))) 46 | { 47 | List buildPathes = UnityPackageExporter.FindFilePathes(buildIncludeRootPath); 48 | UnityPackageExporter.ExportUnityPackage( 49 | buildIncludeRootPathes: buildPathes.ToArray(), 50 | exportFilePath: exportUnityPackageFilePath 51 | ); 52 | System.Diagnostics.Process.Start(UnityPackageExporter.FileRootPath(exportUnityPackageFilePath)); 53 | } 54 | EditorGUILayout.EndHorizontal(); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Assets/Editor/EditorWindow/UnityPackageExporterWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c1a5b5246dbb49c2baec68f431690ed 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b791244fbd17a4ae3aca5083cb2731e1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/Tests/UnitTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38066fe114da944b1b261b6826e897fb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/Tests/UnitTest/RSAEncryptionTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | using System.Collections.Generic; 4 | using System.Security.Cryptography; 5 | using NUnit.Framework; 6 | 7 | namespace UnityCipher 8 | { 9 | [TestFixture] 10 | public class RSAEncryptionTest 11 | { 12 | //For RSA encryption to generate public and private key. 13 | [TestCase(1024)] 14 | [TestCase(384)] 15 | public void GenrateKeyPairRegularTest(int keySize) 16 | { 17 | bool isGeneratable = (keySize % 8 == 0) && 384 <= keySize && keySize <= 16384; 18 | Assert.IsTrue(isGeneratable); 19 | KeyValuePair publicPrivateKeypair1 = RSAEncryption.GenrateKeyPair(keySize); 20 | Assert.AreNotEqual(publicPrivateKeypair1.Key, publicPrivateKeypair1.Value); 21 | KeyValuePair publicPrivateKeypair2 = RSAEncryption.GenrateKeyPair(keySize); 22 | Assert.AreNotEqual(publicPrivateKeypair1.Key, publicPrivateKeypair2.Key); 23 | Assert.AreNotEqual(publicPrivateKeypair1.Value, publicPrivateKeypair2.Value); 24 | Assert.DoesNotThrow(() => RSAEncryption.GenrateKeyPair(keySize)); 25 | } 26 | 27 | //For RSA encryption to fail to generate public and private key. 28 | [TestCase(16385)] 29 | [TestCase(376)] 30 | [TestCase(1023)] 31 | public void GenrateKeyPairIrregularTest(int keySize) 32 | { 33 | bool isGeneratable = (keySize % 8 == 0) && 384 <= keySize && keySize <= 16384; 34 | Assert.IsFalse(isGeneratable); 35 | 36 | CryptographicException exception = Assert.Throws(() => RSAEncryption.GenrateKeyPair(keySize)); 37 | Assert.IsNotNull(exception); 38 | Assert.AreEqual(exception.Message, "Specified key is not a valid size for this algorithm."); 39 | } 40 | 41 | //Test for encrypting strings 42 | [TestCase(384)] 43 | public void EncryptStringRegularTest(int keySize) 44 | { 45 | KeyValuePair publicPrivateKeypair = RSAEncryption.GenrateKeyPair(keySize); 46 | string plainString = Guid.NewGuid().ToString(); 47 | string encripted = RSAEncryption.Encrypt(plainString, publicPrivateKeypair.Key); 48 | Assert.AreNotEqual(plainString, encripted); 49 | } 50 | 51 | //Test for encrypting binary 52 | [TestCase(392)] 53 | public void EncryptBinaryRegularTest(int keySize) 54 | { 55 | KeyValuePair publicPrivateKeypair = RSAEncryption.GenrateKeyPair(keySize); 56 | byte[] plainBinary = Encoding.UTF8.GetBytes(Guid.NewGuid().ToString()); 57 | byte[] encripted = RSAEncryption.Encrypt(plainBinary, publicPrivateKeypair.Key); 58 | Assert.AreNotEqual(plainBinary, encripted); 59 | } 60 | 61 | //Test for decrypting strings 62 | [TestCase(400)] 63 | public void DecryptStringRegularTest(int keySize) 64 | { 65 | KeyValuePair publicPrivateKeypair = RSAEncryption.GenrateKeyPair(keySize); 66 | string plainString = Guid.NewGuid().ToString(); 67 | string encripted = RSAEncryption.Encrypt(plainString, publicPrivateKeypair.Key); 68 | string decripted = RSAEncryption.Decrypt(encripted, publicPrivateKeypair.Value); 69 | Assert.AreEqual(plainString, decripted); 70 | } 71 | 72 | //Fail to decrypt strings 73 | [TestCase(1016)] 74 | public void DecryptStringIrregularTest(int keySize) 75 | { 76 | KeyValuePair publicPrivateKeypair1 = RSAEncryption.GenrateKeyPair(keySize); 77 | string plainString = Guid.NewGuid().ToString(); 78 | string encripted = RSAEncryption.Encrypt(plainString, publicPrivateKeypair1.Key); 79 | // try to decrypt public key 80 | CryptographicException exception = Assert.Throws(() => RSAEncryption.Decrypt(encripted, publicPrivateKeypair1.Key)); 81 | Assert.IsNotNull(exception); 82 | Assert.AreEqual(exception.Message, "Missing private key to decrypt value."); 83 | } 84 | 85 | //Test for decrypting binary 86 | [TestCase(408)] 87 | public void DecryptBinaryRegularTest(int keySize) 88 | { 89 | KeyValuePair publicPrivateKeypair = RSAEncryption.GenrateKeyPair(keySize); 90 | byte[] plainBinary = Encoding.UTF8.GetBytes(Guid.NewGuid().ToString()); 91 | byte[] encripted = RSAEncryption.Encrypt(plainBinary, publicPrivateKeypair.Key); 92 | byte[] decripted = RSAEncryption.Decrypt(encripted, publicPrivateKeypair.Value); 93 | Assert.AreEqual(plainBinary, decripted); 94 | } 95 | 96 | //Fail to decrypt binary 97 | [TestCase(1032)] 98 | public void DecryptBinaryIrregularTest(int keySize) 99 | { 100 | KeyValuePair publicPrivateKeypair1 = RSAEncryption.GenrateKeyPair(keySize); 101 | byte[] plainBinary = Encoding.UTF8.GetBytes(Guid.NewGuid().ToString()); 102 | byte[] encripted = RSAEncryption.Encrypt(plainBinary, publicPrivateKeypair1.Key); 103 | // try to decrypt public key 104 | CryptographicException exception = Assert.Throws(() => RSAEncryption.Decrypt(encripted, publicPrivateKeypair1.Key)); 105 | Assert.IsNotNull(exception); 106 | Assert.AreEqual(exception.Message, "Missing private key to decrypt value."); 107 | } 108 | } 109 | } -------------------------------------------------------------------------------- /Assets/Editor/Tests/UnitTest/RSAEncryptionTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87573b19d944f44af9de85294ce23fba 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/Tests/UnitTest/RijndaelEncryptionTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | 4 | namespace UnityCipher 5 | { 6 | [TestFixture] 7 | public class RijndaelEncryptionTest 8 | { 9 | //Test for encrypting and decrypting strings 10 | [Test] 11 | public void EncryptDecryptStringTest() 12 | { 13 | string src = Guid.NewGuid().ToString(); 14 | string passowrd = Guid.NewGuid().ToString(); 15 | Assert.AreNotEqual(src, passowrd); 16 | 17 | // Encrypted string will be a string different from the original string 18 | string encrypted = RijndaelEncryption.Encrypt(src, passowrd); 19 | Assert.AreNotEqual(src, encrypted); 20 | 21 | //When decrypting with the same password as when encrypting the encrypted one, the same as the binary before encryption is obtained 22 | string decrypted = RijndaelEncryption.Decrypt(encrypted, passowrd); 23 | Assert.AreEqual(src, decrypted); 24 | } 25 | 26 | //Test for encrypting and decrypting binary 27 | [Test] 28 | public void EncryptDecryptBinaryTest() 29 | { 30 | byte[] binary = GenerateRandomBinary(32); 31 | string passowrd = Guid.NewGuid().ToString(); 32 | byte[] encrypted = RijndaelEncryption.Encrypt(binary, passowrd); 33 | bool isEquals = binary.Length == encrypted.Length; 34 | // Encrypted binary will be a binary different from the original binary 35 | if (isEquals) 36 | { 37 | for (int i = 0; i < binary.Length; ++i) 38 | { 39 | if (binary[i] != encrypted[i]) 40 | { 41 | isEquals = false; 42 | break; 43 | } 44 | } 45 | } 46 | Assert.IsFalse(isEquals); 47 | 48 | //When decrypting with the same password as when encrypting the encrypted one, the same as the binary before encryption is obtained 49 | byte[] decrypted = RijndaelEncryption.Decrypt(encrypted, passowrd); 50 | Assert.AreEqual(binary.Length, decrypted.Length); 51 | for (int i = 0; i < binary.Length; ++i) 52 | { 53 | Assert.AreEqual(binary[i], decrypted[i]); 54 | } 55 | } 56 | 57 | // Test features of AES encryption 58 | // Test for encrypting with the same binary and the same password, but the cryptogram will not be the same 59 | [Test] 60 | public void RijndaelEncryptBinaryTest() 61 | { 62 | byte[] binary = GenerateRandomBinary(32); 63 | string passowrd = Guid.NewGuid().ToString(); 64 | byte[] encrypted1 = RijndaelEncryption.Encrypt(binary, passowrd); 65 | byte[] encrypted2 = RijndaelEncryption.Encrypt(binary, passowrd); 66 | bool isEquals = encrypted1.Length == encrypted2.Length; 67 | // Encrypted binary will be a binary different from the original binary 68 | if (isEquals) 69 | { 70 | for (int i = 0; i < encrypted1.Length; ++i) 71 | { 72 | if (encrypted1[i] != encrypted2[i]) 73 | { 74 | isEquals = false; 75 | break; 76 | } 77 | } 78 | } 79 | Assert.IsFalse(isEquals); 80 | } 81 | 82 | // Test features of AES encryption 83 | // Test for encrypting with the same string and the same password, but the cryptogram will not be the same 84 | [Test] 85 | public void RijndaelEncryptStringTest() 86 | { 87 | string src = Guid.NewGuid().ToString(); 88 | string passowrd = Guid.NewGuid().ToString(); 89 | Assert.AreNotEqual(src, passowrd); 90 | 91 | string encrypted1 = RijndaelEncryption.Encrypt(src, passowrd); 92 | string encrypted2 = RijndaelEncryption.Encrypt(src, passowrd); 93 | Assert.AreNotEqual(encrypted1, encrypted2); 94 | } 95 | 96 | // Test features of AES encryption 97 | // When decrypting different cryptogram encrypted with the same binary and the same password respectively, it becomes the same binary. 98 | [Test] 99 | public void RijndaelDecryptBinaryTest() 100 | { 101 | byte[] binary = GenerateRandomBinary(32); 102 | string passowrd = Guid.NewGuid().ToString(); 103 | byte[] encrypted1 = RijndaelEncryption.Encrypt(binary, passowrd); 104 | byte[] encrypted2 = RijndaelEncryption.Encrypt(binary, passowrd); 105 | 106 | byte[] decrypted1 = RijndaelEncryption.Decrypt(encrypted1, passowrd); 107 | byte[] decrypted2 = RijndaelEncryption.Decrypt(encrypted2, passowrd); 108 | Assert.AreEqual(decrypted1.Length, decrypted2.Length); 109 | for (int i = 0; i < decrypted1.Length; ++i) 110 | { 111 | Assert.AreEqual(decrypted1[i], decrypted2[i]); 112 | } 113 | } 114 | 115 | // Test features of AES encryption 116 | // When decrypting different cryptogram encrypted with the same binary and the same password respectively, it becomes the same string. 117 | [Test] 118 | public void RijndaelDecryptStringTest() 119 | { 120 | string src = Guid.NewGuid().ToString(); 121 | string passowrd = Guid.NewGuid().ToString(); 122 | 123 | string encrypted1 = RijndaelEncryption.Encrypt(src, passowrd); 124 | string encrypted2 = RijndaelEncryption.Encrypt(src, passowrd); 125 | 126 | string decrypted1 = RijndaelEncryption.Decrypt(encrypted1, passowrd); 127 | string decrypted2 = RijndaelEncryption.Decrypt(encrypted2, passowrd); 128 | Assert.AreEqual(decrypted1, decrypted2); 129 | } 130 | 131 | //Test for being able to update keysize, and encrypt and decrypt. 132 | [TestCase(16, 128, 128)] 133 | public void UpdateKeysAndEncrypting(int bufferKeySize, int blockSize, int keySize) 134 | { 135 | RijndaelEncryption.UpdateEncryptionKeySize( 136 | bufferKeySize: bufferKeySize, 137 | blockSize: blockSize, 138 | keySize: keySize 139 | ); 140 | 141 | string src = Guid.NewGuid().ToString(); 142 | string passowrd = Guid.NewGuid().ToString(); 143 | Assert.AreNotEqual(src, passowrd); 144 | 145 | // Encrypted string will be a string different from the original string 146 | string encrypted = RijndaelEncryption.Encrypt(src, passowrd); 147 | Assert.AreNotEqual(src, encrypted); 148 | 149 | //When decrypting with the same password as when encrypting the encrypted one, the same as the binary before encryption is obtained 150 | string decrypted = RijndaelEncryption.Decrypt(encrypted, passowrd); 151 | Assert.AreEqual(src, decrypted); 152 | 153 | RijndaelEncryption.UpdateEncryptionKeySize( 154 | bufferKeySize: 32, 155 | blockSize: 256, 156 | keySize: 256 157 | ); 158 | } 159 | 160 | private byte[] GenerateRandomBinary(int bufferSize) 161 | { 162 | byte[] binary = new byte[bufferSize]; 163 | Random rand = new Random(); 164 | for (int i = 0; i < bufferSize; ++i) 165 | { 166 | binary[i] = Convert.ToByte(rand.Next(byte.MinValue, byte.MaxValue + 1)); 167 | } 168 | return binary; 169 | } 170 | } 171 | } -------------------------------------------------------------------------------- /Assets/Editor/Tests/UnitTest/RijndaelEncryptionTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7276628f22ef4d2185ddd8835eb5b57 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/UnityPackageExporter.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text.RegularExpressions; 3 | using UnityEditor; 4 | using System.Diagnostics; 5 | 6 | public class UnityPackageExporter 7 | { 8 | public const string DefaultBuildIncludeRootPath = "Assets/UnityCipher"; 9 | public const string DefaultExportUnityPackageFilePath = "UnityCipher.unitypackage"; 10 | 11 | public static void ExportUnityPackageFromCommand() 12 | { 13 | ExportUnityPackageRoutine(DefaultBuildIncludeRootPath, DefaultExportUnityPackageFilePath); 14 | } 15 | 16 | public static void ExportUnityPackageRoutine( 17 | string buildIncludeRootPath, 18 | string exportFilePath 19 | ) 20 | { 21 | List buildPathes = FindFilePathes(buildIncludeRootPath); 22 | ExportUnityPackage(buildPathes.ToArray(), exportFilePath); 23 | string[] pathCells = exportFilePath.Split("/".ToCharArray()); 24 | pathCells[pathCells.Length - 1] = ""; 25 | // 保存先フォルダを開く 26 | Process.Start(string.Join("/", pathCells)); 27 | } 28 | 29 | public static void ExportUnityPackage(string[] buildIncludeRootPathes, string exportFilePath) 30 | { 31 | AssetDatabase.ExportPackage(buildIncludeRootPathes, exportFilePath, ExportPackageOptions.Recurse); 32 | } 33 | 34 | public static void ExportUnityPackage(string buildIncludeRootDirPath, string exportFilePath) 35 | { 36 | List buildPathes = UnityPackageExporter.FindFilePathes(buildIncludeRootDirPath); 37 | AssetDatabase.ExportPackage(buildPathes.ToArray(), exportFilePath, ExportPackageOptions.Recurse); 38 | } 39 | 40 | public static List FindFilePathes(string filterName, string extFileName = "") 41 | { 42 | List seachedFilePathes = new List(); 43 | string[] pathes = AssetDatabase.GetAllAssetPaths(); 44 | for (int i = 0; i < pathes.Length; ++i) 45 | { 46 | string path = pathes[i]; 47 | Match match = Regex.Match(path.ToLower(), @"" + filterName.ToLower() + ".+" + extFileName); 48 | if (match.Success) 49 | { 50 | seachedFilePathes.Add(path); 51 | } 52 | } 53 | return seachedFilePathes; 54 | } 55 | 56 | public static string FileRootPath(string filePath) 57 | { 58 | string[] pathCells = filePath.Split("/".ToCharArray()); 59 | pathCells[pathCells.Length - 1] = ""; 60 | return string.Join("/", pathCells); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Assets/Editor/UnityPackageExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 647235fb842164825ba9daefe203e3e4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Examples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 964841d477b144dadaea4b34c1874b06 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Examples/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2932f365cc4894cd5bd4ae7babc40b9e 3 | folderAsset: yes 4 | timeCreated: 1522747856 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Examples/Prefabs/TabController.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb015870138a845b4ab1dd8fe9d50963 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3884a52810fd346798fce3d2d207722e 3 | folderAsset: yes 4 | timeCreated: 1501655078 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/Example.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641258, b: 0.5748172, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 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 &1006653479 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: 1006653481} 133 | - component: {fileID: 1006653480} 134 | m_Layer: 0 135 | m_Name: Directional Light 136 | m_TagString: Untagged 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!108 &1006653480 142 | Light: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 1006653479} 148 | m_Enabled: 1 149 | serializedVersion: 10 150 | m_Type: 1 151 | m_Shape: 0 152 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 153 | m_Intensity: 1 154 | m_Range: 10 155 | m_SpotAngle: 30 156 | m_InnerSpotAngle: 21.80208 157 | m_CookieSize: 10 158 | m_Shadows: 159 | m_Type: 2 160 | m_Resolution: -1 161 | m_CustomResolution: -1 162 | m_Strength: 1 163 | m_Bias: 0.05 164 | m_NormalBias: 0.4 165 | m_NearPlane: 0.2 166 | m_CullingMatrixOverride: 167 | e00: 1 168 | e01: 0 169 | e02: 0 170 | e03: 0 171 | e10: 0 172 | e11: 1 173 | e12: 0 174 | e13: 0 175 | e20: 0 176 | e21: 0 177 | e22: 1 178 | e23: 0 179 | e30: 0 180 | e31: 0 181 | e32: 0 182 | e33: 1 183 | m_UseCullingMatrixOverride: 0 184 | m_Cookie: {fileID: 0} 185 | m_DrawHalo: 0 186 | m_Flare: {fileID: 0} 187 | m_RenderMode: 0 188 | m_CullingMask: 189 | serializedVersion: 2 190 | m_Bits: 4294967295 191 | m_RenderingLayerMask: 1 192 | m_Lightmapping: 4 193 | m_LightShadowCasterMode: 0 194 | m_AreaSize: {x: 1, y: 1} 195 | m_BounceIntensity: 1 196 | m_ColorTemperature: 6570 197 | m_UseColorTemperature: 0 198 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 199 | m_UseBoundingSphereOverride: 0 200 | m_ShadowRadius: 0 201 | m_ShadowAngle: 0 202 | --- !u!4 &1006653481 203 | Transform: 204 | m_ObjectHideFlags: 0 205 | m_CorrespondingSourceObject: {fileID: 0} 206 | m_PrefabInstance: {fileID: 0} 207 | m_PrefabAsset: {fileID: 0} 208 | m_GameObject: {fileID: 1006653479} 209 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 210 | m_LocalPosition: {x: 0, y: 3, z: 0} 211 | m_LocalScale: {x: 1, y: 1, z: 1} 212 | m_Children: [] 213 | m_Father: {fileID: 0} 214 | m_RootOrder: 1 215 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 216 | --- !u!1 &1021502243 217 | GameObject: 218 | m_ObjectHideFlags: 0 219 | m_CorrespondingSourceObject: {fileID: 0} 220 | m_PrefabInstance: {fileID: 0} 221 | m_PrefabAsset: {fileID: 0} 222 | serializedVersion: 6 223 | m_Component: 224 | - component: {fileID: 1021502248} 225 | - component: {fileID: 1021502247} 226 | - component: {fileID: 1021502244} 227 | m_Layer: 0 228 | m_Name: Main Camera 229 | m_TagString: MainCamera 230 | m_Icon: {fileID: 0} 231 | m_NavMeshLayer: 0 232 | m_StaticEditorFlags: 0 233 | m_IsActive: 1 234 | --- !u!81 &1021502244 235 | AudioListener: 236 | m_ObjectHideFlags: 0 237 | m_CorrespondingSourceObject: {fileID: 0} 238 | m_PrefabInstance: {fileID: 0} 239 | m_PrefabAsset: {fileID: 0} 240 | m_GameObject: {fileID: 1021502243} 241 | m_Enabled: 1 242 | --- !u!20 &1021502247 243 | Camera: 244 | m_ObjectHideFlags: 0 245 | m_CorrespondingSourceObject: {fileID: 0} 246 | m_PrefabInstance: {fileID: 0} 247 | m_PrefabAsset: {fileID: 0} 248 | m_GameObject: {fileID: 1021502243} 249 | m_Enabled: 1 250 | serializedVersion: 2 251 | m_ClearFlags: 1 252 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 253 | m_projectionMatrixMode: 1 254 | m_GateFitMode: 2 255 | m_FOVAxisMode: 0 256 | m_SensorSize: {x: 36, y: 24} 257 | m_LensShift: {x: 0, y: 0} 258 | m_FocalLength: 50 259 | m_NormalizedViewPortRect: 260 | serializedVersion: 2 261 | x: 0 262 | y: 0 263 | width: 1 264 | height: 1 265 | near clip plane: 0.3 266 | far clip plane: 1000 267 | field of view: 60 268 | orthographic: 0 269 | orthographic size: 5 270 | m_Depth: -1 271 | m_CullingMask: 272 | serializedVersion: 2 273 | m_Bits: 4294967295 274 | m_RenderingPath: -1 275 | m_TargetTexture: {fileID: 0} 276 | m_TargetDisplay: 0 277 | m_TargetEye: 3 278 | m_HDR: 1 279 | m_AllowMSAA: 1 280 | m_AllowDynamicResolution: 0 281 | m_ForceIntoRT: 0 282 | m_OcclusionCulling: 1 283 | m_StereoConvergence: 10 284 | m_StereoSeparation: 0.022 285 | --- !u!4 &1021502248 286 | Transform: 287 | m_ObjectHideFlags: 0 288 | m_CorrespondingSourceObject: {fileID: 0} 289 | m_PrefabInstance: {fileID: 0} 290 | m_PrefabAsset: {fileID: 0} 291 | m_GameObject: {fileID: 1021502243} 292 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 293 | m_LocalPosition: {x: 0, y: 1, z: -10} 294 | m_LocalScale: {x: 1, y: 1, z: 1} 295 | m_Children: [] 296 | m_Father: {fileID: 0} 297 | m_RootOrder: 0 298 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 299 | --- !u!1 &1630973881 300 | GameObject: 301 | m_ObjectHideFlags: 0 302 | m_CorrespondingSourceObject: {fileID: 0} 303 | m_PrefabInstance: {fileID: 0} 304 | m_PrefabAsset: {fileID: 0} 305 | serializedVersion: 6 306 | m_Component: 307 | - component: {fileID: 1630973885} 308 | - component: {fileID: 1630973884} 309 | - component: {fileID: 1630973883} 310 | - component: {fileID: 1630973882} 311 | m_Layer: 5 312 | m_Name: Canvas 313 | m_TagString: Untagged 314 | m_Icon: {fileID: 0} 315 | m_NavMeshLayer: 0 316 | m_StaticEditorFlags: 0 317 | m_IsActive: 1 318 | --- !u!114 &1630973882 319 | MonoBehaviour: 320 | m_ObjectHideFlags: 0 321 | m_CorrespondingSourceObject: {fileID: 0} 322 | m_PrefabInstance: {fileID: 0} 323 | m_PrefabAsset: {fileID: 0} 324 | m_GameObject: {fileID: 1630973881} 325 | m_Enabled: 1 326 | m_EditorHideFlags: 0 327 | m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3} 328 | m_Name: 329 | m_EditorClassIdentifier: 330 | m_IgnoreReversedGraphics: 1 331 | m_BlockingObjects: 0 332 | m_BlockingMask: 333 | serializedVersion: 2 334 | m_Bits: 4294967295 335 | --- !u!114 &1630973883 336 | MonoBehaviour: 337 | m_ObjectHideFlags: 0 338 | m_CorrespondingSourceObject: {fileID: 0} 339 | m_PrefabInstance: {fileID: 0} 340 | m_PrefabAsset: {fileID: 0} 341 | m_GameObject: {fileID: 1630973881} 342 | m_Enabled: 1 343 | m_EditorHideFlags: 0 344 | m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} 345 | m_Name: 346 | m_EditorClassIdentifier: 347 | m_UiScaleMode: 0 348 | m_ReferencePixelsPerUnit: 100 349 | m_ScaleFactor: 1 350 | m_ReferenceResolution: {x: 800, y: 600} 351 | m_ScreenMatchMode: 0 352 | m_MatchWidthOrHeight: 0 353 | m_PhysicalUnit: 3 354 | m_FallbackScreenDPI: 96 355 | m_DefaultSpriteDPI: 96 356 | m_DynamicPixelsPerUnit: 1 357 | --- !u!223 &1630973884 358 | Canvas: 359 | m_ObjectHideFlags: 0 360 | m_CorrespondingSourceObject: {fileID: 0} 361 | m_PrefabInstance: {fileID: 0} 362 | m_PrefabAsset: {fileID: 0} 363 | m_GameObject: {fileID: 1630973881} 364 | m_Enabled: 1 365 | serializedVersion: 3 366 | m_RenderMode: 0 367 | m_Camera: {fileID: 0} 368 | m_PlaneDistance: 100 369 | m_PixelPerfect: 0 370 | m_ReceivesEvents: 1 371 | m_OverrideSorting: 0 372 | m_OverridePixelPerfect: 0 373 | m_SortingBucketNormalizedSize: 0 374 | m_AdditionalShaderChannelsFlag: 0 375 | m_SortingLayerID: 0 376 | m_SortingOrder: 0 377 | m_TargetDisplay: 0 378 | --- !u!224 &1630973885 379 | RectTransform: 380 | m_ObjectHideFlags: 0 381 | m_CorrespondingSourceObject: {fileID: 0} 382 | m_PrefabInstance: {fileID: 0} 383 | m_PrefabAsset: {fileID: 0} 384 | m_GameObject: {fileID: 1630973881} 385 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 386 | m_LocalPosition: {x: 0, y: 0, z: 0} 387 | m_LocalScale: {x: 0, y: 0, z: 0} 388 | m_Children: 389 | - {fileID: 1680759701} 390 | m_Father: {fileID: 0} 391 | m_RootOrder: 2 392 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 393 | m_AnchorMin: {x: 0, y: 0} 394 | m_AnchorMax: {x: 0, y: 0} 395 | m_AnchoredPosition: {x: 0, y: 0} 396 | m_SizeDelta: {x: 0, y: 0} 397 | m_Pivot: {x: 0, y: 0} 398 | --- !u!1001 &1662765292 399 | PrefabInstance: 400 | m_ObjectHideFlags: 0 401 | serializedVersion: 2 402 | m_Modification: 403 | m_TransformParent: {fileID: 1630973885} 404 | m_Modifications: 405 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 406 | type: 3} 407 | propertyPath: m_Pivot.x 408 | value: 0.5 409 | objectReference: {fileID: 0} 410 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 411 | type: 3} 412 | propertyPath: m_Pivot.y 413 | value: 0.5 414 | objectReference: {fileID: 0} 415 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 416 | type: 3} 417 | propertyPath: m_RootOrder 418 | value: 0 419 | objectReference: {fileID: 0} 420 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 421 | type: 3} 422 | propertyPath: m_AnchorMax.x 423 | value: 1 424 | objectReference: {fileID: 0} 425 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 426 | type: 3} 427 | propertyPath: m_AnchorMax.y 428 | value: 1 429 | objectReference: {fileID: 0} 430 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 431 | type: 3} 432 | propertyPath: m_AnchorMin.x 433 | value: 0 434 | objectReference: {fileID: 0} 435 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 436 | type: 3} 437 | propertyPath: m_AnchorMin.y 438 | value: 0 439 | objectReference: {fileID: 0} 440 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 441 | type: 3} 442 | propertyPath: m_SizeDelta.x 443 | value: 0 444 | objectReference: {fileID: 0} 445 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 446 | type: 3} 447 | propertyPath: m_SizeDelta.y 448 | value: 0 449 | objectReference: {fileID: 0} 450 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 451 | type: 3} 452 | propertyPath: m_LocalPosition.x 453 | value: 0 454 | objectReference: {fileID: 0} 455 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 456 | type: 3} 457 | propertyPath: m_LocalPosition.y 458 | value: 0 459 | objectReference: {fileID: 0} 460 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 461 | type: 3} 462 | propertyPath: m_LocalPosition.z 463 | value: 0 464 | objectReference: {fileID: 0} 465 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 466 | type: 3} 467 | propertyPath: m_LocalRotation.w 468 | value: 1 469 | objectReference: {fileID: 0} 470 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 471 | type: 3} 472 | propertyPath: m_LocalRotation.x 473 | value: 0 474 | objectReference: {fileID: 0} 475 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 476 | type: 3} 477 | propertyPath: m_LocalRotation.y 478 | value: 0 479 | objectReference: {fileID: 0} 480 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 481 | type: 3} 482 | propertyPath: m_LocalRotation.z 483 | value: 0 484 | objectReference: {fileID: 0} 485 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 486 | type: 3} 487 | propertyPath: m_AnchoredPosition.x 488 | value: 0 489 | objectReference: {fileID: 0} 490 | - target: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 491 | type: 3} 492 | propertyPath: m_AnchoredPosition.y 493 | value: 0 494 | objectReference: {fileID: 0} 495 | m_RemovedComponents: [] 496 | m_SourcePrefab: {fileID: 100100000, guid: cb015870138a845b4ab1dd8fe9d50963, type: 3} 497 | --- !u!224 &1680759701 stripped 498 | RectTransform: 499 | m_CorrespondingSourceObject: {fileID: 224150435996532216, guid: cb015870138a845b4ab1dd8fe9d50963, 500 | type: 3} 501 | m_PrefabInstance: {fileID: 1662765292} 502 | m_PrefabAsset: {fileID: 0} 503 | --- !u!1 &2135844093 504 | GameObject: 505 | m_ObjectHideFlags: 0 506 | m_CorrespondingSourceObject: {fileID: 0} 507 | m_PrefabInstance: {fileID: 0} 508 | m_PrefabAsset: {fileID: 0} 509 | serializedVersion: 6 510 | m_Component: 511 | - component: {fileID: 2135844096} 512 | - component: {fileID: 2135844095} 513 | - component: {fileID: 2135844094} 514 | m_Layer: 0 515 | m_Name: EventSystem 516 | m_TagString: Untagged 517 | m_Icon: {fileID: 0} 518 | m_NavMeshLayer: 0 519 | m_StaticEditorFlags: 0 520 | m_IsActive: 1 521 | --- !u!114 &2135844094 522 | MonoBehaviour: 523 | m_ObjectHideFlags: 0 524 | m_CorrespondingSourceObject: {fileID: 0} 525 | m_PrefabInstance: {fileID: 0} 526 | m_PrefabAsset: {fileID: 0} 527 | m_GameObject: {fileID: 2135844093} 528 | m_Enabled: 1 529 | m_EditorHideFlags: 0 530 | m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} 531 | m_Name: 532 | m_EditorClassIdentifier: 533 | m_HorizontalAxis: Horizontal 534 | m_VerticalAxis: Vertical 535 | m_SubmitButton: Submit 536 | m_CancelButton: Cancel 537 | m_InputActionsPerSecond: 10 538 | m_RepeatDelay: 0.5 539 | m_ForceModuleActive: 0 540 | --- !u!114 &2135844095 541 | MonoBehaviour: 542 | m_ObjectHideFlags: 0 543 | m_CorrespondingSourceObject: {fileID: 0} 544 | m_PrefabInstance: {fileID: 0} 545 | m_PrefabAsset: {fileID: 0} 546 | m_GameObject: {fileID: 2135844093} 547 | m_Enabled: 1 548 | m_EditorHideFlags: 0 549 | m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} 550 | m_Name: 551 | m_EditorClassIdentifier: 552 | m_FirstSelected: {fileID: 0} 553 | m_sendNavigationEvents: 1 554 | m_DragThreshold: 5 555 | --- !u!4 &2135844096 556 | Transform: 557 | m_ObjectHideFlags: 0 558 | m_CorrespondingSourceObject: {fileID: 0} 559 | m_PrefabInstance: {fileID: 0} 560 | m_PrefabAsset: {fileID: 0} 561 | m_GameObject: {fileID: 2135844093} 562 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 563 | m_LocalPosition: {x: 0, y: 0, z: 0} 564 | m_LocalScale: {x: 1, y: 1, z: 1} 565 | m_Children: [] 566 | m_Father: {fileID: 0} 567 | m_RootOrder: 3 568 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 569 | -------------------------------------------------------------------------------- /Assets/Examples/Scenes/Example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92fe9c21aeeaf4ccb9350c3c653c47f7 3 | timeCreated: 1501655085 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Examples/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46510c9f58e4c4c3ca7aa193af8dfe6e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Examples/Scripts/RSAContent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | using UnityCipher; 4 | using System.Collections.Generic; 5 | 6 | public class RSAContent : MonoBehaviour 7 | { 8 | [SerializeField] private InputField textInput; 9 | [SerializeField] private InputField sizeInput; 10 | [SerializeField] private InputField publicKeyText; 11 | [SerializeField] private InputField privateKeyText; 12 | [SerializeField] private InputField resultText; 13 | [SerializeField] private GameObject cryptoField; 14 | 15 | private KeyValuePair publicAndPrivateKeyValuePair; 16 | 17 | private void Start() 18 | { 19 | cryptoField.gameObject.SetActive(false); 20 | } 21 | 22 | public void GenarateKeyPair() 23 | { 24 | cryptoField.gameObject.SetActive(true); 25 | publicAndPrivateKeyValuePair = RSAEncryption.GenrateKeyPair(int.Parse(sizeInput.text)); 26 | Debug.Log(publicAndPrivateKeyValuePair.Key); 27 | Debug.Log(publicAndPrivateKeyValuePair.Value); 28 | publicKeyText.text = publicAndPrivateKeyValuePair.Key; 29 | privateKeyText.text = publicAndPrivateKeyValuePair.Value; 30 | } 31 | 32 | public void ExecuteEncrypt(){ 33 | if(string.IsNullOrEmpty(publicKeyText.text)){ 34 | return; 35 | } 36 | string plainText = textInput.text; 37 | string encrypted = RSAEncryption.Encrypt(plainText, publicAndPrivateKeyValuePair.Key); 38 | Debug.Log(encrypted); 39 | resultText.text = encrypted; 40 | } 41 | 42 | public void ExecuteDecrypt() 43 | { 44 | if (string.IsNullOrEmpty(privateKeyText.text)) 45 | { 46 | return; 47 | } 48 | string encryptedText = textInput.text; 49 | string plain = RSAEncryption.Decrypt(encryptedText, publicAndPrivateKeyValuePair.Value); 50 | Debug.Log(plain); 51 | resultText.text = plain; 52 | } 53 | 54 | public void PasteToInputText() 55 | { 56 | textInput.text = resultText.text; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Assets/Examples/Scripts/RSAContent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa1bc4e98633f4540862cef02b12c774 3 | timeCreated: 1522749161 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Examples/Scripts/RijndaelContent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | using UnityCipher; 4 | 5 | public class RijndaelContent : MonoBehaviour 6 | { 7 | [SerializeField] private InputField textInput; 8 | [SerializeField] private InputField passwordInput; 9 | [SerializeField] private InputField resultText; 10 | 11 | public void ExecuteEncrypt(){ 12 | string plainText = textInput.text; 13 | string passwordText = passwordInput.text; 14 | string encrypted = RijndaelEncryption.Encrypt(plainText, passwordText); 15 | Debug.Log(encrypted); 16 | resultText.text = encrypted; 17 | } 18 | 19 | public void ExecuteDecrypt() 20 | { 21 | string encryptedText = textInput.text; 22 | string passwordText = passwordInput.text; 23 | string plain = RijndaelEncryption.Decrypt(encryptedText, passwordText); 24 | Debug.Log(plain); 25 | resultText.text = plain; 26 | } 27 | 28 | public void PasteToInputText(){ 29 | textInput.text = resultText.text; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/Examples/Scripts/RijndaelContent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58e8db774c3c94a469e450bc9ca804a5 3 | timeCreated: 1522749161 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Examples/Scripts/TabButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.UI; 4 | 5 | public class TabButton : Button { 6 | [SerializeField] private Text buttonText; 7 | 8 | public Action OnSelect = null; 9 | 10 | public string Text{ 11 | set{ 12 | buttonText.text = value; 13 | } 14 | get{ 15 | return buttonText.text; 16 | } 17 | } 18 | 19 | public void OnButtonSelected(){ 20 | if(OnSelect != null){ 21 | this.OnSelect(); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Examples/Scripts/TabButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 63aeb33f072d64e90ae48897694f616c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Examples/Scripts/TabController.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class TabController : MonoBehaviour { 6 | 7 | [SerializeField] private TabButton RijndealButton; 8 | [SerializeField] private TabButton RSAButton; 9 | [SerializeField] private GameObject RijndealContent; 10 | [SerializeField] private GameObject RSAContent; 11 | 12 | // Use this for initialization 13 | void Start () { 14 | RijndealButton.OnSelect = () => 15 | { 16 | ChangeTheTab(false); 17 | }; 18 | RSAButton.OnSelect = () => 19 | { 20 | ChangeTheTab(true); 21 | }; 22 | ChangeTheTab(false); 23 | } 24 | 25 | private void ChangeTheTab(bool isToRSA){ 26 | RijndealButton.interactable = isToRSA; 27 | RSAButton.interactable = !isToRSA; 28 | RSAContent.gameObject.SetActive(isToRSA); 29 | RijndealContent.gameObject.SetActive(!isToRSA); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/Examples/Scripts/TabController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5575d81a8a22947bf8d1ba7f89f21cea 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCipher.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf1c3e51f5b8d4b138ccd8aefe5536f1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCipher/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d2883796c10b6543a133d942ddff790 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCipher/Scripts/RSAEncryption.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Security.Cryptography; 5 | 6 | namespace UnityCipher 7 | { 8 | public class RSAEncryption 9 | { 10 | /// 11 | /// Generate Public And Private KeyPair 12 | /// 【argument1】keySize 13 | /// 【return】Public key and private key KeyValuePair 14 | /// 15 | public static KeyValuePair GenrateKeyPair(int keySize){ 16 | RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(keySize); 17 | string publicKey = rsa.ToXmlString(false); 18 | string privateKey = rsa.ToXmlString(true); 19 | return new KeyValuePair(publicKey, privateKey); 20 | } 21 | 22 | /// 23 | /// Standard Rijndael(AES) encrypt 24 | /// 【argument1】plain text 25 | /// 【argument2】password 26 | /// 【return】Encrypted and converted to Base64 string 27 | /// 28 | public static string Encrypt(string plain, string publicKey) 29 | { 30 | byte[] encrypted = Encrypt(Encoding.UTF8.GetBytes(plain), publicKey); 31 | return Convert.ToBase64String(encrypted); 32 | } 33 | 34 | /// 35 | /// Standard Rijndael(AES) encrypt 36 | /// 【argument1】plain binary 37 | /// 【argument2】password 38 | /// 【return】Encrypted binary 39 | /// 40 | public static byte[] Encrypt(byte[] src, string publicKey) 41 | { 42 | using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider()) 43 | { 44 | rsa.FromXmlString(publicKey); 45 | byte[] encrypted = rsa.Encrypt(src, false); 46 | return encrypted; 47 | } 48 | } 49 | 50 | /// 51 | /// Standard Rijndael(AES) decrypt 52 | /// 【argument1】encrypted string 53 | /// 【argument2】password 54 | /// 【return】Decrypted string 55 | /// 56 | public static string Decrypt(string encrtpted, string privateKey) 57 | { 58 | byte[] decripted = Decrypt(Convert.FromBase64String(encrtpted), privateKey); 59 | return Encoding.UTF8.GetString(decripted); 60 | } 61 | 62 | /// 63 | /// Standard Rijndael(AES) decrypt 64 | /// 【argument1】encrypted binary 65 | /// 【argument2】password 66 | /// 【return】Decrypted binary 67 | /// 68 | public static byte[] Decrypt(byte[] src, string privateKey) 69 | { 70 | using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider()) 71 | { 72 | rsa.FromXmlString(privateKey); 73 | byte[] decrypted = rsa.Decrypt(src, false); 74 | return decrypted; 75 | } 76 | } 77 | } 78 | } -------------------------------------------------------------------------------- /Assets/UnityCipher/Scripts/RSAEncryption.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f59368452e88454080e04b79d590cb4 3 | timeCreated: 1522745508 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/UnityCipher/Scripts/RijndaelEncryption.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Security.Cryptography; 5 | 6 | namespace UnityCipher{ 7 | public class RijndaelEncryption 8 | { 9 | private static int BufferKeySize = 32; 10 | private static int BlockSize = 256; 11 | private static int KeySize = 256; 12 | 13 | /// 14 | /// If you want to update the settings, you can update the settings. 15 | /// 【argument1】buffer key size 16 | /// 【argument2】block size 17 | /// 【argument3】key size 18 | /// 19 | public static void UpdateEncryptionKeySize(int bufferKeySize = 32, int blockSize = 256, int keySize = 256) 20 | { 21 | BufferKeySize = bufferKeySize; 22 | BlockSize = blockSize; 23 | KeySize = keySize; 24 | } 25 | 26 | /// 27 | /// Standard Rijndael(AES) encrypt 28 | /// 【argument1】plain text 29 | /// 【argument2】password 30 | /// 【return】Encrypted and converted to Base64 string 31 | /// 32 | public static string Encrypt(string plain, string password) 33 | { 34 | byte[] encrypted = Encrypt(Encoding.UTF8.GetBytes(plain), password); 35 | return Convert.ToBase64String(encrypted); 36 | } 37 | 38 | /// 39 | /// Standard Rijndael(AES) encrypt 40 | /// 【argument1】plain binary 41 | /// 【argument2】password 42 | /// 【return】Encrypted binary 43 | /// 44 | public static byte[] Encrypt(byte[] src, string password) 45 | { 46 | RijndaelManaged rij = SetupRijndaelManaged; 47 | 48 | // A pseudorandom number is newly generated based on the inputted password 49 | Rfc2898DeriveBytes deriveBytes = new Rfc2898DeriveBytes(password, BufferKeySize); 50 | // The missing parts are specified in advance to fill in 0 length 51 | byte[] salt = new byte[BufferKeySize]; 52 | // Rfc2898DeriveBytes gets an internally generated salt 53 | salt = deriveBytes.Salt; 54 | // The 32-byte data extracted from the generated pseudorandom number is used as a password 55 | byte[] bufferKey = deriveBytes.GetBytes(BufferKeySize); 56 | 57 | rij.Key = bufferKey; 58 | rij.GenerateIV(); 59 | 60 | using (ICryptoTransform encrypt = rij.CreateEncryptor(rij.Key, rij.IV)) 61 | { 62 | byte[] dest = encrypt.TransformFinalBlock(src, 0, src.Length); 63 | // first 32 bytes of salt and second 32 bytes of IV for the first 64 bytes 64 | List compile = new List(salt); 65 | compile.AddRange(rij.IV); 66 | compile.AddRange(dest); 67 | return compile.ToArray(); 68 | } 69 | } 70 | 71 | /// 72 | /// Standard Rijndael(AES) decrypt 73 | /// 【argument1】encrypted string 74 | /// 【argument2】password 75 | /// 【return】Decrypted string 76 | /// 77 | public static string Decrypt(string encrtpted, string password) 78 | { 79 | byte[] decripted = Decrypt(Convert.FromBase64String(encrtpted), password); 80 | return Encoding.UTF8.GetString(decripted); 81 | } 82 | 83 | /// 84 | /// Standard Rijndael(AES) decrypt 85 | /// 【argument1】encrypted binary 86 | /// 【argument2】password 87 | /// 【return】Decrypted binary 88 | /// 89 | public static byte[] Decrypt(byte[] src, string password) 90 | { 91 | RijndaelManaged rij = SetupRijndaelManaged; 92 | 93 | List compile = new List(src); 94 | 95 | // First 32 bytes are salt. 96 | List salt = compile.GetRange(0, BufferKeySize); 97 | // Second 32 bytes are IV. 98 | List iv = compile.GetRange(BufferKeySize, BufferKeySize); 99 | rij.IV = iv.ToArray(); 100 | 101 | Rfc2898DeriveBytes deriveBytes = new Rfc2898DeriveBytes(password, salt.ToArray()); 102 | byte[] bufferKey = deriveBytes.GetBytes(BufferKeySize); // Convert 32 bytes of salt to password 103 | rij.Key = bufferKey; 104 | 105 | byte[] plain = compile.GetRange(BufferKeySize * 2, compile.Count - (BufferKeySize * 2)).ToArray(); 106 | 107 | using (ICryptoTransform decrypt = rij.CreateDecryptor(rij.Key, rij.IV)) 108 | { 109 | byte[] dest = decrypt.TransformFinalBlock(plain, 0, plain.Length); 110 | return dest; 111 | } 112 | } 113 | 114 | private static RijndaelManaged SetupRijndaelManaged 115 | { 116 | get 117 | { 118 | RijndaelManaged rij = new RijndaelManaged(); 119 | rij.BlockSize = BlockSize; 120 | rij.KeySize = KeySize; 121 | rij.Mode = CipherMode.CBC; 122 | rij.Padding = PaddingMode.PKCS7; 123 | return rij; 124 | } 125 | } 126 | } 127 | } -------------------------------------------------------------------------------- /Assets/UnityCipher/Scripts/RijndaelEncryption.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3cdc42977a70043e2a5b737c0c340bff 3 | timeCreated: 1522745508 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/UnityCipher/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "net.taptappun.taku.kobayashi.unitycipher", 3 | "displayName": "UnityCipher", 4 | "version": "1.3.0", 5 | "unity": "2019.4", 6 | "description": "This is Cipher Libraries in Unity, include the AESCipher and RSACipher.", 7 | "keywords": ["Cipher", "Encrypt", "Crypto", "RSA", "AES"], 8 | "category": "Cipher", 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/TakuKobayashi/UnityCipher.git" 12 | }, 13 | "author": "TakuKobayashi", 14 | "license": "MIT", 15 | "bugs": { 16 | "url": "https://github.com/TakuKobayashi/UnityCipher/issues" 17 | }, 18 | "homepage": "https://github.com/TakuKobayashi/UnityCipher#readme" 19 | } 20 | -------------------------------------------------------------------------------- /Assets/UnityCipher/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49e9426d54731044c892fc0d3a168551 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 taptappun 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "1.15.17", 4 | "com.unity.ide.rider": "3.0.14", 5 | "com.unity.ide.visualstudio": "2.0.15", 6 | "com.unity.ide.vscode": "1.2.5", 7 | "com.unity.test-framework": "1.1.31", 8 | "com.unity.textmeshpro": "3.0.6", 9 | "com.unity.timeline": "1.6.4", 10 | "com.unity.toolchain.win-x86_64-linux-x86_64": "0.1.19-preview", 11 | "com.unity.ugui": "1.0.0", 12 | "net.taptappun.taku.kobayashi.unitydotenv": "https://github.com/TakuKobayashi/UnityDotenv.git?path=/Unity/Assets/UnityDotenv", 13 | "com.unity.modules.ai": "1.0.0", 14 | "com.unity.modules.androidjni": "1.0.0", 15 | "com.unity.modules.animation": "1.0.0", 16 | "com.unity.modules.assetbundle": "1.0.0", 17 | "com.unity.modules.audio": "1.0.0", 18 | "com.unity.modules.cloth": "1.0.0", 19 | "com.unity.modules.director": "1.0.0", 20 | "com.unity.modules.imageconversion": "1.0.0", 21 | "com.unity.modules.imgui": "1.0.0", 22 | "com.unity.modules.jsonserialize": "1.0.0", 23 | "com.unity.modules.particlesystem": "1.0.0", 24 | "com.unity.modules.physics": "1.0.0", 25 | "com.unity.modules.physics2d": "1.0.0", 26 | "com.unity.modules.screencapture": "1.0.0", 27 | "com.unity.modules.terrain": "1.0.0", 28 | "com.unity.modules.terrainphysics": "1.0.0", 29 | "com.unity.modules.tilemap": "1.0.0", 30 | "com.unity.modules.ui": "1.0.0", 31 | "com.unity.modules.uielements": "1.0.0", 32 | "com.unity.modules.umbra": "1.0.0", 33 | "com.unity.modules.unityanalytics": "1.0.0", 34 | "com.unity.modules.unitywebrequest": "1.0.0", 35 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 36 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 37 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 38 | "com.unity.modules.unitywebrequestwww": "1.0.0", 39 | "com.unity.modules.vehicles": "1.0.0", 40 | "com.unity.modules.video": "1.0.0", 41 | "com.unity.modules.vr": "1.0.0", 42 | "com.unity.modules.wind": "1.0.0", 43 | "com.unity.modules.xr": "1.0.0" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": { 4 | "version": "1.15.17", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.services.core": "1.0.1" 9 | }, 10 | "url": "https://packages.unity.com" 11 | }, 12 | "com.unity.ext.nunit": { 13 | "version": "1.0.6", 14 | "depth": 1, 15 | "source": "registry", 16 | "dependencies": {}, 17 | "url": "https://packages.unity.com" 18 | }, 19 | "com.unity.ide.rider": { 20 | "version": "3.0.14", 21 | "depth": 0, 22 | "source": "registry", 23 | "dependencies": { 24 | "com.unity.ext.nunit": "1.0.6" 25 | }, 26 | "url": "https://packages.unity.com" 27 | }, 28 | "com.unity.ide.visualstudio": { 29 | "version": "2.0.15", 30 | "depth": 0, 31 | "source": "registry", 32 | "dependencies": { 33 | "com.unity.test-framework": "1.1.9" 34 | }, 35 | "url": "https://packages.unity.com" 36 | }, 37 | "com.unity.ide.vscode": { 38 | "version": "1.2.5", 39 | "depth": 0, 40 | "source": "registry", 41 | "dependencies": {}, 42 | "url": "https://packages.unity.com" 43 | }, 44 | "com.unity.nuget.newtonsoft-json": { 45 | "version": "3.0.2", 46 | "depth": 2, 47 | "source": "registry", 48 | "dependencies": {}, 49 | "url": "https://packages.unity.com" 50 | }, 51 | "com.unity.services.core": { 52 | "version": "1.4.0", 53 | "depth": 1, 54 | "source": "registry", 55 | "dependencies": { 56 | "com.unity.modules.unitywebrequest": "1.0.0", 57 | "com.unity.nuget.newtonsoft-json": "3.0.2", 58 | "com.unity.modules.androidjni": "1.0.0" 59 | }, 60 | "url": "https://packages.unity.com" 61 | }, 62 | "com.unity.sysroot": { 63 | "version": "0.1.19-preview", 64 | "depth": 1, 65 | "source": "registry", 66 | "dependencies": {}, 67 | "url": "https://packages.unity.com" 68 | }, 69 | "com.unity.sysroot.linux-x86_64": { 70 | "version": "0.1.14-preview", 71 | "depth": 1, 72 | "source": "registry", 73 | "dependencies": { 74 | "com.unity.sysroot": "0.1.18-preview" 75 | }, 76 | "url": "https://packages.unity.com" 77 | }, 78 | "com.unity.test-framework": { 79 | "version": "1.1.31", 80 | "depth": 0, 81 | "source": "registry", 82 | "dependencies": { 83 | "com.unity.ext.nunit": "1.0.6", 84 | "com.unity.modules.imgui": "1.0.0", 85 | "com.unity.modules.jsonserialize": "1.0.0" 86 | }, 87 | "url": "https://packages.unity.com" 88 | }, 89 | "com.unity.textmeshpro": { 90 | "version": "3.0.6", 91 | "depth": 0, 92 | "source": "registry", 93 | "dependencies": { 94 | "com.unity.ugui": "1.0.0" 95 | }, 96 | "url": "https://packages.unity.com" 97 | }, 98 | "com.unity.timeline": { 99 | "version": "1.6.4", 100 | "depth": 0, 101 | "source": "registry", 102 | "dependencies": { 103 | "com.unity.modules.director": "1.0.0", 104 | "com.unity.modules.animation": "1.0.0", 105 | "com.unity.modules.audio": "1.0.0", 106 | "com.unity.modules.particlesystem": "1.0.0" 107 | }, 108 | "url": "https://packages.unity.com" 109 | }, 110 | "com.unity.toolchain.win-x86_64-linux-x86_64": { 111 | "version": "0.1.19-preview", 112 | "depth": 0, 113 | "source": "registry", 114 | "dependencies": { 115 | "com.unity.sysroot": "0.1.19-preview", 116 | "com.unity.sysroot.linux-x86_64": "0.1.14-preview" 117 | }, 118 | "url": "https://packages.unity.com" 119 | }, 120 | "com.unity.ugui": { 121 | "version": "1.0.0", 122 | "depth": 0, 123 | "source": "builtin", 124 | "dependencies": { 125 | "com.unity.modules.ui": "1.0.0", 126 | "com.unity.modules.imgui": "1.0.0" 127 | } 128 | }, 129 | "net.taptappun.taku.kobayashi.unitydotenv": { 130 | "version": "https://github.com/TakuKobayashi/UnityDotenv.git?path=/Unity/Assets/UnityDotenv", 131 | "depth": 0, 132 | "source": "git", 133 | "dependencies": {}, 134 | "hash": "13fea8df41aad516c780ba8d1eac939b838ca491" 135 | }, 136 | "com.unity.modules.ai": { 137 | "version": "1.0.0", 138 | "depth": 0, 139 | "source": "builtin", 140 | "dependencies": {} 141 | }, 142 | "com.unity.modules.androidjni": { 143 | "version": "1.0.0", 144 | "depth": 0, 145 | "source": "builtin", 146 | "dependencies": {} 147 | }, 148 | "com.unity.modules.animation": { 149 | "version": "1.0.0", 150 | "depth": 0, 151 | "source": "builtin", 152 | "dependencies": {} 153 | }, 154 | "com.unity.modules.assetbundle": { 155 | "version": "1.0.0", 156 | "depth": 0, 157 | "source": "builtin", 158 | "dependencies": {} 159 | }, 160 | "com.unity.modules.audio": { 161 | "version": "1.0.0", 162 | "depth": 0, 163 | "source": "builtin", 164 | "dependencies": {} 165 | }, 166 | "com.unity.modules.cloth": { 167 | "version": "1.0.0", 168 | "depth": 0, 169 | "source": "builtin", 170 | "dependencies": { 171 | "com.unity.modules.physics": "1.0.0" 172 | } 173 | }, 174 | "com.unity.modules.director": { 175 | "version": "1.0.0", 176 | "depth": 0, 177 | "source": "builtin", 178 | "dependencies": { 179 | "com.unity.modules.audio": "1.0.0", 180 | "com.unity.modules.animation": "1.0.0" 181 | } 182 | }, 183 | "com.unity.modules.imageconversion": { 184 | "version": "1.0.0", 185 | "depth": 0, 186 | "source": "builtin", 187 | "dependencies": {} 188 | }, 189 | "com.unity.modules.imgui": { 190 | "version": "1.0.0", 191 | "depth": 0, 192 | "source": "builtin", 193 | "dependencies": {} 194 | }, 195 | "com.unity.modules.jsonserialize": { 196 | "version": "1.0.0", 197 | "depth": 0, 198 | "source": "builtin", 199 | "dependencies": {} 200 | }, 201 | "com.unity.modules.particlesystem": { 202 | "version": "1.0.0", 203 | "depth": 0, 204 | "source": "builtin", 205 | "dependencies": {} 206 | }, 207 | "com.unity.modules.physics": { 208 | "version": "1.0.0", 209 | "depth": 0, 210 | "source": "builtin", 211 | "dependencies": {} 212 | }, 213 | "com.unity.modules.physics2d": { 214 | "version": "1.0.0", 215 | "depth": 0, 216 | "source": "builtin", 217 | "dependencies": {} 218 | }, 219 | "com.unity.modules.screencapture": { 220 | "version": "1.0.0", 221 | "depth": 0, 222 | "source": "builtin", 223 | "dependencies": { 224 | "com.unity.modules.imageconversion": "1.0.0" 225 | } 226 | }, 227 | "com.unity.modules.subsystems": { 228 | "version": "1.0.0", 229 | "depth": 1, 230 | "source": "builtin", 231 | "dependencies": { 232 | "com.unity.modules.jsonserialize": "1.0.0" 233 | } 234 | }, 235 | "com.unity.modules.terrain": { 236 | "version": "1.0.0", 237 | "depth": 0, 238 | "source": "builtin", 239 | "dependencies": {} 240 | }, 241 | "com.unity.modules.terrainphysics": { 242 | "version": "1.0.0", 243 | "depth": 0, 244 | "source": "builtin", 245 | "dependencies": { 246 | "com.unity.modules.physics": "1.0.0", 247 | "com.unity.modules.terrain": "1.0.0" 248 | } 249 | }, 250 | "com.unity.modules.tilemap": { 251 | "version": "1.0.0", 252 | "depth": 0, 253 | "source": "builtin", 254 | "dependencies": { 255 | "com.unity.modules.physics2d": "1.0.0" 256 | } 257 | }, 258 | "com.unity.modules.ui": { 259 | "version": "1.0.0", 260 | "depth": 0, 261 | "source": "builtin", 262 | "dependencies": {} 263 | }, 264 | "com.unity.modules.uielements": { 265 | "version": "1.0.0", 266 | "depth": 0, 267 | "source": "builtin", 268 | "dependencies": { 269 | "com.unity.modules.ui": "1.0.0", 270 | "com.unity.modules.imgui": "1.0.0", 271 | "com.unity.modules.jsonserialize": "1.0.0", 272 | "com.unity.modules.uielementsnative": "1.0.0" 273 | } 274 | }, 275 | "com.unity.modules.uielementsnative": { 276 | "version": "1.0.0", 277 | "depth": 1, 278 | "source": "builtin", 279 | "dependencies": { 280 | "com.unity.modules.ui": "1.0.0", 281 | "com.unity.modules.imgui": "1.0.0", 282 | "com.unity.modules.jsonserialize": "1.0.0" 283 | } 284 | }, 285 | "com.unity.modules.umbra": { 286 | "version": "1.0.0", 287 | "depth": 0, 288 | "source": "builtin", 289 | "dependencies": {} 290 | }, 291 | "com.unity.modules.unityanalytics": { 292 | "version": "1.0.0", 293 | "depth": 0, 294 | "source": "builtin", 295 | "dependencies": { 296 | "com.unity.modules.unitywebrequest": "1.0.0", 297 | "com.unity.modules.jsonserialize": "1.0.0" 298 | } 299 | }, 300 | "com.unity.modules.unitywebrequest": { 301 | "version": "1.0.0", 302 | "depth": 0, 303 | "source": "builtin", 304 | "dependencies": {} 305 | }, 306 | "com.unity.modules.unitywebrequestassetbundle": { 307 | "version": "1.0.0", 308 | "depth": 0, 309 | "source": "builtin", 310 | "dependencies": { 311 | "com.unity.modules.assetbundle": "1.0.0", 312 | "com.unity.modules.unitywebrequest": "1.0.0" 313 | } 314 | }, 315 | "com.unity.modules.unitywebrequestaudio": { 316 | "version": "1.0.0", 317 | "depth": 0, 318 | "source": "builtin", 319 | "dependencies": { 320 | "com.unity.modules.unitywebrequest": "1.0.0", 321 | "com.unity.modules.audio": "1.0.0" 322 | } 323 | }, 324 | "com.unity.modules.unitywebrequesttexture": { 325 | "version": "1.0.0", 326 | "depth": 0, 327 | "source": "builtin", 328 | "dependencies": { 329 | "com.unity.modules.unitywebrequest": "1.0.0", 330 | "com.unity.modules.imageconversion": "1.0.0" 331 | } 332 | }, 333 | "com.unity.modules.unitywebrequestwww": { 334 | "version": "1.0.0", 335 | "depth": 0, 336 | "source": "builtin", 337 | "dependencies": { 338 | "com.unity.modules.unitywebrequest": "1.0.0", 339 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 340 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 341 | "com.unity.modules.audio": "1.0.0", 342 | "com.unity.modules.assetbundle": "1.0.0", 343 | "com.unity.modules.imageconversion": "1.0.0" 344 | } 345 | }, 346 | "com.unity.modules.vehicles": { 347 | "version": "1.0.0", 348 | "depth": 0, 349 | "source": "builtin", 350 | "dependencies": { 351 | "com.unity.modules.physics": "1.0.0" 352 | } 353 | }, 354 | "com.unity.modules.video": { 355 | "version": "1.0.0", 356 | "depth": 0, 357 | "source": "builtin", 358 | "dependencies": { 359 | "com.unity.modules.audio": "1.0.0", 360 | "com.unity.modules.ui": "1.0.0", 361 | "com.unity.modules.unitywebrequest": "1.0.0" 362 | } 363 | }, 364 | "com.unity.modules.vr": { 365 | "version": "1.0.0", 366 | "depth": 0, 367 | "source": "builtin", 368 | "dependencies": { 369 | "com.unity.modules.jsonserialize": "1.0.0", 370 | "com.unity.modules.physics": "1.0.0", 371 | "com.unity.modules.xr": "1.0.0" 372 | } 373 | }, 374 | "com.unity.modules.wind": { 375 | "version": "1.0.0", 376 | "depth": 0, 377 | "source": "builtin", 378 | "dependencies": {} 379 | }, 380 | "com.unity.modules.xr": { 381 | "version": "1.0.0", 382 | "depth": 0, 383 | "source": "builtin", 384 | "dependencies": { 385 | "com.unity.modules.physics": "1.0.0", 386 | "com.unity.modules.jsonserialize": "1.0.0", 387 | "com.unity.modules.subsystems": "1.0.0" 388 | } 389 | } 390 | } 391 | } 392 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /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: 1 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 0 16 | m_EtcTextureFastCompressor: 2 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 5 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;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 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TakuKobayashi/UnityCipher/afb3fd4f0826102bbd7e4ea147e1e190c06c868e/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /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.com 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 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_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_AutoSyncTransforms: 1 46 | m_AlwaysShowColliders: 0 47 | m_ShowColliderSleep: 1 48 | m_ShowColliderContacts: 0 49 | m_ShowColliderAABB: 0 50 | m_ContactArrowScale: 0.2 51 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 52 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 53 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 54 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 55 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 56 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 18 7 | productGUID: 3dde74b961c674db194d8c987ae07b65 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: UnityCipher 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | displayResolutionDialog: 1 56 | iosUseCustomAppBackgroundBehavior: 0 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 0 68 | androidUseSwappy: 0 69 | androidBlitType: 0 70 | defaultIsNativeResolution: 1 71 | macRetinaSupport: 1 72 | runInBackground: 0 73 | captureSingleScreen: 0 74 | muteOtherAudioSources: 0 75 | Prepare IOS For Recording: 0 76 | Force IOS Speakers When Recording: 0 77 | deferSystemGesturesMode: 0 78 | hideHomeButton: 0 79 | submitAnalytics: 1 80 | usePlayerLog: 1 81 | bakeCollisionMeshes: 0 82 | forceSingleInstance: 0 83 | useFlipModelSwapchain: 1 84 | resizableWindow: 0 85 | useMacAppStoreValidation: 0 86 | macAppStoreCategory: public.app-category.games 87 | gpuSkinning: 0 88 | graphicsJobs: 0 89 | xboxPIXTextureCapture: 0 90 | xboxEnableAvatar: 0 91 | xboxEnableKinect: 0 92 | xboxEnableKinectAutoTracking: 0 93 | xboxEnableFitness: 0 94 | visibleInBackground: 0 95 | allowFullscreenSwitch: 1 96 | graphicsJobMode: 0 97 | fullscreenMode: 2 98 | xboxSpeechDB: 0 99 | xboxEnableHeadOrientation: 0 100 | xboxEnableGuest: 0 101 | xboxEnablePIXSampling: 0 102 | metalFramebufferOnly: 0 103 | xboxOneResolution: 0 104 | xboxOneSResolution: 0 105 | xboxOneXResolution: 3 106 | xboxOneMonoLoggingLevel: 0 107 | xboxOneLoggingLevel: 1 108 | xboxOneDisableEsram: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 0 111 | switchQueueControlMemory: 16384 112 | switchQueueComputeMemory: 262144 113 | switchNVNShaderPoolsGranularity: 33554432 114 | switchNVNDefaultPoolsGranularity: 16777216 115 | switchNVNOtherPoolsGranularity: 16777216 116 | vulkanEnableSetSRGBWrite: 0 117 | m_SupportedAspectRatios: 118 | 4:3: 1 119 | 5:4: 1 120 | 16:10: 1 121 | 16:9: 1 122 | Others: 1 123 | bundleVersion: 1.0 124 | preloadedAssets: [] 125 | metroInputSource: 0 126 | wsaTransparentSwapchain: 0 127 | m_HolographicPauseOnTrackingLoss: 1 128 | xboxOneDisableKinectGpuReservation: 0 129 | xboxOneEnable7thCore: 0 130 | vrSettings: 131 | cardboard: 132 | depthFormat: 0 133 | enableTransitionView: 0 134 | daydream: 135 | depthFormat: 0 136 | useSustainedPerformanceMode: 0 137 | enableVideoLayer: 0 138 | useProtectedVideoMemory: 0 139 | minimumSupportedHeadTracking: 0 140 | maximumSupportedHeadTracking: 1 141 | hololens: 142 | depthFormat: 1 143 | depthBufferSharingEnabled: 0 144 | lumin: 145 | depthFormat: 0 146 | frameTiming: 2 147 | enableGLCache: 0 148 | glCacheMaxBlobSize: 524288 149 | glCacheMaxFileSize: 8388608 150 | oculus: 151 | sharedDepthBuffer: 0 152 | dashSupport: 0 153 | lowOverheadMode: 0 154 | protectedContext: 0 155 | v2Signing: 0 156 | enable360StereoCapture: 0 157 | isWsaHolographicRemotingEnabled: 0 158 | protectGraphicsMemory: 0 159 | enableFrameTimingStats: 0 160 | useHDRDisplay: 0 161 | m_ColorGamuts: 00000000 162 | targetPixelDensity: 30 163 | resolutionScalingMode: 0 164 | androidSupportedAspectRatio: 1 165 | androidMaxAspectRatio: 2.1 166 | applicationIdentifier: {} 167 | buildNumber: {} 168 | AndroidBundleVersionCode: 1 169 | AndroidMinSdkVersion: 16 170 | AndroidTargetSdkVersion: 0 171 | AndroidPreferredInstallLocation: 1 172 | aotOptions: 173 | stripEngineCode: 1 174 | iPhoneStrippingLevel: 0 175 | iPhoneScriptCallOptimization: 0 176 | ForceInternetPermission: 0 177 | ForceSDCardPermission: 0 178 | CreateWallpaper: 0 179 | APKExpansionFiles: 0 180 | keepLoadedShadersAlive: 0 181 | StripUnusedMeshComponents: 0 182 | VertexChannelCompressionMask: 214 183 | iPhoneSdkVersion: 988 184 | iOSTargetOSVersionString: 9.0 185 | tvOSSdkVersion: 0 186 | tvOSRequireExtendedGameController: 0 187 | tvOSTargetOSVersionString: 9.0 188 | uIPrerenderedIcon: 0 189 | uIRequiresPersistentWiFi: 0 190 | uIRequiresFullScreen: 1 191 | uIStatusBarHidden: 1 192 | uIExitOnSuspend: 0 193 | uIStatusBarStyle: 0 194 | iPhoneSplashScreen: {fileID: 0} 195 | iPhoneHighResSplashScreen: {fileID: 0} 196 | iPhoneTallHighResSplashScreen: {fileID: 0} 197 | iPhone47inSplashScreen: {fileID: 0} 198 | iPhone55inPortraitSplashScreen: {fileID: 0} 199 | iPhone55inLandscapeSplashScreen: {fileID: 0} 200 | iPhone58inPortraitSplashScreen: {fileID: 0} 201 | iPhone58inLandscapeSplashScreen: {fileID: 0} 202 | iPadPortraitSplashScreen: {fileID: 0} 203 | iPadHighResPortraitSplashScreen: {fileID: 0} 204 | iPadLandscapeSplashScreen: {fileID: 0} 205 | iPadHighResLandscapeSplashScreen: {fileID: 0} 206 | iPhone65inPortraitSplashScreen: {fileID: 0} 207 | iPhone65inLandscapeSplashScreen: {fileID: 0} 208 | iPhone61inPortraitSplashScreen: {fileID: 0} 209 | iPhone61inLandscapeSplashScreen: {fileID: 0} 210 | appleTVSplashScreen: {fileID: 0} 211 | appleTVSplashScreen2x: {fileID: 0} 212 | tvOSSmallIconLayers: [] 213 | tvOSSmallIconLayers2x: [] 214 | tvOSLargeIconLayers: [] 215 | tvOSLargeIconLayers2x: [] 216 | tvOSTopShelfImageLayers: [] 217 | tvOSTopShelfImageLayers2x: [] 218 | tvOSTopShelfImageWideLayers: [] 219 | tvOSTopShelfImageWideLayers2x: [] 220 | iOSLaunchScreenType: 0 221 | iOSLaunchScreenPortrait: {fileID: 0} 222 | iOSLaunchScreenLandscape: {fileID: 0} 223 | iOSLaunchScreenBackgroundColor: 224 | serializedVersion: 2 225 | rgba: 0 226 | iOSLaunchScreenFillPct: 100 227 | iOSLaunchScreenSize: 100 228 | iOSLaunchScreenCustomXibPath: 229 | iOSLaunchScreeniPadType: 0 230 | iOSLaunchScreeniPadImage: {fileID: 0} 231 | iOSLaunchScreeniPadBackgroundColor: 232 | serializedVersion: 2 233 | rgba: 0 234 | iOSLaunchScreeniPadFillPct: 100 235 | iOSLaunchScreeniPadSize: 100 236 | iOSLaunchScreeniPadCustomXibPath: 237 | iOSUseLaunchScreenStoryboard: 0 238 | iOSLaunchScreenCustomStoryboardPath: 239 | iOSDeviceRequirements: [] 240 | iOSURLSchemes: [] 241 | iOSBackgroundModes: 0 242 | iOSMetalForceHardShadows: 0 243 | metalEditorSupport: 0 244 | metalAPIValidation: 1 245 | iOSRenderExtraFrameOnPause: 0 246 | appleDeveloperTeamID: 247 | iOSManualSigningProvisioningProfileID: 248 | tvOSManualSigningProvisioningProfileID: 249 | iOSManualSigningProvisioningProfileType: 0 250 | tvOSManualSigningProvisioningProfileType: 0 251 | appleEnableAutomaticSigning: 0 252 | iOSRequireARKit: 0 253 | iOSAutomaticallyDetectAndAddCapabilities: 1 254 | appleEnableProMotion: 0 255 | clonedFromGUID: 00000000000000000000000000000000 256 | templatePackageId: 257 | templateDefaultScene: 258 | AndroidTargetArchitectures: 5 259 | AndroidSplashScreenScale: 0 260 | androidSplashScreen: {fileID: 0} 261 | AndroidKeystoreName: '{inproject}: ' 262 | AndroidKeyaliasName: 263 | AndroidBuildApkPerCpuArchitecture: 0 264 | AndroidTVCompatibility: 1 265 | AndroidIsGame: 1 266 | AndroidEnableTango: 0 267 | androidEnableBanner: 1 268 | androidUseLowAccuracyLocation: 0 269 | androidUseCustomKeystore: 0 270 | m_AndroidBanners: 271 | - width: 320 272 | height: 180 273 | banner: {fileID: 0} 274 | androidGamepadSupportLevel: 0 275 | AndroidValidateAppBundleSize: 1 276 | AndroidAppBundleSizeToValidate: 150 277 | resolutionDialogBanner: {fileID: 0} 278 | m_BuildTargetIcons: [] 279 | m_BuildTargetPlatformIcons: [] 280 | m_BuildTargetBatching: [] 281 | m_BuildTargetGraphicsAPIs: [] 282 | m_BuildTargetVRSettings: [] 283 | openGLRequireES31: 0 284 | openGLRequireES31AEP: 0 285 | openGLRequireES32: 0 286 | vuforiaEnabled: 0 287 | m_TemplateCustomTags: {} 288 | mobileMTRendering: 289 | iPhone: 1 290 | tvOS: 1 291 | m_BuildTargetGroupLightmapEncodingQuality: 292 | - m_BuildTarget: Standalone 293 | m_EncodingQuality: 1 294 | - m_BuildTarget: XboxOne 295 | m_EncodingQuality: 1 296 | - m_BuildTarget: PS4 297 | m_EncodingQuality: 1 298 | m_BuildTargetGroupLightmapSettings: [] 299 | playModeTestRunnerEnabled: 0 300 | runPlayModeTestAsEditModeTest: 0 301 | actionOnDotNetUnhandledException: 1 302 | enableInternalProfiler: 0 303 | logObjCUncaughtExceptions: 1 304 | enableCrashReportAPI: 0 305 | cameraUsageDescription: 306 | locationUsageDescription: 307 | microphoneUsageDescription: 308 | switchNetLibKey: 309 | switchSocketMemoryPoolSize: 6144 310 | switchSocketAllocatorPoolSize: 128 311 | switchSocketConcurrencyLimit: 14 312 | switchScreenResolutionBehavior: 2 313 | switchUseCPUProfiler: 0 314 | switchApplicationID: 0x01004b9000490000 315 | switchNSODependencies: 316 | switchTitleNames_0: 317 | switchTitleNames_1: 318 | switchTitleNames_2: 319 | switchTitleNames_3: 320 | switchTitleNames_4: 321 | switchTitleNames_5: 322 | switchTitleNames_6: 323 | switchTitleNames_7: 324 | switchTitleNames_8: 325 | switchTitleNames_9: 326 | switchTitleNames_10: 327 | switchTitleNames_11: 328 | switchTitleNames_12: 329 | switchTitleNames_13: 330 | switchTitleNames_14: 331 | switchPublisherNames_0: 332 | switchPublisherNames_1: 333 | switchPublisherNames_2: 334 | switchPublisherNames_3: 335 | switchPublisherNames_4: 336 | switchPublisherNames_5: 337 | switchPublisherNames_6: 338 | switchPublisherNames_7: 339 | switchPublisherNames_8: 340 | switchPublisherNames_9: 341 | switchPublisherNames_10: 342 | switchPublisherNames_11: 343 | switchPublisherNames_12: 344 | switchPublisherNames_13: 345 | switchPublisherNames_14: 346 | switchIcons_0: {fileID: 0} 347 | switchIcons_1: {fileID: 0} 348 | switchIcons_2: {fileID: 0} 349 | switchIcons_3: {fileID: 0} 350 | switchIcons_4: {fileID: 0} 351 | switchIcons_5: {fileID: 0} 352 | switchIcons_6: {fileID: 0} 353 | switchIcons_7: {fileID: 0} 354 | switchIcons_8: {fileID: 0} 355 | switchIcons_9: {fileID: 0} 356 | switchIcons_10: {fileID: 0} 357 | switchIcons_11: {fileID: 0} 358 | switchIcons_12: {fileID: 0} 359 | switchIcons_13: {fileID: 0} 360 | switchIcons_14: {fileID: 0} 361 | switchSmallIcons_0: {fileID: 0} 362 | switchSmallIcons_1: {fileID: 0} 363 | switchSmallIcons_2: {fileID: 0} 364 | switchSmallIcons_3: {fileID: 0} 365 | switchSmallIcons_4: {fileID: 0} 366 | switchSmallIcons_5: {fileID: 0} 367 | switchSmallIcons_6: {fileID: 0} 368 | switchSmallIcons_7: {fileID: 0} 369 | switchSmallIcons_8: {fileID: 0} 370 | switchSmallIcons_9: {fileID: 0} 371 | switchSmallIcons_10: {fileID: 0} 372 | switchSmallIcons_11: {fileID: 0} 373 | switchSmallIcons_12: {fileID: 0} 374 | switchSmallIcons_13: {fileID: 0} 375 | switchSmallIcons_14: {fileID: 0} 376 | switchManualHTML: 377 | switchAccessibleURLs: 378 | switchLegalInformation: 379 | switchMainThreadStackSize: 1048576 380 | switchPresenceGroupId: 381 | switchLogoHandling: 0 382 | switchReleaseVersion: 0 383 | switchDisplayVersion: 1.0.0 384 | switchStartupUserAccount: 0 385 | switchTouchScreenUsage: 0 386 | switchSupportedLanguagesMask: 0 387 | switchLogoType: 0 388 | switchApplicationErrorCodeCategory: 389 | switchUserAccountSaveDataSize: 0 390 | switchUserAccountSaveDataJournalSize: 0 391 | switchApplicationAttribute: 0 392 | switchCardSpecSize: -1 393 | switchCardSpecClock: -1 394 | switchRatingsMask: 0 395 | switchRatingsInt_0: 0 396 | switchRatingsInt_1: 0 397 | switchRatingsInt_2: 0 398 | switchRatingsInt_3: 0 399 | switchRatingsInt_4: 0 400 | switchRatingsInt_5: 0 401 | switchRatingsInt_6: 0 402 | switchRatingsInt_7: 0 403 | switchRatingsInt_8: 0 404 | switchRatingsInt_9: 0 405 | switchRatingsInt_10: 0 406 | switchRatingsInt_11: 0 407 | switchLocalCommunicationIds_0: 408 | switchLocalCommunicationIds_1: 409 | switchLocalCommunicationIds_2: 410 | switchLocalCommunicationIds_3: 411 | switchLocalCommunicationIds_4: 412 | switchLocalCommunicationIds_5: 413 | switchLocalCommunicationIds_6: 414 | switchLocalCommunicationIds_7: 415 | switchParentalControl: 0 416 | switchAllowsScreenshot: 1 417 | switchAllowsVideoCapturing: 1 418 | switchAllowsRuntimeAddOnContentInstall: 0 419 | switchDataLossConfirmation: 0 420 | switchUserAccountLockEnabled: 0 421 | switchSystemResourceMemory: 16777216 422 | switchSupportedNpadStyles: 3 423 | switchNativeFsCacheSize: 32 424 | switchIsHoldTypeHorizontal: 0 425 | switchSupportedNpadCount: 8 426 | switchSocketConfigEnabled: 0 427 | switchTcpInitialSendBufferSize: 32 428 | switchTcpInitialReceiveBufferSize: 64 429 | switchTcpAutoSendBufferSizeMax: 256 430 | switchTcpAutoReceiveBufferSizeMax: 256 431 | switchUdpSendBufferSize: 9 432 | switchUdpReceiveBufferSize: 42 433 | switchSocketBufferEfficiency: 4 434 | switchSocketInitializeEnabled: 1 435 | switchNetworkInterfaceManagerInitializeEnabled: 1 436 | switchPlayerConnectionEnabled: 1 437 | ps4NPAgeRating: 12 438 | ps4NPTitleSecret: 439 | ps4NPTrophyPackPath: 440 | ps4ParentalLevel: 11 441 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 442 | ps4Category: 0 443 | ps4MasterVersion: 01.00 444 | ps4AppVersion: 01.00 445 | ps4AppType: 0 446 | ps4ParamSfxPath: 447 | ps4VideoOutPixelFormat: 0 448 | ps4VideoOutInitialWidth: 1920 449 | ps4VideoOutBaseModeInitialWidth: 1920 450 | ps4VideoOutReprojectionRate: 120 451 | ps4PronunciationXMLPath: 452 | ps4PronunciationSIGPath: 453 | ps4BackgroundImagePath: 454 | ps4StartupImagePath: 455 | ps4StartupImagesFolder: 456 | ps4IconImagesFolder: 457 | ps4SaveDataImagePath: 458 | ps4SdkOverride: 459 | ps4BGMPath: 460 | ps4ShareFilePath: 461 | ps4ShareOverlayImagePath: 462 | ps4PrivacyGuardImagePath: 463 | ps4NPtitleDatPath: 464 | ps4RemotePlayKeyAssignment: -1 465 | ps4RemotePlayKeyMappingDir: 466 | ps4PlayTogetherPlayerCount: 0 467 | ps4EnterButtonAssignment: 1 468 | ps4ApplicationParam1: 0 469 | ps4ApplicationParam2: 0 470 | ps4ApplicationParam3: 0 471 | ps4ApplicationParam4: 0 472 | ps4DownloadDataSize: 0 473 | ps4GarlicHeapSize: 2048 474 | ps4ProGarlicHeapSize: 2560 475 | playerPrefsMaxSize: 32768 476 | ps4Passcode: 5PN2qmWqBlQ9wQj99nsQzldVI5ZuGXbE 477 | ps4pnSessions: 1 478 | ps4pnPresence: 1 479 | ps4pnFriends: 1 480 | ps4pnGameCustomData: 1 481 | playerPrefsSupport: 0 482 | enableApplicationExit: 0 483 | resetTempFolder: 1 484 | restrictedAudioUsageRights: 0 485 | ps4UseResolutionFallback: 0 486 | ps4ReprojectionSupport: 0 487 | ps4UseAudio3dBackend: 0 488 | ps4SocialScreenEnabled: 0 489 | ps4ScriptOptimizationLevel: 3 490 | ps4Audio3dVirtualSpeakerCount: 14 491 | ps4attribCpuUsage: 0 492 | ps4PatchPkgPath: 493 | ps4PatchLatestPkgPath: 494 | ps4PatchChangeinfoPath: 495 | ps4PatchDayOne: 0 496 | ps4attribUserManagement: 0 497 | ps4attribMoveSupport: 0 498 | ps4attrib3DSupport: 0 499 | ps4attribShareSupport: 0 500 | ps4attribExclusiveVR: 0 501 | ps4disableAutoHideSplash: 0 502 | ps4videoRecordingFeaturesUsed: 0 503 | ps4contentSearchFeaturesUsed: 0 504 | ps4attribEyeToEyeDistanceSettingVR: 0 505 | ps4IncludedModules: [] 506 | monoEnv: 507 | splashScreenBackgroundSourceLandscape: {fileID: 0} 508 | splashScreenBackgroundSourcePortrait: {fileID: 0} 509 | blurSplashScreenBackground: 1 510 | spritePackerPolicy: 511 | webGLMemorySize: 256 512 | webGLExceptionSupport: 1 513 | webGLNameFilesAsHashes: 0 514 | webGLDataCaching: 0 515 | webGLDebugSymbols: 0 516 | webGLEmscriptenArgs: 517 | webGLModulesDirectory: 518 | webGLTemplate: APPLICATION:Default 519 | webGLAnalyzeBuildSize: 0 520 | webGLUseEmbeddedResources: 0 521 | webGLCompressionFormat: 1 522 | webGLLinkerTarget: 1 523 | webGLThreadsSupport: 0 524 | webGLWasmStreaming: 0 525 | scriptingDefineSymbols: {} 526 | platformArchitecture: {} 527 | scriptingBackend: {} 528 | il2cppCompilerConfiguration: {} 529 | managedStrippingLevel: {} 530 | incrementalIl2cppBuild: {} 531 | allowUnsafeCode: 0 532 | additionalIl2CppArgs: 533 | scriptingRuntimeVersion: 1 534 | gcIncremental: 0 535 | gcWBarrierValidation: 0 536 | apiCompatibilityLevelPerPlatform: {} 537 | m_RenderingPath: 1 538 | m_MobileRenderingPath: 1 539 | metroPackageName: UnityCipher 540 | metroPackageVersion: 541 | metroCertificatePath: 542 | metroCertificatePassword: 543 | metroCertificateSubject: 544 | metroCertificateIssuer: 545 | metroCertificateNotAfter: 0000000000000000 546 | metroApplicationDescription: UnityCipher 547 | wsaImages: {} 548 | metroTileShortName: 549 | metroTileShowName: 0 550 | metroMediumTileShowName: 0 551 | metroLargeTileShowName: 0 552 | metroWideTileShowName: 0 553 | metroSupportStreamingInstall: 0 554 | metroLastRequiredScene: 0 555 | metroDefaultTileSize: 1 556 | metroTileForegroundText: 2 557 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 558 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 559 | a: 1} 560 | metroSplashScreenUseBackgroundColor: 0 561 | platformCapabilities: {} 562 | metroTargetDeviceFamilies: {} 563 | metroFTAName: 564 | metroFTAFileTypes: [] 565 | metroProtocolName: 566 | XboxOneProductId: 567 | XboxOneUpdateKey: 568 | XboxOneSandboxId: 569 | XboxOneContentId: 570 | XboxOneTitleId: 571 | XboxOneSCId: 572 | XboxOneGameOsOverridePath: 573 | XboxOnePackagingOverridePath: 574 | XboxOneAppManifestOverridePath: 575 | XboxOneVersion: 1.0.0.0 576 | XboxOnePackageEncryption: 0 577 | XboxOnePackageUpdateGranularity: 2 578 | XboxOneDescription: 579 | XboxOneLanguage: 580 | - enus 581 | XboxOneCapability: [] 582 | XboxOneGameRating: {} 583 | XboxOneIsContentPackage: 0 584 | XboxOneEnableGPUVariability: 0 585 | XboxOneSockets: {} 586 | XboxOneSplashScreen: {fileID: 0} 587 | XboxOneAllowedProductIds: [] 588 | XboxOnePersistentLocalStorageSize: 0 589 | XboxOneXTitleMemory: 8 590 | xboxOneScriptCompiler: 1 591 | XboxOneOverrideIdentityName: 592 | vrEditorSettings: 593 | daydream: 594 | daydreamIconForeground: {fileID: 0} 595 | daydreamIconBackground: {fileID: 0} 596 | cloudServicesEnabled: {} 597 | luminIcon: 598 | m_Name: 599 | m_ModelFolderPath: 600 | m_PortalFolderPath: 601 | luminCert: 602 | m_CertPath: 603 | m_SignPackage: 1 604 | luminIsChannelApp: 0 605 | luminVersion: 606 | m_VersionCode: 1 607 | m_VersionName: 608 | facebookSdkVersion: 7.9.1 609 | facebookAppId: 610 | facebookCookies: 1 611 | facebookLogging: 1 612 | facebookStatus: 1 613 | facebookXfbml: 0 614 | facebookFrictionlessRequests: 1 615 | apiCompatibilityLevel: 6 616 | cloudProjectId: e1c56eab-ca05-4c53-86a1-f461f59f5903 617 | framebufferDepthMemorylessMode: 0 618 | projectName: UnityCipher 619 | organizationId: nc_japan_unity 620 | cloudEnabled: 0 621 | enableNativePlatformBackendsForNewInputSystem: 0 622 | disableOldInputManagerSupport: 0 623 | legacyClampBlendShapeWeights: 1 624 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2021.3.4f1 2 | m_EditorVersionWithRevision: 2021.3.4f1 (cb45f9cae8b7) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 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 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 4 41 | resolutionScalingFixedDPIFactor: 1 42 | excludedTargetPlatforms: [] 43 | - serializedVersion: 2 44 | name: Fast 45 | pixelLightCount: 0 46 | shadows: 0 47 | shadowResolution: 0 48 | shadowProjection: 1 49 | shadowCascades: 1 50 | shadowDistance: 20 51 | shadowNearPlaneOffset: 3 52 | shadowCascade2Split: 0.33333334 53 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 54 | shadowmaskMode: 0 55 | blendWeights: 2 56 | textureQuality: 0 57 | anisotropicTextures: 0 58 | antiAliasing: 0 59 | softParticles: 0 60 | softVegetation: 0 61 | realtimeReflectionProbes: 0 62 | billboardsFaceCameraPosition: 0 63 | vSyncCount: 0 64 | lodBias: 0.4 65 | maximumLODLevel: 0 66 | streamingMipmapsActive: 0 67 | streamingMipmapsAddAllCameras: 1 68 | streamingMipmapsMemoryBudget: 512 69 | streamingMipmapsRenderersPerFrame: 512 70 | streamingMipmapsMaxLevelReduction: 2 71 | streamingMipmapsMaxFileIORequests: 1024 72 | particleRaycastBudget: 16 73 | asyncUploadTimeSlice: 2 74 | asyncUploadBufferSize: 4 75 | resolutionScalingFixedDPIFactor: 1 76 | excludedTargetPlatforms: [] 77 | - serializedVersion: 2 78 | name: Simple 79 | pixelLightCount: 1 80 | shadows: 1 81 | shadowResolution: 0 82 | shadowProjection: 1 83 | shadowCascades: 1 84 | shadowDistance: 20 85 | shadowNearPlaneOffset: 3 86 | shadowCascade2Split: 0.33333334 87 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 88 | shadowmaskMode: 0 89 | blendWeights: 2 90 | textureQuality: 0 91 | anisotropicTextures: 1 92 | antiAliasing: 0 93 | softParticles: 0 94 | softVegetation: 0 95 | realtimeReflectionProbes: 0 96 | billboardsFaceCameraPosition: 0 97 | vSyncCount: 1 98 | lodBias: 0.7 99 | maximumLODLevel: 0 100 | streamingMipmapsActive: 0 101 | streamingMipmapsAddAllCameras: 1 102 | streamingMipmapsMemoryBudget: 512 103 | streamingMipmapsRenderersPerFrame: 512 104 | streamingMipmapsMaxLevelReduction: 2 105 | streamingMipmapsMaxFileIORequests: 1024 106 | particleRaycastBudget: 64 107 | asyncUploadTimeSlice: 2 108 | asyncUploadBufferSize: 4 109 | resolutionScalingFixedDPIFactor: 1 110 | excludedTargetPlatforms: [] 111 | - serializedVersion: 2 112 | name: Good 113 | pixelLightCount: 2 114 | shadows: 2 115 | shadowResolution: 1 116 | shadowProjection: 1 117 | shadowCascades: 2 118 | shadowDistance: 40 119 | shadowNearPlaneOffset: 3 120 | shadowCascade2Split: 0.33333334 121 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 122 | shadowmaskMode: 1 123 | blendWeights: 2 124 | textureQuality: 0 125 | anisotropicTextures: 1 126 | antiAliasing: 0 127 | softParticles: 0 128 | softVegetation: 1 129 | realtimeReflectionProbes: 1 130 | billboardsFaceCameraPosition: 1 131 | vSyncCount: 1 132 | lodBias: 1 133 | maximumLODLevel: 0 134 | streamingMipmapsActive: 0 135 | streamingMipmapsAddAllCameras: 1 136 | streamingMipmapsMemoryBudget: 512 137 | streamingMipmapsRenderersPerFrame: 512 138 | streamingMipmapsMaxLevelReduction: 2 139 | streamingMipmapsMaxFileIORequests: 1024 140 | particleRaycastBudget: 256 141 | asyncUploadTimeSlice: 2 142 | asyncUploadBufferSize: 4 143 | resolutionScalingFixedDPIFactor: 1 144 | excludedTargetPlatforms: [] 145 | - serializedVersion: 2 146 | name: Beautiful 147 | pixelLightCount: 3 148 | shadows: 2 149 | shadowResolution: 2 150 | shadowProjection: 1 151 | shadowCascades: 2 152 | shadowDistance: 70 153 | shadowNearPlaneOffset: 3 154 | shadowCascade2Split: 0.33333334 155 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 156 | shadowmaskMode: 1 157 | blendWeights: 4 158 | textureQuality: 0 159 | anisotropicTextures: 2 160 | antiAliasing: 2 161 | softParticles: 1 162 | softVegetation: 1 163 | realtimeReflectionProbes: 1 164 | billboardsFaceCameraPosition: 1 165 | vSyncCount: 1 166 | lodBias: 1.5 167 | maximumLODLevel: 0 168 | streamingMipmapsActive: 0 169 | streamingMipmapsAddAllCameras: 1 170 | streamingMipmapsMemoryBudget: 512 171 | streamingMipmapsRenderersPerFrame: 512 172 | streamingMipmapsMaxLevelReduction: 2 173 | streamingMipmapsMaxFileIORequests: 1024 174 | particleRaycastBudget: 1024 175 | asyncUploadTimeSlice: 2 176 | asyncUploadBufferSize: 4 177 | resolutionScalingFixedDPIFactor: 1 178 | excludedTargetPlatforms: [] 179 | - serializedVersion: 2 180 | name: Fantastic 181 | pixelLightCount: 4 182 | shadows: 2 183 | shadowResolution: 2 184 | shadowProjection: 1 185 | shadowCascades: 4 186 | shadowDistance: 150 187 | shadowNearPlaneOffset: 3 188 | shadowCascade2Split: 0.33333334 189 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 190 | shadowmaskMode: 1 191 | blendWeights: 4 192 | textureQuality: 0 193 | anisotropicTextures: 2 194 | antiAliasing: 2 195 | softParticles: 1 196 | softVegetation: 1 197 | realtimeReflectionProbes: 1 198 | billboardsFaceCameraPosition: 1 199 | vSyncCount: 1 200 | lodBias: 2 201 | maximumLODLevel: 0 202 | streamingMipmapsActive: 0 203 | streamingMipmapsAddAllCameras: 1 204 | streamingMipmapsMemoryBudget: 512 205 | streamingMipmapsRenderersPerFrame: 512 206 | streamingMipmapsMaxLevelReduction: 2 207 | streamingMipmapsMaxFileIORequests: 1024 208 | particleRaycastBudget: 4096 209 | asyncUploadTimeSlice: 2 210 | asyncUploadBufferSize: 4 211 | resolutionScalingFixedDPIFactor: 1 212 | excludedTargetPlatforms: [] 213 | m_PerPlatformDefaultQuality: 214 | Android: 2 215 | Nintendo 3DS: 5 216 | Nintendo Switch: 5 217 | PS4: 5 218 | PSM: 5 219 | PSP2: 2 220 | Samsung TV: 2 221 | Standalone: 5 222 | Switch: 5 223 | Tizen: 2 224 | Web: 5 225 | WebGL: 3 226 | WiiU: 5 227 | Windows Store Apps: 5 228 | XboxOne: 5 229 | iPhone: 2 230 | tvOS: 2 231 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /ProjectSettings/boot.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TakuKobayashi/UnityCipher/afb3fd4f0826102bbd7e4ea147e1e190c06c868e/ProjectSettings/boot.config -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Unity Test](https://github.com/TakuKobayashi/UnityCipher/actions/workflows/unity-test.yml/badge.svg)](https://github.com/TakuKobayashi/UnityCipher/actions/workflows/unity-test.yml) 2 | 3 | # UnityCipher 4 | 5 | This is Cipher Libraries in Unity, include the AESCipher and RSACipher. 6 | 7 | # What is UnityCipher? 8 | 9 | UnityCipher can be implemented AES encryption(Exactly, Rijndael cipher, not AES cryptography) and RSA encryption simply and high secure, in Unity(C#). 10 | 11 | # Install 12 | 13 | * If you want to download a unitypackage, you can download from [Releases](https://github.com/TakuKobayashi/UnityCipher/releases). 14 | 15 | * If you want use the UPM, you add below to `Packages/manifest.json`. 16 | 17 | ```Packages/manifest.json 18 | { 19 | "dependencies": { 20 | "net.taptappun.taku.kobayashi.unitycipher": "https://github.com/TakuKobayashi/UnityCipher.git?path=/Assets/UnityCipher", 21 | ... 22 | } 23 | } 24 | ``` 25 | 26 | or input the url `https://github.com/TakuKobayashi/UnityCipher.git?path=/Assets/UnityCipher` to `Add package from git URL` (`Window` -> `PackageManager` like this.) 27 | 28 | ![windowbar](images/windowbar.png) 29 | 30 | ![packageManager](images/packageManager.png) 31 | 32 | ![packageFromGitURL](images/packageFromGitURL.png) 33 | 34 | ![giturl](images/giturl.png) 35 | 36 | # Usage 37 | 38 | For detail, look to ```UnityCipher/Examples/``` 39 | And also, add ```using UnityCipher```, you can use UnityCipher. 40 | 41 | ## Use AES encryption 42 | 43 | ### Encryption 44 | 45 | You can encrypt it by calling the following method. 46 | 47 | ```C# 48 | string encrypted = RijndaelEncryption.Encrypt(plainText, passwordText); 49 | ``` 50 | 51 | ```plainText``` can also use ```byte[]``` as well as string. 52 | If you use ```byte[]```, give the encritpted ```byte[]```, like this. 53 | 54 | ```C# 55 | byte[] encrypted = RijndaelEncryption.Encrypt(plainBinary, passwordText); 56 | ``` 57 | 58 | ### Decryption 59 | 60 | You can decrypt it by calling the following method. 61 | 62 | ```C# 63 | string plainText = RijndaelEncryption.Decrypt(encryptedText, passwordText); 64 | ``` 65 | 66 | If you can successfully decrypt the encrypted one, you can get the decrypted one. 67 | ```plainText``` can also use ```byte[]``` as well as string. 68 | If you use ```byte[]```, give the decrypted ```byte[]```, like this. 69 | 70 | ```C# 71 | byte[] plainBinary = RijndaelEncryption.Decrypt(encryptedBinary, passwordText); 72 | ``` 73 | -------------------------------------------------------------------------------- /UserSettings/EditorUserSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!162 &1 4 | EditorUserSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_ConfigSettings: 8 | vcSharedLogLevel: 9 | value: 0d5e400f0650 10 | flags: 0 11 | m_VCAutomaticAdd: 1 12 | m_VCDebugCom: 0 13 | m_VCDebugCmd: 0 14 | m_VCDebugOut: 0 15 | m_SemanticMergeMode: 2 16 | m_VCShowFailedCheckout: 1 17 | m_VCOverwriteFailedCheckoutAssets: 1 18 | m_VCOverlayIcons: 1 19 | m_VCAllowAsyncUpdate: 0 20 | -------------------------------------------------------------------------------- /UserSettings/Layouts/default-2021.dwlt: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 52 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: 1 12 | m_Script: {fileID: 12004, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_PixelRect: 16 | serializedVersion: 2 17 | x: 2249 18 | y: 302.5 19 | width: 1206 20 | height: 715 21 | m_ShowMode: 4 22 | m_Title: 23 | m_RootView: {fileID: 6} 24 | m_MinSize: {x: 875, y: 300} 25 | m_MaxSize: {x: 10000, y: 10000} 26 | m_Maximized: 0 27 | --- !u!114 &2 28 | MonoBehaviour: 29 | m_ObjectHideFlags: 52 30 | m_CorrespondingSourceObject: {fileID: 0} 31 | m_PrefabInstance: {fileID: 0} 32 | m_PrefabAsset: {fileID: 0} 33 | m_GameObject: {fileID: 0} 34 | m_Enabled: 1 35 | m_EditorHideFlags: 1 36 | m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} 37 | m_Name: 38 | m_EditorClassIdentifier: 39 | m_Children: 40 | - {fileID: 9} 41 | - {fileID: 3} 42 | m_Position: 43 | serializedVersion: 2 44 | x: 0 45 | y: 30 46 | width: 1206 47 | height: 665 48 | m_MinSize: {x: 679, y: 492} 49 | m_MaxSize: {x: 14002, y: 14042} 50 | vertical: 0 51 | controlID: 119 52 | --- !u!114 &3 53 | MonoBehaviour: 54 | m_ObjectHideFlags: 52 55 | m_CorrespondingSourceObject: {fileID: 0} 56 | m_PrefabInstance: {fileID: 0} 57 | m_PrefabAsset: {fileID: 0} 58 | m_GameObject: {fileID: 0} 59 | m_Enabled: 1 60 | m_EditorHideFlags: 1 61 | m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} 62 | m_Name: 63 | m_EditorClassIdentifier: 64 | m_Children: [] 65 | m_Position: 66 | serializedVersion: 2 67 | x: 921 68 | y: 0 69 | width: 285 70 | height: 665 71 | m_MinSize: {x: 276, y: 71} 72 | m_MaxSize: {x: 4001, y: 4021} 73 | m_ActualView: {fileID: 13} 74 | m_Panes: 75 | - {fileID: 13} 76 | m_Selected: 0 77 | m_LastSelected: 0 78 | --- !u!114 &4 79 | MonoBehaviour: 80 | m_ObjectHideFlags: 52 81 | m_CorrespondingSourceObject: {fileID: 0} 82 | m_PrefabInstance: {fileID: 0} 83 | m_PrefabAsset: {fileID: 0} 84 | m_GameObject: {fileID: 0} 85 | m_Enabled: 1 86 | m_EditorHideFlags: 1 87 | m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} 88 | m_Name: 89 | m_EditorClassIdentifier: 90 | m_Children: [] 91 | m_Position: 92 | serializedVersion: 2 93 | x: 0 94 | y: 0 95 | width: 228 96 | height: 394 97 | m_MinSize: {x: 201, y: 221} 98 | m_MaxSize: {x: 4001, y: 4021} 99 | m_ActualView: {fileID: 14} 100 | m_Panes: 101 | - {fileID: 14} 102 | m_Selected: 0 103 | m_LastSelected: 0 104 | --- !u!114 &5 105 | MonoBehaviour: 106 | m_ObjectHideFlags: 52 107 | m_CorrespondingSourceObject: {fileID: 0} 108 | m_PrefabInstance: {fileID: 0} 109 | m_PrefabAsset: {fileID: 0} 110 | m_GameObject: {fileID: 0} 111 | m_Enabled: 1 112 | m_EditorHideFlags: 1 113 | m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} 114 | m_Name: ProjectBrowser 115 | m_EditorClassIdentifier: 116 | m_Children: [] 117 | m_Position: 118 | serializedVersion: 2 119 | x: 0 120 | y: 394 121 | width: 921 122 | height: 271 123 | m_MinSize: {x: 231, y: 271} 124 | m_MaxSize: {x: 10001, y: 10021} 125 | m_ActualView: {fileID: 12} 126 | m_Panes: 127 | - {fileID: 12} 128 | - {fileID: 17} 129 | m_Selected: 0 130 | m_LastSelected: 1 131 | --- !u!114 &6 132 | MonoBehaviour: 133 | m_ObjectHideFlags: 52 134 | m_CorrespondingSourceObject: {fileID: 0} 135 | m_PrefabInstance: {fileID: 0} 136 | m_PrefabAsset: {fileID: 0} 137 | m_GameObject: {fileID: 0} 138 | m_Enabled: 1 139 | m_EditorHideFlags: 1 140 | m_Script: {fileID: 12008, guid: 0000000000000000e000000000000000, type: 0} 141 | m_Name: 142 | m_EditorClassIdentifier: 143 | m_Children: 144 | - {fileID: 7} 145 | - {fileID: 2} 146 | - {fileID: 8} 147 | m_Position: 148 | serializedVersion: 2 149 | x: 0 150 | y: 0 151 | width: 1206 152 | height: 715 153 | m_MinSize: {x: 875, y: 300} 154 | m_MaxSize: {x: 10000, y: 10000} 155 | --- !u!114 &7 156 | MonoBehaviour: 157 | m_ObjectHideFlags: 52 158 | m_CorrespondingSourceObject: {fileID: 0} 159 | m_PrefabInstance: {fileID: 0} 160 | m_PrefabAsset: {fileID: 0} 161 | m_GameObject: {fileID: 0} 162 | m_Enabled: 1 163 | m_EditorHideFlags: 1 164 | m_Script: {fileID: 12011, guid: 0000000000000000e000000000000000, type: 0} 165 | m_Name: 166 | m_EditorClassIdentifier: 167 | m_Children: [] 168 | m_Position: 169 | serializedVersion: 2 170 | x: 0 171 | y: 0 172 | width: 1206 173 | height: 30 174 | m_MinSize: {x: 0, y: 0} 175 | m_MaxSize: {x: 0, y: 0} 176 | m_LoadedToolbars: [] 177 | m_MainToolbar: {fileID: 18} 178 | m_LastLoadedLayoutName: Default 179 | --- !u!114 &8 180 | MonoBehaviour: 181 | m_ObjectHideFlags: 52 182 | m_CorrespondingSourceObject: {fileID: 0} 183 | m_PrefabInstance: {fileID: 0} 184 | m_PrefabAsset: {fileID: 0} 185 | m_GameObject: {fileID: 0} 186 | m_Enabled: 1 187 | m_EditorHideFlags: 1 188 | m_Script: {fileID: 12042, guid: 0000000000000000e000000000000000, type: 0} 189 | m_Name: 190 | m_EditorClassIdentifier: 191 | m_Children: [] 192 | m_Position: 193 | serializedVersion: 2 194 | x: 0 195 | y: 695 196 | width: 1206 197 | height: 20 198 | m_MinSize: {x: 0, y: 0} 199 | m_MaxSize: {x: 0, y: 0} 200 | --- !u!114 &9 201 | MonoBehaviour: 202 | m_ObjectHideFlags: 52 203 | m_CorrespondingSourceObject: {fileID: 0} 204 | m_PrefabInstance: {fileID: 0} 205 | m_PrefabAsset: {fileID: 0} 206 | m_GameObject: {fileID: 0} 207 | m_Enabled: 1 208 | m_EditorHideFlags: 1 209 | m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} 210 | m_Name: 211 | m_EditorClassIdentifier: 212 | m_Children: 213 | - {fileID: 10} 214 | - {fileID: 5} 215 | m_Position: 216 | serializedVersion: 2 217 | x: 0 218 | y: 0 219 | width: 921 220 | height: 665 221 | m_MinSize: {x: 403, y: 492} 222 | m_MaxSize: {x: 10001, y: 14042} 223 | vertical: 1 224 | controlID: 92 225 | --- !u!114 &10 226 | MonoBehaviour: 227 | m_ObjectHideFlags: 52 228 | m_CorrespondingSourceObject: {fileID: 0} 229 | m_PrefabInstance: {fileID: 0} 230 | m_PrefabAsset: {fileID: 0} 231 | m_GameObject: {fileID: 0} 232 | m_Enabled: 1 233 | m_EditorHideFlags: 1 234 | m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0} 235 | m_Name: 236 | m_EditorClassIdentifier: 237 | m_Children: 238 | - {fileID: 4} 239 | - {fileID: 11} 240 | m_Position: 241 | serializedVersion: 2 242 | x: 0 243 | y: 0 244 | width: 921 245 | height: 394 246 | m_MinSize: {x: 403, y: 221} 247 | m_MaxSize: {x: 8003, y: 4021} 248 | vertical: 0 249 | controlID: 93 250 | --- !u!114 &11 251 | MonoBehaviour: 252 | m_ObjectHideFlags: 52 253 | m_CorrespondingSourceObject: {fileID: 0} 254 | m_PrefabInstance: {fileID: 0} 255 | m_PrefabAsset: {fileID: 0} 256 | m_GameObject: {fileID: 0} 257 | m_Enabled: 1 258 | m_EditorHideFlags: 1 259 | m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} 260 | m_Name: 261 | m_EditorClassIdentifier: 262 | m_Children: [] 263 | m_Position: 264 | serializedVersion: 2 265 | x: 228 266 | y: 0 267 | width: 693 268 | height: 394 269 | m_MinSize: {x: 202, y: 221} 270 | m_MaxSize: {x: 4002, y: 4021} 271 | m_ActualView: {fileID: 15} 272 | m_Panes: 273 | - {fileID: 15} 274 | - {fileID: 16} 275 | m_Selected: 0 276 | m_LastSelected: 1 277 | --- !u!114 &12 278 | MonoBehaviour: 279 | m_ObjectHideFlags: 52 280 | m_CorrespondingSourceObject: {fileID: 0} 281 | m_PrefabInstance: {fileID: 0} 282 | m_PrefabAsset: {fileID: 0} 283 | m_GameObject: {fileID: 0} 284 | m_Enabled: 1 285 | m_EditorHideFlags: 1 286 | m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0} 287 | m_Name: 288 | m_EditorClassIdentifier: 289 | m_MinSize: {x: 230, y: 250} 290 | m_MaxSize: {x: 10000, y: 10000} 291 | m_TitleContent: 292 | m_Text: Project 293 | m_Image: {fileID: -5467254957812901981, guid: 0000000000000000d000000000000000, type: 0} 294 | m_Tooltip: 295 | m_Pos: 296 | serializedVersion: 2 297 | x: 2249 298 | y: 726.5 299 | width: 920 300 | height: 250 301 | m_ViewDataDictionary: {fileID: 0} 302 | m_SearchFilter: 303 | m_NameFilter: 304 | m_ClassNames: [] 305 | m_AssetLabels: [] 306 | m_AssetBundleNames: [] 307 | m_VersionControlStates: [] 308 | m_SoftLockControlStates: [] 309 | m_ReferencingInstanceIDs: 310 | m_SceneHandles: 311 | m_ShowAllHits: 0 312 | m_SkipHidden: 0 313 | m_SearchArea: 1 314 | m_Folders: 315 | - Assets 316 | m_Globs: [] 317 | m_ViewMode: 1 318 | m_StartGridSize: 64 319 | m_LastFolders: 320 | - Assets 321 | m_LastFoldersGridSize: -1 322 | m_LastProjectPath: U:\layout 323 | m_LockTracker: 324 | m_IsLocked: 0 325 | m_FolderTreeState: 326 | scrollPos: {x: 0, y: 0} 327 | m_SelectedIDs: f4350000 328 | m_LastClickedID: 13812 329 | m_ExpandedIDs: 00000000f435000000ca9a3b 330 | m_RenameOverlay: 331 | m_UserAcceptedRename: 0 332 | m_Name: 333 | m_OriginalName: 334 | m_EditFieldRect: 335 | serializedVersion: 2 336 | x: 0 337 | y: 0 338 | width: 0 339 | height: 0 340 | m_UserData: 0 341 | m_IsWaitingForDelay: 0 342 | m_IsRenaming: 0 343 | m_OriginalEventType: 11 344 | m_IsRenamingFilename: 1 345 | m_ClientGUIView: {fileID: 0} 346 | m_SearchString: 347 | m_CreateAssetUtility: 348 | m_EndAction: {fileID: 0} 349 | m_InstanceID: 0 350 | m_Path: 351 | m_Icon: {fileID: 0} 352 | m_ResourceFile: 353 | m_AssetTreeState: 354 | scrollPos: {x: 0, y: 0} 355 | m_SelectedIDs: 356 | m_LastClickedID: 0 357 | m_ExpandedIDs: 00000000f4350000 358 | m_RenameOverlay: 359 | m_UserAcceptedRename: 0 360 | m_Name: 361 | m_OriginalName: 362 | m_EditFieldRect: 363 | serializedVersion: 2 364 | x: 0 365 | y: 0 366 | width: 0 367 | height: 0 368 | m_UserData: 0 369 | m_IsWaitingForDelay: 0 370 | m_IsRenaming: 0 371 | m_OriginalEventType: 11 372 | m_IsRenamingFilename: 1 373 | m_ClientGUIView: {fileID: 0} 374 | m_SearchString: 375 | m_CreateAssetUtility: 376 | m_EndAction: {fileID: 0} 377 | m_InstanceID: 0 378 | m_Path: 379 | m_Icon: {fileID: 0} 380 | m_ResourceFile: 381 | m_ListAreaState: 382 | m_SelectedInstanceIDs: 383 | m_LastClickedInstanceID: 0 384 | m_HadKeyboardFocusLastEvent: 0 385 | m_ExpandedInstanceIDs: c6230000 386 | m_RenameOverlay: 387 | m_UserAcceptedRename: 0 388 | m_Name: 389 | m_OriginalName: 390 | m_EditFieldRect: 391 | serializedVersion: 2 392 | x: 0 393 | y: 0 394 | width: 0 395 | height: 0 396 | m_UserData: 0 397 | m_IsWaitingForDelay: 0 398 | m_IsRenaming: 0 399 | m_OriginalEventType: 11 400 | m_IsRenamingFilename: 1 401 | m_ClientGUIView: {fileID: 0} 402 | m_CreateAssetUtility: 403 | m_EndAction: {fileID: 0} 404 | m_InstanceID: 0 405 | m_Path: 406 | m_Icon: {fileID: 0} 407 | m_ResourceFile: 408 | m_NewAssetIndexInList: -1 409 | m_ScrollPosition: {x: 0, y: 0} 410 | m_GridSize: 64 411 | m_SkipHiddenPackages: 0 412 | m_DirectoriesAreaWidth: 207 413 | --- !u!114 &13 414 | MonoBehaviour: 415 | m_ObjectHideFlags: 52 416 | m_CorrespondingSourceObject: {fileID: 0} 417 | m_PrefabInstance: {fileID: 0} 418 | m_PrefabAsset: {fileID: 0} 419 | m_GameObject: {fileID: 0} 420 | m_Enabled: 1 421 | m_EditorHideFlags: 1 422 | m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0} 423 | m_Name: 424 | m_EditorClassIdentifier: 425 | m_MinSize: {x: 275, y: 50} 426 | m_MaxSize: {x: 4000, y: 4000} 427 | m_TitleContent: 428 | m_Text: Inspector 429 | m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000, type: 0} 430 | m_Tooltip: 431 | m_Pos: 432 | serializedVersion: 2 433 | x: 3170 434 | y: 332.5 435 | width: 284 436 | height: 644 437 | m_ViewDataDictionary: {fileID: 0} 438 | m_ObjectsLockedBeforeSerialization: [] 439 | m_InstanceIDsLockedBeforeSerialization: 440 | m_PreviewResizer: 441 | m_CachedPref: 160 442 | m_ControlHash: -371814159 443 | m_PrefName: Preview_InspectorPreview 444 | m_LastInspectedObjectInstanceID: -1 445 | m_LastVerticalScrollValue: 0 446 | m_AssetGUID: 447 | m_InstanceID: 0 448 | m_LockTracker: 449 | m_IsLocked: 0 450 | m_PreviewWindow: {fileID: 0} 451 | --- !u!114 &14 452 | MonoBehaviour: 453 | m_ObjectHideFlags: 52 454 | m_CorrespondingSourceObject: {fileID: 0} 455 | m_PrefabInstance: {fileID: 0} 456 | m_PrefabAsset: {fileID: 0} 457 | m_GameObject: {fileID: 0} 458 | m_Enabled: 1 459 | m_EditorHideFlags: 1 460 | m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0} 461 | m_Name: 462 | m_EditorClassIdentifier: 463 | m_MinSize: {x: 200, y: 200} 464 | m_MaxSize: {x: 4000, y: 4000} 465 | m_TitleContent: 466 | m_Text: Hierarchy 467 | m_Image: {fileID: 7966133145522015247, guid: 0000000000000000d000000000000000, type: 0} 468 | m_Tooltip: 469 | m_Pos: 470 | serializedVersion: 2 471 | x: 2249 472 | y: 332.5 473 | width: 227 474 | height: 373 475 | m_ViewDataDictionary: {fileID: 0} 476 | m_SceneHierarchy: 477 | m_TreeViewState: 478 | scrollPos: {x: 0, y: 0} 479 | m_SelectedIDs: 480 | m_LastClickedID: 0 481 | m_ExpandedIDs: 42fbffff 482 | m_RenameOverlay: 483 | m_UserAcceptedRename: 0 484 | m_Name: 485 | m_OriginalName: 486 | m_EditFieldRect: 487 | serializedVersion: 2 488 | x: 0 489 | y: 0 490 | width: 0 491 | height: 0 492 | m_UserData: 0 493 | m_IsWaitingForDelay: 0 494 | m_IsRenaming: 0 495 | m_OriginalEventType: 11 496 | m_IsRenamingFilename: 0 497 | m_ClientGUIView: {fileID: 0} 498 | m_SearchString: 499 | m_ExpandedScenes: [] 500 | m_CurrenRootInstanceID: 0 501 | m_LockTracker: 502 | m_IsLocked: 0 503 | m_CurrentSortingName: TransformSorting 504 | m_WindowGUID: 4c969a2b90040154d917609493e03593 505 | --- !u!114 &15 506 | MonoBehaviour: 507 | m_ObjectHideFlags: 52 508 | m_CorrespondingSourceObject: {fileID: 0} 509 | m_PrefabInstance: {fileID: 0} 510 | m_PrefabAsset: {fileID: 0} 511 | m_GameObject: {fileID: 0} 512 | m_Enabled: 1 513 | m_EditorHideFlags: 1 514 | m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0} 515 | m_Name: 516 | m_EditorClassIdentifier: 517 | m_MinSize: {x: 200, y: 200} 518 | m_MaxSize: {x: 4000, y: 4000} 519 | m_TitleContent: 520 | m_Text: Scene 521 | m_Image: {fileID: 2593428753322112591, guid: 0000000000000000d000000000000000, type: 0} 522 | m_Tooltip: 523 | m_Pos: 524 | serializedVersion: 2 525 | x: 2477 526 | y: 332.5 527 | width: 691 528 | height: 373 529 | m_ViewDataDictionary: {fileID: 0} 530 | m_ShowContextualTools: 0 531 | m_WindowGUID: cc27987af1a868c49b0894db9c0f5429 532 | m_Gizmos: 1 533 | m_OverrideSceneCullingMask: 6917529027641081856 534 | m_SceneIsLit: 1 535 | m_SceneLighting: 1 536 | m_2DMode: 0 537 | m_isRotationLocked: 0 538 | m_PlayAudio: 0 539 | m_AudioPlay: 0 540 | m_Position: 541 | m_Target: {x: 0, y: 0, z: 0} 542 | speed: 2 543 | m_Value: {x: 0, y: 0, z: 0} 544 | m_RenderMode: 0 545 | m_CameraMode: 546 | drawMode: 0 547 | name: Shaded 548 | section: Shading Mode 549 | m_ValidateTrueMetals: 0 550 | m_DoValidateTrueMetals: 0 551 | m_ExposureSliderValue: 0 552 | m_SceneViewState: 553 | showFog: 1 554 | showMaterialUpdate: 0 555 | showSkybox: 1 556 | showFlares: 1 557 | showImageEffects: 1 558 | showParticleSystems: 1 559 | showVisualEffectGraphs: 1 560 | m_Grid: 561 | xGrid: 562 | m_Fade: 563 | m_Target: 0 564 | speed: 2 565 | m_Value: 0 566 | m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} 567 | m_Pivot: {x: 0, y: 0, z: 0} 568 | m_Size: {x: 0, y: 0} 569 | yGrid: 570 | m_Fade: 571 | m_Target: 1 572 | speed: 2 573 | m_Value: 1 574 | m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} 575 | m_Pivot: {x: 0, y: 0, z: 0} 576 | m_Size: {x: 1, y: 1} 577 | zGrid: 578 | m_Fade: 579 | m_Target: 0 580 | speed: 2 581 | m_Value: 0 582 | m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} 583 | m_Pivot: {x: 0, y: 0, z: 0} 584 | m_Size: {x: 0, y: 0} 585 | m_ShowGrid: 1 586 | m_GridAxis: 1 587 | m_gridOpacity: 0.5 588 | m_Rotation: 589 | m_Target: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} 590 | speed: 2 591 | m_Value: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} 592 | m_Size: 593 | m_Target: 10 594 | speed: 2 595 | m_Value: 10 596 | m_Ortho: 597 | m_Target: 0 598 | speed: 2 599 | m_Value: 0 600 | m_CameraSettings: 601 | m_Speed: 1 602 | m_SpeedNormalized: 0.5 603 | m_SpeedMin: 0.001 604 | m_SpeedMax: 2 605 | m_EasingEnabled: 1 606 | m_EasingDuration: 0.4 607 | m_AccelerationEnabled: 1 608 | m_FieldOfView: 90 609 | m_NearClip: 0.03 610 | m_FarClip: 10000 611 | m_DynamicClip: 1 612 | m_OcclusionCulling: 0 613 | m_LastSceneViewRotation: {x: 0, y: 0, z: 0, w: 0} 614 | m_LastSceneViewOrtho: 0 615 | m_ReplacementShader: {fileID: 0} 616 | m_ReplacementString: 617 | m_SceneVisActive: 1 618 | m_LastLockedObject: {fileID: 0} 619 | m_ViewIsLockedToObject: 0 620 | --- !u!114 &16 621 | MonoBehaviour: 622 | m_ObjectHideFlags: 52 623 | m_CorrespondingSourceObject: {fileID: 0} 624 | m_PrefabInstance: {fileID: 0} 625 | m_PrefabAsset: {fileID: 0} 626 | m_GameObject: {fileID: 0} 627 | m_Enabled: 1 628 | m_EditorHideFlags: 1 629 | m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0} 630 | m_Name: 631 | m_EditorClassIdentifier: 632 | m_MinSize: {x: 200, y: 200} 633 | m_MaxSize: {x: 4000, y: 4000} 634 | m_TitleContent: 635 | m_Text: Game 636 | m_Image: {fileID: -6423792434712278376, guid: 0000000000000000d000000000000000, type: 0} 637 | m_Tooltip: 638 | m_Pos: 639 | serializedVersion: 2 640 | x: 507 641 | y: 94 642 | width: 1532 643 | height: 790 644 | m_ViewDataDictionary: {fileID: 0} 645 | m_SerializedViewsNames: [] 646 | m_SerializedViewsValues: [] 647 | m_PlayModeViewName: GameView 648 | m_ShowGizmos: 0 649 | m_TargetDisplay: 0 650 | m_ClearColor: {r: 0, g: 0, b: 0, a: 0} 651 | m_TargetSize: {x: 640, y: 480} 652 | m_TextureFilterMode: 0 653 | m_TextureHideFlags: 61 654 | m_RenderIMGUI: 0 655 | m_MaximizeOnPlay: 0 656 | m_UseMipMap: 0 657 | m_VSyncEnabled: 0 658 | m_Gizmos: 0 659 | m_Stats: 0 660 | m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000 661 | m_ZoomArea: 662 | m_HRangeLocked: 0 663 | m_VRangeLocked: 0 664 | hZoomLockedByDefault: 0 665 | vZoomLockedByDefault: 0 666 | m_HBaseRangeMin: -766 667 | m_HBaseRangeMax: 766 668 | m_VBaseRangeMin: -395 669 | m_VBaseRangeMax: 395 670 | m_HAllowExceedBaseRangeMin: 1 671 | m_HAllowExceedBaseRangeMax: 1 672 | m_VAllowExceedBaseRangeMin: 1 673 | m_VAllowExceedBaseRangeMax: 1 674 | m_ScaleWithWindow: 0 675 | m_HSlider: 0 676 | m_VSlider: 0 677 | m_IgnoreScrollWheelUntilClicked: 0 678 | m_EnableMouseInput: 1 679 | m_EnableSliderZoomHorizontal: 0 680 | m_EnableSliderZoomVertical: 0 681 | m_UniformScale: 1 682 | m_UpDirection: 1 683 | m_DrawArea: 684 | serializedVersion: 2 685 | x: 0 686 | y: 0 687 | width: 1532 688 | height: 790 689 | m_Scale: {x: 1, y: 1} 690 | m_Translation: {x: 766, y: 395} 691 | m_MarginLeft: 0 692 | m_MarginRight: 0 693 | m_MarginTop: 0 694 | m_MarginBottom: 0 695 | m_LastShownAreaInsideMargins: 696 | serializedVersion: 2 697 | x: -766 698 | y: -395 699 | width: 1532 700 | height: 790 701 | m_MinimalGUI: 1 702 | m_defaultScale: 1 703 | m_LastWindowPixelSize: {x: 1532, y: 790} 704 | m_ClearInEditMode: 1 705 | m_NoCameraWarning: 1 706 | m_LowResolutionForAspectRatios: 01000000000000000000 707 | m_XRRenderMode: 0 708 | m_RenderTexture: {fileID: 0} 709 | --- !u!114 &17 710 | MonoBehaviour: 711 | m_ObjectHideFlags: 52 712 | m_CorrespondingSourceObject: {fileID: 0} 713 | m_PrefabInstance: {fileID: 0} 714 | m_PrefabAsset: {fileID: 0} 715 | m_GameObject: {fileID: 0} 716 | m_Enabled: 1 717 | m_EditorHideFlags: 1 718 | m_Script: {fileID: 12003, guid: 0000000000000000e000000000000000, type: 0} 719 | m_Name: 720 | m_EditorClassIdentifier: 721 | m_MinSize: {x: 100, y: 100} 722 | m_MaxSize: {x: 4000, y: 4000} 723 | m_TitleContent: 724 | m_Text: Console 725 | m_Image: {fileID: -4327648978806127646, guid: 0000000000000000d000000000000000, type: 0} 726 | m_Tooltip: 727 | m_Pos: 728 | serializedVersion: 2 729 | x: 2249 730 | y: 726.5 731 | width: 920 732 | height: 250 733 | m_ViewDataDictionary: {fileID: 0} 734 | --- !u!114 &18 735 | MonoBehaviour: 736 | m_ObjectHideFlags: 0 737 | m_CorrespondingSourceObject: {fileID: 0} 738 | m_PrefabInstance: {fileID: 0} 739 | m_PrefabAsset: {fileID: 0} 740 | m_GameObject: {fileID: 0} 741 | m_Enabled: 1 742 | m_EditorHideFlags: 0 743 | m_Script: {fileID: 13963, guid: 0000000000000000e000000000000000, type: 0} 744 | m_Name: 745 | m_EditorClassIdentifier: 746 | m_DontSaveToLayout: 0 747 | -------------------------------------------------------------------------------- /images/giturl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TakuKobayashi/UnityCipher/afb3fd4f0826102bbd7e4ea147e1e190c06c868e/images/giturl.png -------------------------------------------------------------------------------- /images/packageFromGitURL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TakuKobayashi/UnityCipher/afb3fd4f0826102bbd7e4ea147e1e190c06c868e/images/packageFromGitURL.png -------------------------------------------------------------------------------- /images/packageManager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TakuKobayashi/UnityCipher/afb3fd4f0826102bbd7e4ea147e1e190c06c868e/images/packageManager.png -------------------------------------------------------------------------------- /images/windowbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TakuKobayashi/UnityCipher/afb3fd4f0826102bbd7e4ea147e1e190c06c868e/images/windowbar.png --------------------------------------------------------------------------------