├── .gitattributes ├── .github └── workflows │ ├── build-listing.yml │ └── release.yml ├── .gitignore ├── LICENSE ├── Packages ├── com.vrchat.core.vpm-resolver │ ├── Editor.meta │ ├── Editor │ │ ├── Dependencies.meta │ │ ├── Dependencies │ │ │ ├── ICSharpCode.SharpZipLib.dll │ │ │ ├── ICSharpCode.SharpZipLib.dll.meta │ │ │ ├── SemanticVersioning.License.txt │ │ │ ├── SemanticVersioning.License.txt.meta │ │ │ ├── SemanticVersioning.dll │ │ │ ├── SemanticVersioning.dll.meta │ │ │ ├── Serilog.License.txt │ │ │ ├── Serilog.License.txt.meta │ │ │ ├── Serilog.Sinks.File.dll │ │ │ ├── Serilog.Sinks.File.dll.meta │ │ │ ├── Serilog.Sinks.File.txt │ │ │ ├── Serilog.Sinks.File.txt.meta │ │ │ ├── Serilog.Sinks.Unity3D.License.md │ │ │ ├── Serilog.Sinks.Unity3D.License.md.meta │ │ │ ├── Serilog.Sinks.Unity3D.dll │ │ │ ├── Serilog.Sinks.Unity3D.dll.meta │ │ │ ├── Serilog.dll │ │ │ ├── Serilog.dll.meta │ │ │ ├── YamlDotNet.License.txt │ │ │ ├── YamlDotNet.License.txt.meta │ │ │ ├── YamlDotNet.dll │ │ │ ├── YamlDotNet.dll.meta │ │ │ ├── vpm-core-lib.dll │ │ │ └── vpm-core-lib.dll.meta │ │ ├── PackageMaker.meta │ │ ├── PackageMaker │ │ │ ├── PackageMakerWindow.cs │ │ │ ├── PackageMakerWindow.cs.meta │ │ │ ├── PackageMakerWindowData.cs │ │ │ └── PackageMakerWindowData.cs.meta │ │ ├── Resolver.meta │ │ ├── Resolver │ │ │ ├── Resolver.cs │ │ │ ├── Resolver.cs.meta │ │ │ ├── ResolverWindow.cs │ │ │ └── ResolverWindow.cs.meta │ │ ├── Resources.meta │ │ ├── Resources │ │ │ ├── PackageMakerWindowStyle.uss │ │ │ ├── PackageMakerWindowStyle.uss.meta │ │ │ ├── ResolverWindowStyle.uss │ │ │ └── ResolverWindowStyle.uss.meta │ │ ├── com.vrchat.core.vpm-resolver.Editor.asmdef │ │ └── com.vrchat.core.vpm-resolver.Editor.asmdef.meta │ ├── License.md │ ├── License.md.meta │ ├── package.json │ └── package.json.meta ├── jp.nukora.nukotween │ ├── Editor.meta │ ├── Editor │ │ ├── jp.nukora.nukotween.Editor.asmdef │ │ └── jp.nukora.nukotween.Editor.asmdef.meta │ ├── README.md │ ├── README.md.meta │ ├── Runtime.meta │ ├── Runtime │ │ ├── NukoTweenEngine.prefab │ │ ├── NukoTweenEngine.prefab.meta │ │ ├── Scripts.meta │ │ ├── Scripts │ │ │ ├── NukoTweenEngine Udon C# Program Asset.asset │ │ │ ├── NukoTweenEngine Udon C# Program Asset.asset.meta │ │ │ ├── NukoTweenEngine.cs │ │ │ └── NukoTweenEngine.cs.meta │ │ ├── jp.nukora.nukotween.asmdef │ │ ├── jp.nukora.nukotween.asmdef.meta │ │ ├── jp.nukora.nukotween.usasmdef.asset │ │ └── jp.nukora.nukotween.usasmdef.asset.meta │ ├── package.json │ └── package.json.meta ├── manifest.json ├── packages-lock.json └── vpm-manifest.json ├── README.md └── Website ├── app.js ├── banner.png ├── favicon.ico ├── index.html └── styles.css /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | # Unity files 4 | *.meta -text merge=unityyamlmerge diff 5 | *.unity -text merge=unityyamlmerge diff 6 | *.asset -text merge=unityyamlmerge diff 7 | *.prefab -text merge=unityyamlmerge diff 8 | *.mat -text merge=unityyamlmerge diff 9 | *.anim -text merge=unityyamlmerge diff 10 | *.controller -text merge=unityyamlmerge diff 11 | *.overrideController -text merge=unityyamlmerge diff 12 | *.physicMaterial -text merge=unityyamlmerge diff 13 | *.physicsMaterial2D -text merge=unityyamlmerge diff 14 | *.playable -text merge=unityyamlmerge diff 15 | *.mask -text merge=unityyamlmerge diff 16 | *.brush -text merge=unityyamlmerge diff 17 | *.flare -text merge=unityyamlmerge diff 18 | *.fontsettings -text merge=unityyamlmerge diff 19 | *.guiskin -text merge=unityyamlmerge diff 20 | *.giparams -text merge=unityyamlmerge diff 21 | *.renderTexture -text merge=unityyamlmerge diff 22 | *.spriteatlas -text merge=unityyamlmerge diff 23 | *.terrainlayer -text merge=unityyamlmerge diff 24 | *.mixer -text merge=unityyamlmerge diff 25 | *.shadervariants -text merge=unityyamlmerge diff 26 | 27 | # Image formats 28 | *.psd filter=lfs diff=lfs merge=lfs -text 29 | *.jpg filter=lfs diff=lfs merge=lfs -text 30 | *.png filter=lfs diff=lfs merge=lfs -text 31 | *.gif filter=lfs diff=lfs merge=lfs -text 32 | *.bmp filter=lfs diff=lfs merge=lfs -text 33 | *.tga filter=lfs diff=lfs merge=lfs -text 34 | *.tiff filter=lfs diff=lfs merge=lfs -text 35 | *.tif filter=lfs diff=lfs merge=lfs -text 36 | *.iff filter=lfs diff=lfs merge=lfs -text 37 | *.pict filter=lfs diff=lfs merge=lfs -text 38 | *.dds filter=lfs diff=lfs merge=lfs -text 39 | *.xcf filter=lfs diff=lfs merge=lfs -text 40 | 41 | # Audio formats 42 | *.mp3 filter=lfs diff=lfs merge=lfs -text 43 | *.ogg filter=lfs diff=lfs merge=lfs -text 44 | *.wav filter=lfs diff=lfs merge=lfs -text 45 | *.aiff filter=lfs diff=lfs merge=lfs -text 46 | *.aif filter=lfs diff=lfs merge=lfs -text 47 | *.mod filter=lfs diff=lfs merge=lfs -text 48 | *.it filter=lfs diff=lfs merge=lfs -text 49 | *.s3m filter=lfs diff=lfs merge=lfs -text 50 | *.xm filter=lfs diff=lfs merge=lfs -text 51 | 52 | # Video formats 53 | *.mov filter=lfs diff=lfs merge=lfs -text 54 | *.avi filter=lfs diff=lfs merge=lfs -text 55 | *.asf filter=lfs diff=lfs merge=lfs -text 56 | *.mpg filter=lfs diff=lfs merge=lfs -text 57 | *.mpeg filter=lfs diff=lfs merge=lfs -text 58 | *.mp4 filter=lfs diff=lfs merge=lfs -text 59 | 60 | # 3D formats 61 | *.fbx filter=lfs diff=lfs merge=lfs -text 62 | *.obj filter=lfs diff=lfs merge=lfs -text 63 | *.max filter=lfs diff=lfs merge=lfs -text 64 | *.blend filter=lfs diff=lfs merge=lfs -text 65 | *.dae filter=lfs diff=lfs merge=lfs -text 66 | *.mb filter=lfs diff=lfs merge=lfs -text 67 | *.ma filter=lfs diff=lfs merge=lfs -text 68 | *.3ds filter=lfs diff=lfs merge=lfs -text 69 | *.dfx filter=lfs diff=lfs merge=lfs -text 70 | *.c4d filter=lfs diff=lfs merge=lfs -text 71 | *.lwo filter=lfs diff=lfs merge=lfs -text 72 | *.lwo2 filter=lfs diff=lfs merge=lfs -text 73 | *.abc filter=lfs diff=lfs merge=lfs -text 74 | *.3dm filter=lfs diff=lfs merge=lfs -text 75 | 76 | # Build 77 | *.dll filter=lfs diff=lfs merge=lfs -text 78 | *.pdb filter=lfs diff=lfs merge=lfs -text 79 | *.mdb filter=lfs diff=lfs merge=lfs -text 80 | 81 | # Packaging 82 | *.zip filter=lfs diff=lfs merge=lfs -text 83 | *.7z filter=lfs diff=lfs merge=lfs -text 84 | *.gz filter=lfs diff=lfs merge=lfs -text 85 | *.rar filter=lfs diff=lfs merge=lfs -text 86 | *.tar filter=lfs diff=lfs merge=lfs -text 87 | -------------------------------------------------------------------------------- /.github/workflows/build-listing.yml: -------------------------------------------------------------------------------- 1 | name: Build Repo Listing 2 | 3 | env: 4 | CurrentPackageName: jp.nukora.nukotween 5 | listPublishDirectory: Website 6 | pathToCi: ci 7 | 8 | on: 9 | workflow_dispatch: 10 | workflow_run: 11 | workflows: [Build Release] 12 | types: 13 | - completed 14 | release: 15 | types: [published, created, edited, unpublished, deleted, released] 16 | 17 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages 18 | permissions: 19 | contents: read 20 | pages: write 21 | id-token: write 22 | 23 | # Allow one concurrent deployment 24 | concurrency: 25 | group: "pages" 26 | cancel-in-progress: true 27 | 28 | jobs: 29 | 30 | build-listing: 31 | name: build-listing 32 | environment: 33 | name: github-pages 34 | url: ${{ steps.deployment.outputs.page_url }} 35 | runs-on: ubuntu-latest 36 | steps: 37 | 38 | - uses: actions/checkout@v3 # check out this repo 39 | - uses: actions/checkout@v3 # check out automation repo 40 | with: 41 | repository: vrchat-community/package-list-action 42 | path: ${{env.pathToCi}} 43 | clean: false # otherwise the local repo will no longer be checked out 44 | 45 | - name: Restore Cache 46 | uses: actions/cache@v3 47 | with: 48 | path: | 49 | ${{env.pathToCi}}/.nuke/temp 50 | ~/.nuget/packages 51 | key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} 52 | 53 | - name: Build Package Version Listing 54 | run: ${{env.pathToCi}}/build.cmd BuildRepoListing --root ${{env.pathToCi}} --list-publish-directory $GITHUB_WORKSPACE/${{env.listPublishDirectory}} --current-package-name ${{env.CurrentPackageName}} 55 | env: 56 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 57 | 58 | - name: Setup Pages 59 | uses: actions/configure-pages@v3 60 | 61 | - name: Upload artifact 62 | uses: actions/upload-pages-artifact@v1 63 | with: 64 | path: ${{env.listPublishDirectory}} 65 | 66 | - name: Deploy to GitHub Pages 67 | id: deployment 68 | uses: actions/deploy-pages@v2 69 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Build Release 2 | 3 | on: 4 | workflow_dispatch: 5 | 6 | env: 7 | packageName: "jp.nukora.nukotween" 8 | 9 | permissions: 10 | contents: write 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | steps: 16 | 17 | - name: Checkout 18 | uses: actions/checkout@v3 19 | 20 | - name: get version 21 | id: version 22 | uses: notiz-dev/github-action-json-property@7c8cf5cc36eb85d8d287a8086a39dac59628eb31 23 | with: 24 | path: "Packages/${{env.packageName}}/package.json" 25 | prop_path: "version" 26 | 27 | - name: Set Environment Variables 28 | run: | 29 | echo "zipFile=${{ env.packageName }}-${{ steps.version.outputs.prop }}".zip >> $GITHUB_ENV 30 | echo "unityPackage=${{ env.packageName }}-${{ steps.version.outputs.prop }}.unitypackage" >> $GITHUB_ENV 31 | 32 | - name: Create Zip 33 | uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657 34 | with: 35 | type: "zip" 36 | directory: "Packages/${{env.packageName}}/" 37 | filename: "../../${{env.zipFile}}" # make the zip file two directories up, since we start two directories in above 38 | 39 | - run: find "Packages/${{env.packageName}}/" -name \*.meta >> metaList 40 | 41 | - name: Create UnityPackage 42 | uses: pCYSl5EDgo/create-unitypackage@cfcd3cf0391a5ef1306342794866a9897c32af0b 43 | with: 44 | package-path: ${{ env.unityPackage }} 45 | include-files: metaList 46 | 47 | 48 | - name: Make Release 49 | uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 50 | with: 51 | tag_name: ${{ steps.version.outputs.prop }} 52 | files: | 53 | ${{ env.zipFile }} 54 | ${{ env.unityPackage }} 55 | Packages/${{ env.packageName }}/package.json 56 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | [Ll]ogs/ 7 | 8 | # Uncomment this line if you wish to ignore the asset store tools plugin 9 | # [Aa]ssets/AssetStoreTools* 10 | 11 | # Visual Studio cache directory 12 | .vs/ 13 | 14 | # Gradle cache directory 15 | .gradle/ 16 | 17 | # Autogenerated VS/MD/Consulo solution and project files 18 | ExportedObj/ 19 | .consulo/ 20 | *.csproj 21 | *.unityproj 22 | *.sln 23 | *.suo 24 | *.tmp 25 | *.user 26 | *.userprefs 27 | *.pidb 28 | *.booproj 29 | *.svd 30 | *.pdb 31 | *.mdb 32 | *.opendb 33 | *.VC.db 34 | 35 | # Unity3D generated meta files 36 | *.pidb.meta 37 | *.pdb.meta 38 | *.mdb.meta 39 | 40 | # Unity3D generated file on crash reports 41 | sysinfo.txt 42 | 43 | # Builds 44 | *.apk 45 | *.unitypackage 46 | 47 | # Crashlytics generated file 48 | crashlytics-build.properties 49 | 50 | # Ignore 51 | /Assets/* 52 | /Packages/* 53 | /ProjectSettings 54 | !/Assets/NukoTween/ 55 | .vsconfig -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 nukora 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/com.vrchat.core.vpm-resolver/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1058b5946fb23674cad310b1f4bd5b61 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4e8a9c940ed84943bb0433246ec42bb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:49606896e32a17b4e7470ff8d627f9428eddc44e33f679ca3c4ab621cf97f9c5 3 | size 204288 4 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/ICSharpCode.SharpZipLib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec897c206a99abe41b093d5cc5ddc3fe 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/SemanticVersioning.License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Adam Reeve 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/SemanticVersioning.License.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1417544c34d9a4f4aacebf76247940a9 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/SemanticVersioning.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:a5b57607225a0ebde049e93469f49e5b2d07a7d602a03864ce3a72ccf57103a2 3 | size 34816 4 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/SemanticVersioning.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65d82c6541a90644390df2caa29c2209 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.License.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, and 10 | distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by the copyright 13 | owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all other entities 16 | that control, are controlled by, or are under common control with that entity. 17 | For the purposes of this definition, "control" means (i) the power, direct or 18 | indirect, to cause the direction or management of such entity, whether by 19 | contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the 20 | outstanding shares, or (iii) beneficial ownership of such entity. 21 | 22 | "You" (or "Your") shall mean an individual or Legal Entity exercising 23 | permissions granted by this License. 24 | 25 | "Source" form shall mean the preferred form for making modifications, including 26 | but not limited to software source code, documentation source, and configuration 27 | files. 28 | 29 | "Object" form shall mean any form resulting from mechanical transformation or 30 | translation of a Source form, including but not limited to compiled object code, 31 | generated documentation, and conversions to other media types. 32 | 33 | "Work" shall mean the work of authorship, whether in Source or Object form, made 34 | available under the License, as indicated by a copyright notice that is included 35 | in or attached to the work (an example is provided in the Appendix below). 36 | 37 | "Derivative Works" shall mean any work, whether in Source or Object form, that 38 | is based on (or derived from) the Work and for which the editorial revisions, 39 | annotations, elaborations, or other modifications represent, as a whole, an 40 | original work of authorship. For the purposes of this License, Derivative Works 41 | shall not include works that remain separable from, or merely link (or bind by 42 | name) to the interfaces of, the Work and Derivative Works thereof. 43 | 44 | "Contribution" shall mean any work of authorship, including the original version 45 | of the Work and any modifications or additions to that Work or Derivative Works 46 | thereof, that is intentionally submitted to Licensor for inclusion in the Work 47 | by the copyright owner or by an individual or Legal Entity authorized to submit 48 | on behalf of the copyright owner. For the purposes of this definition, 49 | "submitted" means any form of electronic, verbal, or written communication sent 50 | to the Licensor or its representatives, including but not limited to 51 | communication on electronic mailing lists, source code control systems, and 52 | issue tracking systems that are managed by, or on behalf of, the Licensor for 53 | the purpose of discussing and improving the Work, but excluding communication 54 | that is conspicuously marked or otherwise designated in writing by the copyright 55 | owner as "Not a Contribution." 56 | 57 | "Contributor" shall mean Licensor and any individual or Legal Entity on behalf 58 | of whom a Contribution has been received by Licensor and subsequently 59 | incorporated within the Work. 60 | 61 | 2. Grant of Copyright License. 62 | 63 | Subject to the terms and conditions of this License, each Contributor hereby 64 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 65 | irrevocable copyright license to reproduce, prepare Derivative Works of, 66 | publicly display, publicly perform, sublicense, and distribute the Work and such 67 | Derivative Works in Source or Object form. 68 | 69 | 3. Grant of Patent License. 70 | 71 | Subject to the terms and conditions of this License, each Contributor hereby 72 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, 73 | irrevocable (except as stated in this section) patent license to make, have 74 | made, use, offer to sell, sell, import, and otherwise transfer the Work, where 75 | such license applies only to those patent claims licensable by such Contributor 76 | that are necessarily infringed by their Contribution(s) alone or by combination 77 | of their Contribution(s) with the Work to which such Contribution(s) was 78 | submitted. If You institute patent litigation against any entity (including a 79 | cross-claim or counterclaim in a lawsuit) alleging that the Work or a 80 | Contribution incorporated within the Work constitutes direct or contributory 81 | patent infringement, then any patent licenses granted to You under this License 82 | for that Work shall terminate as of the date such litigation is filed. 83 | 84 | 4. Redistribution. 85 | 86 | You may reproduce and distribute copies of the Work or Derivative Works thereof 87 | in any medium, with or without modifications, and in Source or Object form, 88 | provided that You meet the following conditions: 89 | 90 | You must give any other recipients of the Work or Derivative Works a copy of 91 | this License; and 92 | You must cause any modified files to carry prominent notices stating that You 93 | changed the files; and 94 | You must retain, in the Source form of any Derivative Works that You distribute, 95 | all copyright, patent, trademark, and attribution notices from the Source form 96 | of the Work, excluding those notices that do not pertain to any part of the 97 | Derivative Works; and 98 | If the Work includes a "NOTICE" text file as part of its distribution, then any 99 | Derivative Works that You distribute must include a readable copy of the 100 | attribution notices contained within such NOTICE file, excluding those notices 101 | that do not pertain to any part of the Derivative Works, in at least one of the 102 | following places: within a NOTICE text file distributed as part of the 103 | Derivative Works; within the Source form or documentation, if provided along 104 | with the Derivative Works; or, within a display generated by the Derivative 105 | Works, if and wherever such third-party notices normally appear. The contents of 106 | the NOTICE file are for informational purposes only and do not modify the 107 | License. You may add Your own attribution notices within Derivative Works that 108 | You distribute, alongside or as an addendum to the NOTICE text from the Work, 109 | provided that such additional attribution notices cannot be construed as 110 | modifying the License. 111 | You may add Your own copyright statement to Your modifications and may provide 112 | additional or different license terms and conditions for use, reproduction, or 113 | distribution of Your modifications, or for any such Derivative Works as a whole, 114 | provided Your use, reproduction, and distribution of the Work otherwise complies 115 | with the conditions stated in this License. 116 | 117 | 5. Submission of Contributions. 118 | 119 | Unless You explicitly state otherwise, any Contribution intentionally submitted 120 | for inclusion in the Work by You to the Licensor shall be under the terms and 121 | conditions of this License, without any additional terms or conditions. 122 | Notwithstanding the above, nothing herein shall supersede or modify the terms of 123 | any separate license agreement you may have executed with Licensor regarding 124 | such Contributions. 125 | 126 | 6. Trademarks. 127 | 128 | This License does not grant permission to use the trade names, trademarks, 129 | service marks, or product names of the Licensor, except as required for 130 | reasonable and customary use in describing the origin of the Work and 131 | reproducing the content of the NOTICE file. 132 | 133 | 7. Disclaimer of Warranty. 134 | 135 | Unless required by applicable law or agreed to in writing, Licensor provides the 136 | Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, 137 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, 138 | including, without limitation, any warranties or conditions of TITLE, 139 | NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are 140 | solely responsible for determining the appropriateness of using or 141 | redistributing the Work and assume any risks associated with Your exercise of 142 | permissions under this License. 143 | 144 | 8. Limitation of Liability. 145 | 146 | In no event and under no legal theory, whether in tort (including negligence), 147 | contract, or otherwise, unless required by applicable law (such as deliberate 148 | and grossly negligent acts) or agreed to in writing, shall any Contributor be 149 | liable to You for damages, including any direct, indirect, special, incidental, 150 | or consequential damages of any character arising as a result of this License or 151 | out of the use or inability to use the Work (including but not limited to 152 | damages for loss of goodwill, work stoppage, computer failure or malfunction, or 153 | any and all other commercial damages or losses), even if such Contributor has 154 | been advised of the possibility of such damages. 155 | 156 | 9. Accepting Warranty or Additional Liability. 157 | 158 | While redistributing the Work or Derivative Works thereof, You may choose to 159 | offer, and charge a fee for, acceptance of support, warranty, indemnity, or 160 | other liability obligations and/or rights consistent with this License. However, 161 | in accepting such obligations, You may act only on Your own behalf and on Your 162 | sole responsibility, not on behalf of any other Contributor, and only if You 163 | agree to indemnify, defend, and hold each Contributor harmless for any liability 164 | incurred by, or claims asserted against, such Contributor by reason of your 165 | accepting any such warranty or additional liability. 166 | 167 | END OF TERMS AND CONDITIONS 168 | 169 | APPENDIX: How to apply the Apache License to your work 170 | 171 | To apply the Apache License to your work, attach the following boilerplate 172 | notice, with the fields enclosed by brackets "[]" replaced with your own 173 | identifying information. (Don't include the brackets!) The text should be 174 | enclosed in the appropriate comment syntax for the file format. We also 175 | recommend that a file or class name and description of purpose be included on 176 | the same "printed page" as the copyright notice for easier identification within 177 | third-party archives. 178 | 179 | Copyright [yyyy] [name of copyright owner] 180 | 181 | Licensed under the Apache License, Version 2.0 (the "License"); 182 | you may not use this file except in compliance with the License. 183 | You may obtain a copy of the License at 184 | 185 | http://www.apache.org/licenses/LICENSE-2.0 186 | 187 | Unless required by applicable law or agreed to in writing, software 188 | distributed under the License is distributed on an "AS IS" BASIS, 189 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 190 | See the License for the specific language governing permissions and 191 | limitations under the License. 192 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.License.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a7454bc513adb84d9ae85ed7e7268ba 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.File.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:ab311fcca9034f8d5ec283c1ac1274ed45a6becbb4d4a8cf08f7cb29def7f495 3 | size 29184 4 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.File.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c56563958a156145b708466db0e35cc 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.File.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.File.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca344e99cdd379947ab3e8e5b346428c 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.Unity3D.License.md: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2020 Kurai András 5 | Copyright (c) 2022-Present VRChat Inc. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.Unity3D.License.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 598e678340a8c6e4e9a3debcdc6a9579 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.Unity3D.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:069de1e94f0152a44f3447bd7fb86b34bf9b0949be11659ac29f762d2172e699 3 | size 6144 4 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.Sinks.Unity3D.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfc1421f162f0354d8a64d569417d9c9 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:6eef730fa45e5607e0a606b8c77eb139656113fe11669c144661391aa5144df5 3 | size 135168 4 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/Serilog.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 702a5a2579f8edf43b5e7bfb2f52e2c6 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/YamlDotNet.License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Antoine Aubry and contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 7 | of the Software, and to permit persons to whom the Software is furnished to do 8 | so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/YamlDotNet.License.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3547422b181c5af49901e93c1122bbdd 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/YamlDotNet.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:f24d57a17849f58239561ba7872f2aa68bf6c80f365a0fcd6aeef06b4440b476 3 | size 222208 4 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/YamlDotNet.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fd667e0ec0d1d84c9e17dad407f2272 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/vpm-core-lib.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:cc57b41285e5a4f07ad10c8d8c01f934c133fd4a51d18edf5b59ae8a45c277a2 3 | size 115712 4 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Dependencies/vpm-core-lib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 140aba2a5b760e94cb3ed9f39a52610a 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Windows Store Apps: WindowsStoreApps 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: AnyCPU 31 | userData: 32 | assetBundleName: 33 | assetBundleVariant: 34 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5da3ddd939264fc40a113d615f3ca77a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindow.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Reflection; 6 | using System.Text; 7 | using System.Text.RegularExpressions; 8 | using UnityEditor; 9 | using UnityEditor.UIElements; 10 | using UnityEngine; 11 | using UnityEngine.UIElements; 12 | using VRC.PackageManagement.Core.Types.Packages; 13 | 14 | namespace VRC.PackageManagement.PackageMaker 15 | { 16 | public class PackageMakerWindow : EditorWindow 17 | { 18 | // VisualElements 19 | private VisualElement _rootView; 20 | private TextField _targetAssetFolderField; 21 | private TextField _packageIDField; 22 | private Button _actionButton; 23 | private EnumField _targetVRCPackageField; 24 | private TextField _authorNameField; 25 | private TextField _authorEmailField; 26 | private TextField _authorUrlField; 27 | private static string _projectDir; 28 | private PackageMakerWindowData _windowData; 29 | 30 | private void LoadDataFromSave() 31 | { 32 | if (!string.IsNullOrWhiteSpace(_windowData.targetAssetFolder)) 33 | { 34 | _targetAssetFolderField.SetValueWithoutNotify(_windowData.targetAssetFolder); 35 | } 36 | _packageIDField.SetValueWithoutNotify(_windowData.packageID); 37 | _targetVRCPackageField.SetValueWithoutNotify(_windowData.relatedPackage); 38 | _authorEmailField.SetValueWithoutNotify(_windowData.authorEmail); 39 | _authorNameField.SetValueWithoutNotify(_windowData.authorName); 40 | _authorUrlField.SetValueWithoutNotify(_windowData.authorUrl); 41 | 42 | RefreshActionButtonState(); 43 | } 44 | 45 | private void OnEnable() 46 | { 47 | _projectDir = Directory.GetParent(Application.dataPath).FullName; 48 | Refresh(); 49 | } 50 | 51 | [MenuItem("VRChat SDK/Utilities/Package Maker")] 52 | public static void ShowWindow() 53 | { 54 | PackageMakerWindow wnd = GetWindow(); 55 | wnd.titleContent = new GUIContent("Package Maker"); 56 | } 57 | 58 | [MenuItem("Assets/Export VPM as UnityPackage")] 59 | private static void ExportAsUnityPackage () 60 | { 61 | 62 | var foldersToExport = new List(); 63 | StringBuilder exportFilename = new StringBuilder("exported"); 64 | foreach (string guid in Selection.assetGUIDs) 65 | { 66 | string selectedFolder = AssetDatabase.GUIDToAssetPath(guid); 67 | var manifestPath = Path.Combine(selectedFolder, VRCPackageManifest.Filename); 68 | var manifest = VRCPackageManifest.GetManifestAtPath(manifestPath); 69 | if (manifest == null) 70 | { 71 | Debug.LogWarning($"Could not read valid Package Manifest at {manifestPath}. You need to create this first to export a VPM Package."); 72 | continue; 73 | } 74 | exportFilename.Append($"-{manifest.Id}-{manifest.Version}"); 75 | foldersToExport.Add(selectedFolder); 76 | } 77 | 78 | exportFilename.Append(".unitypackage"); 79 | var exportDir = Path.Combine(Directory.GetCurrentDirectory(), "Exports"); 80 | Directory.CreateDirectory(exportDir); 81 | AssetDatabase.ExportPackage 82 | ( 83 | foldersToExport.ToArray(), 84 | Path.Combine(exportDir, exportFilename.ToString()), 85 | ExportPackageOptions.Recurse | ExportPackageOptions.Interactive 86 | ); 87 | } 88 | 89 | private void Refresh() 90 | { 91 | if (_windowData == null) 92 | { 93 | _windowData = PackageMakerWindowData.GetOrCreate(); 94 | } 95 | 96 | if (_rootView == null) return; 97 | 98 | if (_windowData != null) 99 | { 100 | LoadDataFromSave(); 101 | } 102 | } 103 | 104 | private void RefreshActionButtonState() 105 | { 106 | _actionButton.SetEnabled( 107 | StringIsValidAssetFolder(_windowData.targetAssetFolder) && 108 | !string.IsNullOrWhiteSpace(_windowData.packageID) && 109 | _authorNameField.value != null && 110 | IsValidEmail(_authorEmailField.value) 111 | ); 112 | } 113 | 114 | /// 115 | /// Unity calls the CreateGUI method automatically when the window needs to display 116 | /// 117 | private void CreateGUI() 118 | { 119 | if (_windowData == null) 120 | { 121 | _windowData = PackageMakerWindowData.GetOrCreate(); 122 | } 123 | 124 | _rootView = rootVisualElement; 125 | _rootView.name = "root-view"; 126 | _rootView.styleSheets.Add((StyleSheet) Resources.Load("PackageMakerWindowStyle")); 127 | 128 | // Create Target Asset folder and register for drag and drop events 129 | _rootView.Add(CreateTargetFolderElement()); 130 | _rootView.Add(CreatePackageIDElement()); 131 | _rootView.Add(CreateAuthorElement()); 132 | _rootView.Add(CreateTargetVRCPackageElement()); 133 | _rootView.Add(CreateActionButton()); 134 | 135 | Refresh(); 136 | } 137 | 138 | public enum VRCPackageEnum 139 | { 140 | None = 0, 141 | Worlds = 1, 142 | Avatars = 2, 143 | Base = 3, 144 | UdonSharp = 4, 145 | } 146 | 147 | private VisualElement CreateTargetVRCPackageElement() 148 | { 149 | _targetVRCPackageField = new EnumField("Related VRChat Package", VRCPackageEnum.None); 150 | _targetVRCPackageField.RegisterValueChangedCallback(OnTargetVRCPackageChanged); 151 | var box = new Box(); 152 | box.Add(_targetVRCPackageField); 153 | return box; 154 | } 155 | 156 | private void OnTargetVRCPackageChanged(ChangeEvent evt) 157 | { 158 | _windowData.relatedPackage = (VRCPackageEnum)evt.newValue; 159 | _windowData.Save(); 160 | } 161 | 162 | private VisualElement CreateActionButton() 163 | { 164 | _actionButton = new Button(OnActionButtonPressed) 165 | { 166 | text = "Convert Assets to Package", 167 | name = "action-button" 168 | }; 169 | return _actionButton; 170 | } 171 | 172 | private void OnActionButtonPressed() 173 | { 174 | bool result = EditorUtility.DisplayDialog("One-Way Conversion", 175 | $"This process will move the assets from {_windowData.targetAssetFolder} into a new Package with the id {_windowData.packageID} and give it references to {_windowData.relatedPackage}.", 176 | "Ok", "Wait, not yet."); 177 | if (result) 178 | { 179 | string newPackageFolderPath = Path.Combine(_projectDir, "Packages", _windowData.packageID); 180 | Directory.CreateDirectory(newPackageFolderPath); 181 | var fullTargetAssetFolder = Path.Combine(_projectDir, _windowData.targetAssetFolder); 182 | DoMigration(fullTargetAssetFolder, newPackageFolderPath); 183 | ForceRefresh(); 184 | } 185 | } 186 | 187 | public static void ForceRefresh () 188 | { 189 | MethodInfo method = typeof( UnityEditor.PackageManager.Client ).GetMethod( "Resolve", BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.DeclaredOnly ); 190 | if( method != null ) 191 | method.Invoke( null, null ); 192 | 193 | AssetDatabase.Refresh(); 194 | } 195 | 196 | private VisualElement CreatePackageIDElement() 197 | { 198 | var box = new Box() 199 | { 200 | name = "package-name-box" 201 | }; 202 | 203 | _packageIDField = new TextField("Package ID", 255, false, false, '*'); 204 | _packageIDField.RegisterValueChangedCallback(OnPackageIDChanged); 205 | box.Add(_packageIDField); 206 | 207 | box.Add(new Label("Lowercase letters, numbers and dots only.") 208 | { 209 | name="description", 210 | tooltip = "Standard practice is reverse domain notation like com.vrchat.packagename. Needs to be unique across VRChat, so if you don't own a domain you can try your username.", 211 | }); 212 | 213 | return box; 214 | } 215 | 216 | private VisualElement CreateAuthorElement() 217 | { 218 | // Construct author fields 219 | _authorNameField = new TextField("Author Name"); 220 | _authorEmailField = new TextField("Author Email"); 221 | _authorUrlField = new TextField("Author URL (optional)"); 222 | 223 | // Save name to window data and toggle the Action Button if its status changed 224 | _authorNameField.RegisterValueChangedCallback((evt) => 225 | { 226 | _windowData.authorName = evt.newValue; 227 | Debug.Log($"Window author name is {evt.newValue}"); 228 | RefreshActionButtonState(); 229 | }); 230 | 231 | // Save email to window data if valid and toggle the Action Button if its status changed 232 | _authorEmailField.RegisterValueChangedCallback((evt) => 233 | { 234 | // Only save email if it appears valid 235 | if (IsValidEmail(evt.newValue)) 236 | { 237 | _windowData.authorEmail = evt.newValue; 238 | } 239 | RefreshActionButtonState(); 240 | }); 241 | 242 | // Save url to window data, doesn't affect action button state 243 | _authorUrlField.RegisterValueChangedCallback((evt) => 244 | { 245 | _windowData.authorUrl = evt.newValue; 246 | }); 247 | 248 | // Add new fields to layout 249 | var box = new Box(); 250 | box.Add(_authorNameField); 251 | box.Add(_authorEmailField); 252 | box.Add(_authorUrlField); 253 | return box; 254 | } 255 | 256 | private bool IsValidEmail(string evtNewValue) 257 | { 258 | try 259 | { 260 | var addr = new System.Net.Mail.MailAddress(evtNewValue); 261 | return addr.Address == evtNewValue; 262 | } 263 | catch 264 | { 265 | return false; 266 | } 267 | } 268 | 269 | private Regex packageIdRegex = new Regex("[^a-z0-9.]"); 270 | private void OnPackageIDChanged(ChangeEvent evt) 271 | { 272 | if (evt.newValue != null) 273 | { 274 | string newId = packageIdRegex.Replace(evt.newValue, "-"); 275 | _packageIDField.SetValueWithoutNotify(newId); 276 | _windowData.packageID = newId; 277 | _windowData.Save(); 278 | } 279 | RefreshActionButtonState(); 280 | } 281 | 282 | private VisualElement CreateTargetFolderElement() 283 | { 284 | var targetFolderBox = new Box() 285 | { 286 | name = "editor-target-box" 287 | }; 288 | 289 | _targetAssetFolderField = new TextField("Target Folder"); 290 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragEnter, TrickleDown.TrickleDown); 291 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragLeave, TrickleDown.TrickleDown); 292 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragUpdated, TrickleDown.TrickleDown); 293 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragPerform, TrickleDown.TrickleDown); 294 | _targetAssetFolderField.RegisterCallback(OnTargetAssetFolderDragExited, TrickleDown.TrickleDown); 295 | _targetAssetFolderField.RegisterValueChangedCallback(OnTargetAssetFolderValueChanged); 296 | targetFolderBox.Add(_targetAssetFolderField); 297 | 298 | targetFolderBox.Add(new Label("Drag and Drop an Assets Folder to Convert Above"){name="description"}); 299 | return targetFolderBox; 300 | } 301 | 302 | #region TargetAssetFolder Field Events 303 | 304 | private bool StringIsValidAssetFolder(string targetFolder) 305 | { 306 | return !string.IsNullOrWhiteSpace(targetFolder) && AssetDatabase.IsValidFolder(targetFolder); 307 | } 308 | 309 | private void OnTargetAssetFolderValueChanged(ChangeEvent evt) 310 | { 311 | string targetFolder = evt.newValue; 312 | 313 | if (StringIsValidAssetFolder(targetFolder)) 314 | { 315 | _windowData.targetAssetFolder = evt.newValue; 316 | _windowData.Save(); 317 | RefreshActionButtonState(); 318 | } 319 | else 320 | { 321 | _targetAssetFolderField.SetValueWithoutNotify(evt.previousValue); 322 | } 323 | } 324 | 325 | private void OnTargetAssetFolderDragExited(DragExitedEvent evt) 326 | { 327 | DragAndDrop.visualMode = DragAndDropVisualMode.None; 328 | } 329 | 330 | private void OnTargetAssetFolderDragPerform(DragPerformEvent evt) 331 | { 332 | var targetFolder = DragAndDrop.paths[0]; 333 | if (!string.IsNullOrWhiteSpace(targetFolder) && AssetDatabase.IsValidFolder(targetFolder)) 334 | { 335 | _targetAssetFolderField.value = targetFolder; 336 | } 337 | else 338 | { 339 | Debug.LogError($"Could not accept {targetFolder}. Needs to be a folder within the project"); 340 | } 341 | } 342 | 343 | private void OnTargetAssetFolderDragUpdated(DragUpdatedEvent evt) 344 | { 345 | if (DragAndDrop.paths.Length == 1) 346 | { 347 | DragAndDrop.visualMode = DragAndDropVisualMode.Copy; 348 | DragAndDrop.AcceptDrag(); 349 | } 350 | else 351 | { 352 | DragAndDrop.visualMode = DragAndDropVisualMode.Rejected; 353 | } 354 | } 355 | 356 | private void OnTargetAssetFolderDragLeave(DragLeaveEvent evt) 357 | { 358 | DragAndDrop.visualMode = DragAndDropVisualMode.None; 359 | } 360 | 361 | private void OnTargetAssetFolderDragEnter(DragEnterEvent evt) 362 | { 363 | if (DragAndDrop.paths.Length == 1) 364 | { 365 | DragAndDrop.visualMode = DragAndDropVisualMode.Copy; 366 | DragAndDrop.AcceptDrag(); 367 | } 368 | } 369 | 370 | #endregion 371 | 372 | #region Migration Logic 373 | 374 | private void DoMigration(string corePath, string targetDir) 375 | { 376 | 377 | EditorUtility.DisplayProgressBar("Migrating Package", "Creating Starter Package", 0.1f); 378 | 379 | // Convert PackageType enum to VRC Package ID string 380 | string packageType = null; 381 | switch (_windowData.relatedPackage) 382 | { 383 | case VRCPackageEnum.Avatars: 384 | packageType = "com.vrchat.avatars"; 385 | break; 386 | case VRCPackageEnum.Base: 387 | packageType = "com.vrchat.base"; 388 | break; 389 | case VRCPackageEnum.Worlds: 390 | packageType = "com.vrchat.clientsim"; // we want ClientSim too, need to specify that for now 391 | break; 392 | case VRCPackageEnum.UdonSharp: 393 | packageType = "com.vrchat.udonsharp"; 394 | break; 395 | } 396 | 397 | string parentDir = new DirectoryInfo(targetDir)?.Parent.FullName; 398 | var packageDir = Core.Utilities.CreateStarterPackage(_windowData.packageID, parentDir, packageType); 399 | 400 | // Modify manifest to add author 401 | // Todo: add support for passing author into CreateStarterPackage 402 | var manifest = 403 | VRCPackageManifest.GetManifestAtPath(Path.Combine(packageDir, VRCPackageManifest.Filename)) as 404 | VRCPackageManifest; 405 | manifest.author = new Author() 406 | { 407 | email = _windowData.authorEmail, 408 | name = _windowData.authorName, 409 | url = _windowData.authorUrl 410 | }; 411 | manifest.Save(); 412 | 413 | var allFiles = GetAllFiles(corePath).ToList(); 414 | MoveFilesToPackageDir(allFiles, corePath, targetDir); 415 | 416 | // Clear target asset folder since it should no longer exist 417 | _windowData.targetAssetFolder = ""; 418 | } 419 | 420 | private static IEnumerable GetAllFiles(string path) 421 | { 422 | var excludedPaths = new List() 423 | { 424 | "Editor.meta" 425 | }; 426 | return Directory.EnumerateFiles(path, "*.*", SearchOption.AllDirectories) 427 | .Where( 428 | s => excludedPaths.All(entry => !s.Contains(entry)) 429 | ); 430 | } 431 | 432 | public static void MoveFilesToPackageDir(List files, string pathBase, string targetDir) 433 | { 434 | EditorUtility.DisplayProgressBar("Migrating Package", "Moving Package Files", 0f); 435 | float totalFiles = files.Count; 436 | 437 | for (int i = 0; i < files.Count; i++) 438 | { 439 | try 440 | { 441 | EditorUtility.DisplayProgressBar("Migrating Package", "Moving Package Files", i / totalFiles); 442 | var file = files[i]; 443 | string simplifiedPath = file.Replace($"{pathBase}\\", ""); 444 | 445 | string dest = null; 446 | if (simplifiedPath.Contains("Editor\\")) 447 | { 448 | // Remove extra 'Editor' subfolders 449 | dest = simplifiedPath.Replace("Editor\\", ""); 450 | dest = Path.Combine(targetDir, "Editor", dest); 451 | } 452 | else 453 | { 454 | // Make complete path to Runtime folder 455 | dest = Path.Combine(targetDir, "Runtime", simplifiedPath); 456 | } 457 | 458 | string targetEnclosingDir = Path.GetDirectoryName(dest); 459 | Directory.CreateDirectory(targetEnclosingDir); 460 | var sourceFile = Path.Combine(pathBase, simplifiedPath); 461 | File.Move(sourceFile, dest); 462 | } 463 | catch (Exception e) 464 | { 465 | Debug.LogError($"Error moving {files[i]}: {e.Message}"); 466 | continue; 467 | } 468 | } 469 | 470 | Directory.Delete(pathBase, true); // cleans up leftover folders since only files are moved 471 | EditorUtility.ClearProgressBar(); 472 | } 473 | 474 | // Important while we're doing copy-and-rename in order to rename paths with "Assets" without renaming paths with "Sample Assets" 475 | public static string ReplaceFirst(string text, string search, string replace) 476 | { 477 | int pos = text.IndexOf(search); 478 | if (pos < 0) 479 | { 480 | return text; 481 | } 482 | 483 | return text.Substring(0, pos) + replace + text.Substring(pos + search.Length); 484 | } 485 | 486 | #endregion 487 | } 488 | 489 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d75fcaecb8b9e7f4bbe783e5f4c9838a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindowData.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEditor; 3 | using UnityEngine; 4 | using VRC.PackageManagement.PackageMaker; 5 | 6 | public class PackageMakerWindowData : ScriptableObject 7 | { 8 | public static string defaultAssetPath = Path.Combine("Assets", "PackageMakerWindowData.asset"); 9 | public string targetAssetFolder; 10 | public string packageID; 11 | 12 | public string authorName; 13 | public string authorEmail; 14 | public string authorUrl; 15 | public PackageMakerWindow.VRCPackageEnum relatedPackage; 16 | 17 | public static PackageMakerWindowData GetOrCreate() 18 | { 19 | var existingData = AssetDatabase.AssetPathToGUID(defaultAssetPath); 20 | if (string.IsNullOrWhiteSpace(existingData)) 21 | { 22 | return Create(); 23 | } 24 | else 25 | { 26 | var saveData = AssetDatabase.LoadAssetAtPath(defaultAssetPath); 27 | if (saveData == null) 28 | { 29 | Debug.LogError($"Could not load saved data but the save file exists. Resetting."); 30 | return Create(); 31 | } 32 | return saveData; 33 | } 34 | } 35 | 36 | public static PackageMakerWindowData Create() 37 | { 38 | var saveData = CreateInstance(); 39 | AssetDatabase.CreateAsset(saveData, defaultAssetPath); 40 | AssetDatabase.SaveAssets(); 41 | return saveData; 42 | } 43 | 44 | public void Save() 45 | { 46 | AssetDatabase.SaveAssets(); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/PackageMaker/PackageMakerWindowData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0adae93375f5d5840a30b6e47f324172 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0aa72fa778aef5b4cb5fa177c19d3636 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver/Resolver.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Reflection; 6 | using System.Threading.Tasks; 7 | using Serilog; 8 | using Serilog.Sinks.Unity3D; 9 | using UnityEditor; 10 | using UnityEngine; 11 | using VRC.PackageManagement.Core; 12 | using VRC.PackageManagement.Core.Types; 13 | using VRC.PackageManagement.Core.Types.Packages; 14 | using Version = VRC.PackageManagement.Core.Types.VPMVersion.Version; 15 | 16 | namespace VRC.PackageManagement.Resolver 17 | { 18 | 19 | [InitializeOnLoad] 20 | public class Resolver 21 | { 22 | private const string _projectLoadedKey = "PROJECT_LOADED"; 23 | 24 | private static string _projectDir; 25 | public static string ProjectDir 26 | { 27 | get 28 | { 29 | if (_projectDir != null) 30 | { 31 | return _projectDir; 32 | } 33 | 34 | try 35 | { 36 | _projectDir = new DirectoryInfo(Assembly.GetExecutingAssembly().Location).Parent.Parent.Parent 37 | .FullName; 38 | return _projectDir; 39 | } 40 | catch (Exception) 41 | { 42 | return ""; 43 | } 44 | } 45 | } 46 | 47 | static Resolver() 48 | { 49 | SetupLogging(); 50 | if (!SessionState.GetBool(_projectLoadedKey, false)) 51 | { 52 | #pragma warning disable 4014 53 | CheckResolveNeeded(); 54 | #pragma warning restore 4014 55 | } 56 | } 57 | 58 | private static void SetupLogging() 59 | { 60 | VRCLibLogger.SetLoggerDirectly( 61 | new LoggerConfiguration() 62 | .MinimumLevel.Information() 63 | .WriteTo.Unity3D() 64 | .CreateLogger() 65 | ); 66 | } 67 | 68 | private static async Task CheckResolveNeeded() 69 | { 70 | SessionState.SetBool(_projectLoadedKey, true); 71 | 72 | //Wait for project to finish compiling 73 | while (EditorApplication.isCompiling || EditorApplication.isUpdating) 74 | { 75 | await Task.Delay(250); 76 | } 77 | 78 | try 79 | { 80 | 81 | if (string.IsNullOrWhiteSpace(ProjectDir)) 82 | { 83 | return; 84 | } 85 | 86 | if (VPMProjectManifest.ResolveIsNeeded(ProjectDir)) 87 | { 88 | Debug.Log($"Resolve needed."); 89 | var result = EditorUtility.DisplayDialog("VRChat Package Management", 90 | $"This project requires some VRChat Packages which are not in the project yet.\n\nPress OK to download and install them.", 91 | "OK", "Show Me What's Missing"); 92 | if (result) 93 | { 94 | ResolveStatic(ProjectDir); 95 | } 96 | else 97 | { 98 | ResolverWindow.ShowWindow(); 99 | } 100 | } 101 | } 102 | catch (Exception) 103 | { 104 | // Unity says we can't open windows from this function so it throws an exception but also works fine. 105 | } 106 | } 107 | 108 | public static bool VPMManifestExists() 109 | { 110 | return VPMProjectManifest.Exists(ProjectDir, out _); 111 | } 112 | 113 | public static void CreateManifest() 114 | { 115 | VPMProjectManifest.Load(ProjectDir); 116 | ResolverWindow.Refresh(); 117 | } 118 | 119 | public static void ResolveManifest() 120 | { 121 | ResolveStatic(ProjectDir); 122 | } 123 | 124 | public static void ResolveStatic(string dir) 125 | { 126 | // Todo: calculate and show actual progress 127 | EditorUtility.DisplayProgressBar($"Getting all VRChat Packages", "Downloading and Installing...", 0.5f); 128 | VPMProjectManifest.Resolve(ProjectDir); 129 | EditorUtility.ClearProgressBar(); 130 | ForceRefresh(); 131 | } 132 | 133 | public static List GetAllVersionsOf(string id) 134 | { 135 | var project = new UnityProject(ProjectDir); 136 | 137 | var versions = new List(); 138 | foreach (var provider in Repos.GetAll) 139 | { 140 | var packagesWithVersions = provider.GetAllWithVersions(); 141 | 142 | foreach (var packageVersionList in packagesWithVersions) 143 | { 144 | foreach (var package in packageVersionList.Value.VersionsDescending) 145 | { 146 | if (package.Id != id) 147 | continue; 148 | if (Version.TryParse(package.Version, out var result)) 149 | { 150 | if (!versions.Contains(package.Version)) 151 | versions.Add(package.Version); 152 | } 153 | } 154 | } 155 | } 156 | 157 | // Sort packages in project to the top 158 | var sorted = from entry in versions orderby project.VPMProvider.HasPackage(entry) descending select entry; 159 | 160 | return sorted.ToList(); 161 | } 162 | 163 | public static List GetAffectedPackageList(IVRCPackage package) 164 | { 165 | List list = new List(); 166 | 167 | var project = new UnityProject(ProjectDir); 168 | 169 | if (Repos.GetAllDependencies(package, out Dictionary dependencies, null)) 170 | { 171 | foreach (KeyValuePair item in dependencies) 172 | { 173 | project.VPMProvider.Refresh(); 174 | if (project.VPMProvider.GetPackage(item.Key, item.Value) == null) 175 | { 176 | IVRCPackage d = Repos.GetPackageWithVersionMatch(item.Key, item.Value); 177 | if (d != null) 178 | { 179 | list.Add(d.Id + " " + d.Version + "\n"); 180 | } 181 | } 182 | } 183 | 184 | return list; 185 | } 186 | 187 | return null; 188 | } 189 | 190 | public static void ForceRefresh () 191 | { 192 | MethodInfo method = typeof( UnityEditor.PackageManager.Client ).GetMethod( "Resolve", BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.DeclaredOnly ); 193 | if( method != null ) 194 | method.Invoke( null, null ); 195 | 196 | AssetDatabase.Refresh(); 197 | } 198 | 199 | } 200 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver/Resolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f872e3586f8b4f06bab3c9facd14f6e6 3 | timeCreated: 1659048476 -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver/ResolverWindow.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text; 3 | using System.Threading.Tasks; 4 | using UnityEditor; 5 | using UnityEditor.UIElements; 6 | using UnityEngine; 7 | using UnityEngine.UIElements; 8 | using VRC.PackageManagement.Core; 9 | using VRC.PackageManagement.Core.Types; 10 | using VRC.PackageManagement.Core.Types.Packages; 11 | using Version = VRC.PackageManagement.Core.Types.VPMVersion.Version; 12 | 13 | namespace VRC.PackageManagement.Resolver 14 | { 15 | public class ResolverWindow : EditorWindow 16 | { 17 | // VisualElements 18 | private static VisualElement _rootView; 19 | private static Button _refreshButton; 20 | private static Button _createButton; 21 | private static Button _resolveButton; 22 | private static Box _manifestInfo; 23 | private static Label _manifestLabel; 24 | private static bool _isUpdating; 25 | private static Color _colorPositive = Color.green; 26 | private static Color _colorNegative = new Color(1, 0.3f, 0.3f); 27 | 28 | 29 | [MenuItem("VRChat SDK/Utilities/Package Resolver")] 30 | public static void ShowWindow() 31 | { 32 | ResolverWindow wnd = GetWindow(); 33 | wnd.titleContent = new GUIContent("Package Resolver"); 34 | } 35 | 36 | public static void Refresh() 37 | { 38 | if (_rootView == null || string.IsNullOrWhiteSpace(Resolver.ProjectDir)) return; 39 | 40 | _manifestInfo.SetEnabled(!_isUpdating); 41 | _refreshButton.SetEnabled(!_isUpdating); 42 | _manifestLabel.text = (_isUpdating ? "Working ..." : "Required Packages"); 43 | _manifestInfo.Clear(); 44 | _manifestInfo.Add(_manifestLabel); 45 | 46 | bool needsResolve = VPMProjectManifest.ResolveIsNeeded(Resolver.ProjectDir); 47 | string resolveStatus = needsResolve ? "Please press \"Resolve\" to Download them." : "All of them are in the project."; 48 | 49 | // check for vpm dependencies 50 | if (!Resolver.VPMManifestExists()) 51 | { 52 | TextElement noManifestText = new TextElement(); 53 | noManifestText.text = "No VPM Manifest"; 54 | noManifestText.style.color = _colorNegative; 55 | _manifestInfo.Add(noManifestText); 56 | } 57 | else 58 | { 59 | var manifest = VPMProjectManifest.Load(Resolver.ProjectDir); 60 | var project = new UnityProject(Resolver.ProjectDir); 61 | 62 | // Here is where we detect if all dependencies are installed 63 | var allDependencies = (manifest.locked != null && manifest.locked.Count > 0) 64 | ? manifest.locked 65 | : manifest.dependencies; 66 | 67 | foreach (var pair in allDependencies) 68 | { 69 | var id = pair.Key; 70 | var version = pair.Value.version; 71 | IVRCPackage package = project.VPMProvider.GetPackage(id, version); 72 | _manifestInfo.Add(CreateDependencyRow(id, version, project, (package != null))); 73 | } 74 | 75 | } 76 | _resolveButton.SetEnabled(needsResolve); 77 | Resolver.ForceRefresh(); 78 | } 79 | 80 | /// 81 | /// Unity calls the CreateGUI method automatically when the window needs to display 82 | /// 83 | private void CreateGUI() 84 | { 85 | _rootView = rootVisualElement; 86 | _rootView.name = "root-view"; 87 | _rootView.styleSheets.Add((StyleSheet)Resources.Load("ResolverWindowStyle")); 88 | 89 | // Main Container 90 | var container = new Box() 91 | { 92 | name = "buttons" 93 | }; 94 | _rootView.Add(container); 95 | 96 | // Create Button 97 | if (!Resolver.VPMManifestExists()) 98 | { 99 | _createButton = new Button(Resolver.CreateManifest) 100 | { 101 | text = "Create", 102 | name = "create-button-base" 103 | }; 104 | container.Add(_createButton); 105 | } 106 | else 107 | { 108 | _resolveButton = new Button(Resolver.ResolveManifest) 109 | { 110 | text = "Resolve All", 111 | name = "resolve-button-base" 112 | }; 113 | container.Add(_resolveButton); 114 | } 115 | 116 | // Manifest Info 117 | _manifestInfo = new Box() 118 | { 119 | name = "manifest-info", 120 | }; 121 | _manifestLabel = (new Label("Required Packages") { name = "manifest-header" }); 122 | 123 | _rootView.Add(_manifestInfo); 124 | 125 | // Refresh Button 126 | var refreshBox = new Box(); 127 | _refreshButton = new Button(Refresh) 128 | { 129 | text = "Refresh", 130 | name = "refresh-button-base" 131 | }; 132 | refreshBox.Add(_refreshButton); 133 | _rootView.Add(refreshBox); 134 | 135 | Refresh(); 136 | } 137 | 138 | private static VisualElement CreateDependencyRow(string id, string version, UnityProject project, bool havePackage) 139 | { 140 | // Table 141 | 142 | VisualElement row = new Box() { name = "package-box" }; 143 | VisualElement column1 = new Box() { name = "package-box" }; 144 | VisualElement column2 = new Box() { name = "package-box" }; 145 | VisualElement column3 = new Box() { name = "package-box" }; 146 | VisualElement column4 = new Box() { name = "package-box" }; 147 | 148 | column1.style.minWidth = 200; 149 | column2.style.minWidth = 100; 150 | column3.style.minWidth = 100; 151 | column4.style.minWidth = 100; 152 | 153 | row.Add(column1); 154 | row.Add(column2); 155 | row.Add(column3); 156 | row.Add(column4); 157 | 158 | // Package Name + Status 159 | 160 | TextElement text = new TextElement { text = $"{id} {version} " }; 161 | 162 | column1.Add(text); 163 | 164 | if (!havePackage) 165 | { 166 | TextElement missingText = new TextElement { text = "MISSING" }; 167 | missingText.style.color = _colorNegative; 168 | missingText.style.display = (_isUpdating ? DisplayStyle.None : DisplayStyle.Flex); 169 | column2.Add(missingText); 170 | } 171 | 172 | // Version Popup 173 | 174 | var choices = new List(); 175 | foreach (string n in Resolver.GetAllVersionsOf(id)) 176 | { 177 | choices.Add(n); 178 | } 179 | 180 | var popupField = new PopupField(choices, 0); 181 | popupField.value = choices[0]; 182 | popupField.style.display = (_isUpdating ? DisplayStyle.None : DisplayStyle.Flex); 183 | 184 | column3.Add(popupField); 185 | 186 | // Button 187 | 188 | Button updateButton = new Button() { text = "Update" }; 189 | if (havePackage) 190 | RefreshUpdateButton(updateButton, version, choices[0]); 191 | else 192 | RefreshMissingButton(updateButton); 193 | 194 | updateButton.clicked += (() => 195 | { 196 | IVRCPackage package = Repos.GetPackageWithVersionMatch(id, popupField.value); 197 | 198 | // Check and warn on Dependencies if Updating or Downgrading 199 | if (Version.TryParse(version, out var currentVersion) && 200 | Version.TryParse(popupField.value, out var newVersion)) 201 | { 202 | Dictionary dependencies = new Dictionary(); 203 | StringBuilder dialogMsg = new StringBuilder(); 204 | List affectedPackages = Resolver.GetAffectedPackageList(package); 205 | for (int v = 0; v < affectedPackages.Count; v++) 206 | { 207 | dialogMsg.Append(affectedPackages[v]); 208 | } 209 | 210 | if (affectedPackages.Count > 1) 211 | { 212 | dialogMsg.Insert(0, "This will update multiple packages:\n\n"); 213 | dialogMsg.AppendLine("\nAre you sure?"); 214 | if (EditorUtility.DisplayDialog("Package Has Dependencies", dialogMsg.ToString(), "OK", "Cancel")) 215 | OnUpdatePackageClicked(project, package); 216 | } 217 | else 218 | { 219 | OnUpdatePackageClicked(project, package); 220 | } 221 | } 222 | 223 | }); 224 | column4.Add(updateButton); 225 | 226 | popupField.RegisterCallback>((evt) => 227 | { 228 | if (havePackage) 229 | RefreshUpdateButton(updateButton, version, evt.newValue); 230 | else 231 | RefreshMissingButton(updateButton); 232 | }); 233 | 234 | return row; 235 | } 236 | 237 | private static void RefreshUpdateButton(Button button, string currentVersion, string highestAvailableVersion) 238 | { 239 | if (currentVersion == highestAvailableVersion) 240 | { 241 | button.style.display = DisplayStyle.None; 242 | } 243 | else 244 | { 245 | button.style.display = (_isUpdating ? DisplayStyle.None : DisplayStyle.Flex); 246 | if (Version.TryParse(currentVersion, out var currentVersionObject) && 247 | Version.TryParse(highestAvailableVersion, out var highestAvailableVersionObject)) 248 | { 249 | if (currentVersionObject < highestAvailableVersionObject) 250 | { 251 | SetButtonColor(button, _colorPositive); 252 | button.text = "Update"; 253 | } 254 | else 255 | { 256 | SetButtonColor(button, _colorNegative); 257 | button.text = "Downgrade"; 258 | } 259 | } 260 | } 261 | } 262 | 263 | private static void RefreshMissingButton(Button button) 264 | { 265 | button.text = "Resolve"; 266 | SetButtonColor(button, Color.white); 267 | button.style.display = (_isUpdating ? DisplayStyle.None : DisplayStyle.Flex); 268 | } 269 | 270 | private static void SetButtonColor(Button button, Color color) 271 | { 272 | button.style.color = color; 273 | color.a = 0.25f; 274 | button.style.borderRightColor = 275 | button.style.borderLeftColor = 276 | button.style.borderTopColor = 277 | button.style.borderBottomColor = 278 | color; 279 | } 280 | 281 | private static async void OnUpdatePackageClicked(UnityProject project, IVRCPackage package) 282 | { 283 | _isUpdating = true; 284 | Refresh(); 285 | await Task.Delay(500); 286 | await Task.Run(() => project.UpdateVPMPackage(package)); 287 | _isUpdating = false; 288 | Refresh(); 289 | } 290 | 291 | } 292 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resolver/ResolverWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32d2636186ee0834fa1dc2287750dd32 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8700b619eebc09545b4aaf4f69a2bf79 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources/PackageMakerWindowStyle.uss: -------------------------------------------------------------------------------- 1 | .unity-box { 2 | margin: 10px; 3 | padding:10px; 4 | } 5 | 6 | .unity-box #description { 7 | margin: 10px 0 10px 0; 8 | white-space: normal; 9 | } 10 | 11 | #action-button { 12 | font-size: 20px; 13 | -unity-font-style: bold; 14 | padding: 10px; 15 | margin:10px; 16 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources/PackageMakerWindowStyle.uss.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8dfe8fb3b6d0f3e4693553ecc1cb23dd 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} 11 | disableValidation: 0 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources/ResolverWindowStyle.uss: -------------------------------------------------------------------------------- 1 | .unity-box { 2 | margin:2px; 3 | padding:10px; 4 | border-width:0px; 5 | } 6 | 7 | #package-box { 8 | margin:2px; 9 | padding:10px; 10 | border-width:0px; 11 | flex-direction:row; 12 | max-height:20px; 13 | min-height:20px; 14 | height:20px; 15 | padding-top:0px; 16 | padding-bottom:0px; 17 | margin-top:0px; 18 | margin-bottom:0px; 19 | align-items:center; 20 | } 21 | 22 | #manifest-header { 23 | font-size: 20px; 24 | margin-bottom: 10px; 25 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/Resources/ResolverWindowStyle.uss.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 346f7a547766ecb4396d15f585a15133 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} 11 | disableValidation: 0 12 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/com.vrchat.core.vpm-resolver.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.vrchat.core.vpm-resolver.Editor", 3 | "references": [], 4 | "includePlatforms": [ 5 | "Editor" 6 | ], 7 | "excludePlatforms": [], 8 | "allowUnsafeCode": false, 9 | "overrideReferences": false, 10 | "precompiledReferences": [], 11 | "autoReferenced": true, 12 | "defineConstraints": [], 13 | "versionDefines": [], 14 | "noEngineReferences": false 15 | } -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/Editor/com.vrchat.core.vpm-resolver.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1e8c2ba944807d4a9213e2de6930a0b 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/License.md: -------------------------------------------------------------------------------- 1 | # VRCHAT INC. 2 | ### VRCHAT DISTRO LICENSE FILE 3 | Version: February 24, 2022 4 | 5 | **SUMMARY OF TERMS:** Any materials subject to this Distro Asset License may be distributed by you, with or without modifications, on a non-commercial basis (i.e., at no charge), in accordance with the full terms of the Materials License Agreement. 6 | 7 | This Distro License File is a "License File" as defined in the VRChat Materials License Agreement, found at https://hello.vrchat.com/legal/sdk (or any successor link designated by VRChat) (as may be revised from time to time, the "Materials License Agreement"). 8 | 9 | This Distro License File applies to all the files in the Folder containing this Distro License File and those in all Child Folders within that Folder (except with respect to files in any Child Folder that contains a different License File) (such files, other than this Distro License File, the "Covered Files"). All capitalized terms used but not otherwise defined in this Distro License File have the meanings provided in the Materials License Agreement. 10 | 11 | This Distro License File only provides a summary of the terms applicable to the Covered Files. To understand your rights and obligations and the full set of terms that apply to use of the Covered Files, please see the relevant sections of the Materials License Agreement, including terms applicable to Distro Materials. -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/License.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7727f888edf4714448d5a0287deec6dd 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "com.vrchat.core.vpm-resolver", 3 | "displayName" : "VRChat Package Resolver Tool", 4 | "version" : "0.1.21", 5 | "unity" : "2019.4", 6 | "description" : "Tool to Download VPM Packages", 7 | "vrchatVersion" : "2022.2.2", 8 | "author" : { 9 | "name" : "VRChat", 10 | "email" : "developer@vrchat.com", 11 | "url" : "https://github.com/vrchat/packages" 12 | }, 13 | "url" : "", 14 | "dependencies" : { 15 | "com.unity.nuget.newtonsoft-json" : "3.0.2" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Packages/com.vrchat.core.vpm-resolver/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b02e2915ebf04e4ea94e503d73e7411 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34a7ab2ff89d7374c838be1595ab255b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Editor/jp.nukora.nukotween.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jp.nukora.nukotween.Editor", 3 | "references": [ 4 | "VRC.SDK3", 5 | "VRC.SDK3.Editor", 6 | "VRC.SDKBase", 7 | "VRC.SDKBase.Editor", 8 | "jp.nukora.nukotween" 9 | ], 10 | "includePlatforms": [], 11 | "excludePlatforms": [], 12 | "allowUnsafeCode": false, 13 | "autoReferenced": true, 14 | "overrideReferences": false, 15 | "precompiledReferences": [], 16 | "defineConstraints": [], 17 | "optionalUnityReferences": [] 18 | } -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Editor/jp.nukora.nukotween.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91b8c5937332ce545a91f7c00fbb1b54 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/README.md: -------------------------------------------------------------------------------- 1 | # jp.nukora.nukotween by nukora -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b00898d9bfffdb04c950a8f9b2851074 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59c78277a261bcf4c88ce60a0b6ba894 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime/NukoTweenEngine.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &8331268693988037538 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 8331268693988037536} 12 | - component: {fileID: 2378729331588477507} 13 | - component: {fileID: 8331268693988037539} 14 | m_Layer: 0 15 | m_Name: NukoTweenEngine 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &8331268693988037536 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 8331268693988037538} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: 0, y: 0, z: 0} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | --- !u!114 &2378729331588477507 36 | MonoBehaviour: 37 | m_ObjectHideFlags: 0 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 8331268693988037538} 42 | m_Enabled: 1 43 | m_EditorHideFlags: 0 44 | m_Script: {fileID: 11500000, guid: 519427e9a39c19c46b96e0b5fd3e0bd0, type: 3} 45 | m_Name: 46 | m_EditorClassIdentifier: 47 | serializationData: 48 | SerializedFormat: 2 49 | SerializedBytes: 50 | ReferencedUnityObjects: [] 51 | SerializedBytesString: 52 | Prefab: {fileID: 0} 53 | PrefabModificationsReferencedUnityObjects: [] 54 | PrefabModifications: [] 55 | SerializationNodes: 56 | - Name: EaseLinear 57 | Entry: 3 58 | Data: 0 59 | - Name: EaseInSine 60 | Entry: 3 61 | Data: 10 62 | - Name: EaseOutSine 63 | Entry: 3 64 | Data: 11 65 | - Name: EaseInOutSine 66 | Entry: 3 67 | Data: 12 68 | - Name: EaseInQuad 69 | Entry: 3 70 | Data: 20 71 | - Name: EaseOutQuad 72 | Entry: 3 73 | Data: 21 74 | - Name: EaseInOutQuad 75 | Entry: 3 76 | Data: 22 77 | - Name: EaseInCubic 78 | Entry: 3 79 | Data: 30 80 | - Name: EaseOutCubic 81 | Entry: 3 82 | Data: 31 83 | - Name: EaseInOutCubic 84 | Entry: 3 85 | Data: 32 86 | - Name: EaseInQuart 87 | Entry: 3 88 | Data: 40 89 | - Name: EaseOutQuart 90 | Entry: 3 91 | Data: 41 92 | - Name: EaseInOutQuart 93 | Entry: 3 94 | Data: 42 95 | - Name: EaseInQuint 96 | Entry: 3 97 | Data: 50 98 | - Name: EaseOutQuint 99 | Entry: 3 100 | Data: 51 101 | - Name: EaseInOutQuint 102 | Entry: 3 103 | Data: 52 104 | - Name: EaseInExpo 105 | Entry: 3 106 | Data: 60 107 | - Name: EaseOutExpo 108 | Entry: 3 109 | Data: 61 110 | - Name: EaseInOutExpo 111 | Entry: 3 112 | Data: 62 113 | - Name: EaseInCirc 114 | Entry: 3 115 | Data: 70 116 | - Name: EaseOutCirc 117 | Entry: 3 118 | Data: 71 119 | - Name: EaseInOutCirc 120 | Entry: 3 121 | Data: 72 122 | - Name: EaseInBack 123 | Entry: 3 124 | Data: 80 125 | - Name: EaseOutBack 126 | Entry: 3 127 | Data: 81 128 | - Name: EaseInOutBack 129 | Entry: 3 130 | Data: 82 131 | - Name: EaseInElastic 132 | Entry: 3 133 | Data: 90 134 | - Name: EaseOutElastic 135 | Entry: 3 136 | Data: 91 137 | - Name: EaseInOutElastic 138 | Entry: 3 139 | Data: 92 140 | - Name: EaseInBounce 141 | Entry: 3 142 | Data: 100 143 | - Name: EaseOutBounce 144 | Entry: 3 145 | Data: 101 146 | - Name: EaseInOutBounce 147 | Entry: 3 148 | Data: 102 149 | _udonSharpBackingUdonBehaviour: {fileID: 8331268693988037539} 150 | simultaneousSize: 128 151 | --- !u!114 &8331268693988037539 152 | MonoBehaviour: 153 | m_ObjectHideFlags: 0 154 | m_CorrespondingSourceObject: {fileID: 0} 155 | m_PrefabInstance: {fileID: 0} 156 | m_PrefabAsset: {fileID: 0} 157 | m_GameObject: {fileID: 8331268693988037538} 158 | m_Enabled: 1 159 | m_EditorHideFlags: 0 160 | m_Script: {fileID: 11500000, guid: 45115577ef41a5b4ca741ed302693907, type: 3} 161 | m_Name: 162 | m_EditorClassIdentifier: 163 | interactTextPlacement: {fileID: 0} 164 | interactText: Use 165 | interactTextGO: {fileID: 0} 166 | proximity: 2 167 | SynchronizePosition: 0 168 | AllowCollisionOwnershipTransfer: 0 169 | Reliable: 1 170 | _syncMethod: 3 171 | serializedProgramAsset: {fileID: 11400000, guid: 43a37df5863d8464ab41193d38388dfd, 172 | type: 2} 173 | programSource: {fileID: 11400000, guid: 174899382e65e514b8db6d8a7086d9b2, type: 2} 174 | serializedPublicVariablesBytesString: Ai8AAAAAATIAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAFQAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AAAAAAAYBAAAAAAAAACcBBAAAAHQAeQBwAGUAAWgAAABTAHkAcwB0AGUAbQAuAEMAbwBsAGwAZQBjAHQAaQBvAG4AcwAuAEcAZQBuAGUAcgBpAGMALgBMAGkAcwB0AGAAMQBbAFsAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4ALgBJAG4AdABlAHIAZgBhAGMAZQBzAC4ASQBVAGQAbwBuAFYAYQByAGkAYQBiAGwAZQAsACAAVgBSAEMALgBVAGQAbwBuAC4AQwBvAG0AbQBvAG4AXQBdACwAIABtAHMAYwBvAHIAbABpAGIAAQEJAAAAVgBhAHIAaQBhAGIAbABlAHMALwEAAAABaAAAAFMAeQBzAHQAZQBtAC4AQwBvAGwAbABlAGMAdABpAG8AbgBzAC4ARwBlAG4AZQByAGkAYwAuAEwAaQBzAHQAYAAxAFsAWwBWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAEkAbgB0AGUAcgBmAGEAYwBlAHMALgBJAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlACwAIABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgBdAF0ALAAgAG0AcwBjAG8AcgBsAGkAYgABAAAABgIAAAAAAAAAAi8CAAAAAUkAAABWAFIAQwAuAFUAZABvAG4ALgBDAG8AbQBtAG8AbgAuAFUAZABvAG4AVgBhAHIAaQBhAGIAbABlAGAAMQBbAFsAUwB5AHMAdABlAG0ALgBJAG4AdAAzADIALAAgAG0AcwBjAG8AcgBsAGkAYgBdAF0ALAAgAFYAUgBDAC4AVQBkAG8AbgAuAEMAbwBtAG0AbwBuAAIAAAAGAgAAAAAAAAAnAQQAAAB0AHkAcABlAAEXAAAAUwB5AHMAdABlAG0ALgBTAHQAcgBpAG4AZwAsACAAbQBzAGMAbwByAGwAaQBiACcBCgAAAFMAeQBtAGIAbwBsAE4AYQBtAGUAARAAAABzAGkAbQB1AGwAdABhAG4AZQBvAHUAcwBTAGkAegBlACcBBAAAAHQAeQBwAGUAARYAAABTAHkAcwB0AGUAbQAuAEkAbgB0ADMAMgAsACAAbQBzAGMAbwByAGwAaQBiABcBBQAAAFYAYQBsAHUAZQCAAAAABwUCMAIAAAADAAAABgIAAAAAAAAAJwEEAAAAdAB5AHAAZQABFwAAAFMAeQBzAHQAZQBtAC4AUwB0AHIAaQBuAGcALAAgAG0AcwBjAG8AcgBsAGkAYgAnAQoAAABTAHkAbQBiAG8AbABOAGEAbQBlAAEfAAAAXwBfAF8AVQBkAG8AbgBTAGgAYQByAHAAQgBlAGgAYQB2AGkAbwB1AHIAVgBlAHIAcwBpAG8AbgBfAF8AXwAnAQQAAAB0AHkAcABlAAEWAAAAUwB5AHMAdABlAG0ALgBJAG4AdAAzADIALAAgAG0AcwBjAG8AcgBsAGkAYgAXAQUAAABWAGEAbAB1AGUAAgAAAAcFBwUHBQ== 175 | publicVariablesUnityEngineObjects: [] 176 | publicVariablesSerializationDataFormat: 0 177 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime/NukoTweenEngine.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb6550c2d44cafc4dac6ad31d640da41 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1083c6c82cff43543848d09c42a9cae8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime/Scripts/NukoTweenEngine Udon C# Program Asset.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 174899382e65e514b8db6d8a7086d9b2 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime/Scripts/NukoTweenEngine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 519427e9a39c19c46b96e0b5fd3e0bd0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime/jp.nukora.nukotween.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jp.nukora.nukotween", 3 | "references": [ 4 | "VRC.SDK3", 5 | "VRC.SDKBase", 6 | "UdonSharp.Runtime", 7 | "Unity.TextMeshPro" 8 | ], 9 | "includePlatforms": [], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": false, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [], 16 | "versionDefines": [], 17 | "noEngineReferences": false 18 | } -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime/jp.nukora.nukotween.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b136db870320c83409a3b837599c1d5c 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime/jp.nukora.nukotween.usasmdef.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 5136146375e9a0a498a72a0091b40cc1, type: 3} 13 | m_Name: jp.nukora.nukotween.usasmdef 14 | m_EditorClassIdentifier: 15 | sourceAssembly: {fileID: 5897886265953266890, guid: b136db870320c83409a3b837599c1d5c, 16 | type: 3} 17 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/Runtime/jp.nukora.nukotween.usasmdef.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 323b30b79d7022c42b284ce90b8d4a34 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jp.nukora.nukotween", 3 | "displayName": "NukoTween", 4 | "version": "1.0.0", 5 | "description": "Udon上で動くTweenアニメーションエンジン", 6 | "gitDependencies": {}, 7 | "vpmDependencies": { 8 | "com.vrchat.udonsharp": "1.1.9" 9 | }, 10 | "author": { 11 | "name": "nukora", 12 | "url": "https://github.com/nukora/NukoTween" 13 | }, 14 | "legacyFolders": { 15 | "Assets\\NukoTween": "" 16 | }, 17 | "legacyFiles": {} 18 | } -------------------------------------------------------------------------------- /Packages/jp.nukora.nukotween/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0172f770f2731bf41af26aee60d25672 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.sprite": "1.0.0", 4 | "com.unity.2d.tilemap": "1.0.0", 5 | "com.unity.ads": "3.7.5", 6 | "com.unity.analytics": "3.6.11", 7 | "com.unity.cinemachine": "2.8.0", 8 | "com.unity.collab-proxy": "1.10.2", 9 | "com.unity.ide.rider": "1.2.1", 10 | "com.unity.ide.visualstudio": "2.0.11", 11 | "com.unity.ide.vscode": "1.2.4", 12 | "com.unity.multiplayer-hlapi": "1.0.8", 13 | "com.unity.postprocessing": "3.1.1", 14 | "com.unity.purchasing": "3.2.2", 15 | "com.unity.test-framework": "1.1.29", 16 | "com.unity.textmeshpro": "2.1.6", 17 | "com.unity.timeline": "1.2.18", 18 | "com.unity.ugui": "1.0.0", 19 | "com.unity.xr.legacyinputhelpers": "2.1.8", 20 | "com.unity.xr.oculus.standalone": "2.38.4", 21 | "com.unity.xr.openvr.standalone": "2.0.5", 22 | "com.unity.modules.ai": "1.0.0", 23 | "com.unity.modules.androidjni": "1.0.0", 24 | "com.unity.modules.animation": "1.0.0", 25 | "com.unity.modules.assetbundle": "1.0.0", 26 | "com.unity.modules.audio": "1.0.0", 27 | "com.unity.modules.cloth": "1.0.0", 28 | "com.unity.modules.director": "1.0.0", 29 | "com.unity.modules.imageconversion": "1.0.0", 30 | "com.unity.modules.imgui": "1.0.0", 31 | "com.unity.modules.jsonserialize": "1.0.0", 32 | "com.unity.modules.particlesystem": "1.0.0", 33 | "com.unity.modules.physics": "1.0.0", 34 | "com.unity.modules.physics2d": "1.0.0", 35 | "com.unity.modules.screencapture": "1.0.0", 36 | "com.unity.modules.terrain": "1.0.0", 37 | "com.unity.modules.terrainphysics": "1.0.0", 38 | "com.unity.modules.tilemap": "1.0.0", 39 | "com.unity.modules.ui": "1.0.0", 40 | "com.unity.modules.uielements": "1.0.0", 41 | "com.unity.modules.umbra": "1.0.0", 42 | "com.unity.modules.unityanalytics": "1.0.0", 43 | "com.unity.modules.unitywebrequest": "1.0.0", 44 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 45 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 46 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 47 | "com.unity.modules.unitywebrequestwww": "1.0.0", 48 | "com.unity.modules.vehicles": "1.0.0", 49 | "com.unity.modules.video": "1.0.0", 50 | "com.unity.modules.vr": "1.0.0", 51 | "com.unity.modules.wind": "1.0.0", 52 | "com.unity.modules.xr": "1.0.0" 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.sprite": { 4 | "version": "1.0.0", 5 | "depth": 0, 6 | "source": "builtin", 7 | "dependencies": {} 8 | }, 9 | "com.unity.2d.tilemap": { 10 | "version": "1.0.0", 11 | "depth": 0, 12 | "source": "builtin", 13 | "dependencies": {} 14 | }, 15 | "com.unity.ads": { 16 | "version": "3.7.5", 17 | "depth": 0, 18 | "source": "registry", 19 | "dependencies": { 20 | "com.unity.ugui": "1.0.0" 21 | }, 22 | "url": "https://packages.unity.com" 23 | }, 24 | "com.unity.analytics": { 25 | "version": "3.6.11", 26 | "depth": 0, 27 | "source": "registry", 28 | "dependencies": { 29 | "com.unity.ugui": "1.0.0" 30 | }, 31 | "url": "https://packages.unity.com" 32 | }, 33 | "com.unity.burst": { 34 | "version": "1.4.11", 35 | "depth": 1, 36 | "source": "registry", 37 | "dependencies": { 38 | "com.unity.mathematics": "1.2.1" 39 | }, 40 | "url": "https://packages.unity.com" 41 | }, 42 | "com.unity.cinemachine": { 43 | "version": "2.8.0", 44 | "depth": 0, 45 | "source": "registry", 46 | "dependencies": {}, 47 | "url": "https://packages.unity.com" 48 | }, 49 | "com.unity.collab-proxy": { 50 | "version": "1.10.2", 51 | "depth": 0, 52 | "source": "registry", 53 | "dependencies": {}, 54 | "url": "https://packages.unity.com" 55 | }, 56 | "com.unity.ext.nunit": { 57 | "version": "1.0.6", 58 | "depth": 1, 59 | "source": "registry", 60 | "dependencies": {}, 61 | "url": "https://packages.unity.com" 62 | }, 63 | "com.unity.ide.rider": { 64 | "version": "1.2.1", 65 | "depth": 0, 66 | "source": "registry", 67 | "dependencies": { 68 | "com.unity.test-framework": "1.1.1" 69 | }, 70 | "url": "https://packages.unity.com" 71 | }, 72 | "com.unity.ide.visualstudio": { 73 | "version": "2.0.11", 74 | "depth": 0, 75 | "source": "registry", 76 | "dependencies": { 77 | "com.unity.test-framework": "1.1.9" 78 | }, 79 | "url": "https://packages.unity.com" 80 | }, 81 | "com.unity.ide.vscode": { 82 | "version": "1.2.4", 83 | "depth": 0, 84 | "source": "registry", 85 | "dependencies": {}, 86 | "url": "https://packages.unity.com" 87 | }, 88 | "com.unity.mathematics": { 89 | "version": "1.2.5", 90 | "depth": 1, 91 | "source": "registry", 92 | "dependencies": {}, 93 | "url": "https://packages.unity.com" 94 | }, 95 | "com.unity.multiplayer-hlapi": { 96 | "version": "1.0.8", 97 | "depth": 0, 98 | "source": "registry", 99 | "dependencies": { 100 | "nuget.mono-cecil": "0.1.6-preview" 101 | }, 102 | "url": "https://packages.unity.com" 103 | }, 104 | "com.unity.nuget.newtonsoft-json": { 105 | "version": "3.0.2", 106 | "depth": 1, 107 | "source": "registry", 108 | "dependencies": {}, 109 | "url": "https://packages.unity.com" 110 | }, 111 | "com.unity.postprocessing": { 112 | "version": "3.1.1", 113 | "depth": 0, 114 | "source": "registry", 115 | "dependencies": { 116 | "com.unity.modules.physics": "1.0.0" 117 | }, 118 | "url": "https://packages.unity.com" 119 | }, 120 | "com.unity.purchasing": { 121 | "version": "3.2.2", 122 | "depth": 0, 123 | "source": "registry", 124 | "dependencies": { 125 | "com.unity.ugui": "1.0.0", 126 | "com.unity.modules.unityanalytics": "1.0.0", 127 | "com.unity.modules.unitywebrequest": "1.0.0", 128 | "com.unity.modules.jsonserialize": "1.0.0", 129 | "com.unity.modules.androidjni": "1.0.0" 130 | }, 131 | "url": "https://packages.unity.com" 132 | }, 133 | "com.unity.test-framework": { 134 | "version": "1.1.29", 135 | "depth": 0, 136 | "source": "registry", 137 | "dependencies": { 138 | "com.unity.ext.nunit": "1.0.6", 139 | "com.unity.modules.imgui": "1.0.0", 140 | "com.unity.modules.jsonserialize": "1.0.0" 141 | }, 142 | "url": "https://packages.unity.com" 143 | }, 144 | "com.unity.textmeshpro": { 145 | "version": "2.1.6", 146 | "depth": 0, 147 | "source": "registry", 148 | "dependencies": { 149 | "com.unity.ugui": "1.0.0" 150 | }, 151 | "url": "https://packages.unity.com" 152 | }, 153 | "com.unity.timeline": { 154 | "version": "1.2.18", 155 | "depth": 0, 156 | "source": "registry", 157 | "dependencies": { 158 | "com.unity.modules.director": "1.0.0", 159 | "com.unity.modules.animation": "1.0.0", 160 | "com.unity.modules.audio": "1.0.0", 161 | "com.unity.modules.particlesystem": "1.0.0" 162 | }, 163 | "url": "https://packages.unity.com" 164 | }, 165 | "com.unity.ugui": { 166 | "version": "1.0.0", 167 | "depth": 0, 168 | "source": "builtin", 169 | "dependencies": { 170 | "com.unity.modules.ui": "1.0.0", 171 | "com.unity.modules.imgui": "1.0.0" 172 | } 173 | }, 174 | "com.unity.xr.legacyinputhelpers": { 175 | "version": "2.1.8", 176 | "depth": 0, 177 | "source": "registry", 178 | "dependencies": { 179 | "com.unity.modules.vr": "1.0.0", 180 | "com.unity.modules.xr": "1.0.0" 181 | }, 182 | "url": "https://packages.unity.com" 183 | }, 184 | "com.unity.xr.oculus.standalone": { 185 | "version": "2.38.4", 186 | "depth": 0, 187 | "source": "registry", 188 | "dependencies": {}, 189 | "url": "https://packages.unity.com" 190 | }, 191 | "com.unity.xr.openvr.standalone": { 192 | "version": "2.0.5", 193 | "depth": 0, 194 | "source": "registry", 195 | "dependencies": {}, 196 | "url": "https://packages.unity.com" 197 | }, 198 | "com.vrchat.base": { 199 | "version": "file:com.vrchat.base", 200 | "depth": 0, 201 | "source": "embedded", 202 | "dependencies": { 203 | "com.unity.burst": "1.4.11", 204 | "com.unity.mathematics": "1.2.5", 205 | "com.unity.nuget.newtonsoft-json": "3.0.2" 206 | } 207 | }, 208 | "com.vrchat.core.vpm-resolver": { 209 | "version": "file:com.vrchat.core.vpm-resolver", 210 | "depth": 0, 211 | "source": "embedded", 212 | "dependencies": { 213 | "com.unity.nuget.newtonsoft-json": "3.0.2" 214 | } 215 | }, 216 | "com.vrchat.udonsharp": { 217 | "version": "file:com.vrchat.udonsharp", 218 | "depth": 0, 219 | "source": "embedded", 220 | "dependencies": {} 221 | }, 222 | "com.vrchat.worlds": { 223 | "version": "file:com.vrchat.worlds", 224 | "depth": 0, 225 | "source": "embedded", 226 | "dependencies": { 227 | "com.unity.cinemachine": "2.8.0", 228 | "com.unity.postprocessing": "3.1.1", 229 | "com.unity.textmeshpro": "2.1.6" 230 | } 231 | }, 232 | "jp.nukora.nukotween": { 233 | "version": "file:jp.nukora.nukotween", 234 | "depth": 0, 235 | "source": "embedded", 236 | "dependencies": {} 237 | }, 238 | "nuget.mono-cecil": { 239 | "version": "0.1.6-preview", 240 | "depth": 1, 241 | "source": "registry", 242 | "dependencies": {}, 243 | "url": "https://packages.unity.com" 244 | }, 245 | "com.unity.modules.ai": { 246 | "version": "1.0.0", 247 | "depth": 0, 248 | "source": "builtin", 249 | "dependencies": {} 250 | }, 251 | "com.unity.modules.androidjni": { 252 | "version": "1.0.0", 253 | "depth": 0, 254 | "source": "builtin", 255 | "dependencies": {} 256 | }, 257 | "com.unity.modules.animation": { 258 | "version": "1.0.0", 259 | "depth": 0, 260 | "source": "builtin", 261 | "dependencies": {} 262 | }, 263 | "com.unity.modules.assetbundle": { 264 | "version": "1.0.0", 265 | "depth": 0, 266 | "source": "builtin", 267 | "dependencies": {} 268 | }, 269 | "com.unity.modules.audio": { 270 | "version": "1.0.0", 271 | "depth": 0, 272 | "source": "builtin", 273 | "dependencies": {} 274 | }, 275 | "com.unity.modules.cloth": { 276 | "version": "1.0.0", 277 | "depth": 0, 278 | "source": "builtin", 279 | "dependencies": { 280 | "com.unity.modules.physics": "1.0.0" 281 | } 282 | }, 283 | "com.unity.modules.director": { 284 | "version": "1.0.0", 285 | "depth": 0, 286 | "source": "builtin", 287 | "dependencies": { 288 | "com.unity.modules.audio": "1.0.0", 289 | "com.unity.modules.animation": "1.0.0" 290 | } 291 | }, 292 | "com.unity.modules.imageconversion": { 293 | "version": "1.0.0", 294 | "depth": 0, 295 | "source": "builtin", 296 | "dependencies": {} 297 | }, 298 | "com.unity.modules.imgui": { 299 | "version": "1.0.0", 300 | "depth": 0, 301 | "source": "builtin", 302 | "dependencies": {} 303 | }, 304 | "com.unity.modules.jsonserialize": { 305 | "version": "1.0.0", 306 | "depth": 0, 307 | "source": "builtin", 308 | "dependencies": {} 309 | }, 310 | "com.unity.modules.particlesystem": { 311 | "version": "1.0.0", 312 | "depth": 0, 313 | "source": "builtin", 314 | "dependencies": {} 315 | }, 316 | "com.unity.modules.physics": { 317 | "version": "1.0.0", 318 | "depth": 0, 319 | "source": "builtin", 320 | "dependencies": {} 321 | }, 322 | "com.unity.modules.physics2d": { 323 | "version": "1.0.0", 324 | "depth": 0, 325 | "source": "builtin", 326 | "dependencies": {} 327 | }, 328 | "com.unity.modules.screencapture": { 329 | "version": "1.0.0", 330 | "depth": 0, 331 | "source": "builtin", 332 | "dependencies": { 333 | "com.unity.modules.imageconversion": "1.0.0" 334 | } 335 | }, 336 | "com.unity.modules.subsystems": { 337 | "version": "1.0.0", 338 | "depth": 1, 339 | "source": "builtin", 340 | "dependencies": { 341 | "com.unity.modules.jsonserialize": "1.0.0" 342 | } 343 | }, 344 | "com.unity.modules.terrain": { 345 | "version": "1.0.0", 346 | "depth": 0, 347 | "source": "builtin", 348 | "dependencies": {} 349 | }, 350 | "com.unity.modules.terrainphysics": { 351 | "version": "1.0.0", 352 | "depth": 0, 353 | "source": "builtin", 354 | "dependencies": { 355 | "com.unity.modules.physics": "1.0.0", 356 | "com.unity.modules.terrain": "1.0.0" 357 | } 358 | }, 359 | "com.unity.modules.tilemap": { 360 | "version": "1.0.0", 361 | "depth": 0, 362 | "source": "builtin", 363 | "dependencies": { 364 | "com.unity.modules.physics2d": "1.0.0" 365 | } 366 | }, 367 | "com.unity.modules.ui": { 368 | "version": "1.0.0", 369 | "depth": 0, 370 | "source": "builtin", 371 | "dependencies": {} 372 | }, 373 | "com.unity.modules.uielements": { 374 | "version": "1.0.0", 375 | "depth": 0, 376 | "source": "builtin", 377 | "dependencies": { 378 | "com.unity.modules.imgui": "1.0.0", 379 | "com.unity.modules.jsonserialize": "1.0.0" 380 | } 381 | }, 382 | "com.unity.modules.umbra": { 383 | "version": "1.0.0", 384 | "depth": 0, 385 | "source": "builtin", 386 | "dependencies": {} 387 | }, 388 | "com.unity.modules.unityanalytics": { 389 | "version": "1.0.0", 390 | "depth": 0, 391 | "source": "builtin", 392 | "dependencies": { 393 | "com.unity.modules.unitywebrequest": "1.0.0", 394 | "com.unity.modules.jsonserialize": "1.0.0" 395 | } 396 | }, 397 | "com.unity.modules.unitywebrequest": { 398 | "version": "1.0.0", 399 | "depth": 0, 400 | "source": "builtin", 401 | "dependencies": {} 402 | }, 403 | "com.unity.modules.unitywebrequestassetbundle": { 404 | "version": "1.0.0", 405 | "depth": 0, 406 | "source": "builtin", 407 | "dependencies": { 408 | "com.unity.modules.assetbundle": "1.0.0", 409 | "com.unity.modules.unitywebrequest": "1.0.0" 410 | } 411 | }, 412 | "com.unity.modules.unitywebrequestaudio": { 413 | "version": "1.0.0", 414 | "depth": 0, 415 | "source": "builtin", 416 | "dependencies": { 417 | "com.unity.modules.unitywebrequest": "1.0.0", 418 | "com.unity.modules.audio": "1.0.0" 419 | } 420 | }, 421 | "com.unity.modules.unitywebrequesttexture": { 422 | "version": "1.0.0", 423 | "depth": 0, 424 | "source": "builtin", 425 | "dependencies": { 426 | "com.unity.modules.unitywebrequest": "1.0.0", 427 | "com.unity.modules.imageconversion": "1.0.0" 428 | } 429 | }, 430 | "com.unity.modules.unitywebrequestwww": { 431 | "version": "1.0.0", 432 | "depth": 0, 433 | "source": "builtin", 434 | "dependencies": { 435 | "com.unity.modules.unitywebrequest": "1.0.0", 436 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 437 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 438 | "com.unity.modules.audio": "1.0.0", 439 | "com.unity.modules.assetbundle": "1.0.0", 440 | "com.unity.modules.imageconversion": "1.0.0" 441 | } 442 | }, 443 | "com.unity.modules.vehicles": { 444 | "version": "1.0.0", 445 | "depth": 0, 446 | "source": "builtin", 447 | "dependencies": { 448 | "com.unity.modules.physics": "1.0.0" 449 | } 450 | }, 451 | "com.unity.modules.video": { 452 | "version": "1.0.0", 453 | "depth": 0, 454 | "source": "builtin", 455 | "dependencies": { 456 | "com.unity.modules.audio": "1.0.0", 457 | "com.unity.modules.ui": "1.0.0", 458 | "com.unity.modules.unitywebrequest": "1.0.0" 459 | } 460 | }, 461 | "com.unity.modules.vr": { 462 | "version": "1.0.0", 463 | "depth": 0, 464 | "source": "builtin", 465 | "dependencies": { 466 | "com.unity.modules.jsonserialize": "1.0.0", 467 | "com.unity.modules.physics": "1.0.0", 468 | "com.unity.modules.xr": "1.0.0" 469 | } 470 | }, 471 | "com.unity.modules.wind": { 472 | "version": "1.0.0", 473 | "depth": 0, 474 | "source": "builtin", 475 | "dependencies": {} 476 | }, 477 | "com.unity.modules.xr": { 478 | "version": "1.0.0", 479 | "depth": 0, 480 | "source": "builtin", 481 | "dependencies": { 482 | "com.unity.modules.physics": "1.0.0", 483 | "com.unity.modules.jsonserialize": "1.0.0", 484 | "com.unity.modules.subsystems": "1.0.0" 485 | } 486 | } 487 | } 488 | } 489 | -------------------------------------------------------------------------------- /Packages/vpm-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.vrchat.core.vpm-resolver": { 4 | "version": "0.1.21" 5 | }, 6 | "com.vrchat.worlds": { 7 | "version": "3.2.3" 8 | }, 9 | "com.vrchat.udonsharp": { 10 | "version": "1.1.9" 11 | } 12 | }, 13 | "locked": { 14 | "com.vrchat.core.vpm-resolver": { 15 | "version": "0.1.21", 16 | "dependencies": {} 17 | }, 18 | "com.vrchat.worlds": { 19 | "version": "3.2.3", 20 | "dependencies": { 21 | "com.vrchat.base": "3.2.3" 22 | } 23 | }, 24 | "com.vrchat.base": { 25 | "version": "3.2.3", 26 | "dependencies": {} 27 | }, 28 | "com.vrchat.udonsharp": { 29 | "version": "1.1.9", 30 | "dependencies": { 31 | "com.vrchat.worlds": "^3.1.x" 32 | } 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NukoTween 2 | 3 | NukoTweenはUdonで実装されたTweenアニメーションエンジンです。VRChatで使用する事を目的としています。 4 | 5 | ## 導入方法 6 | 7 | ### 前提条件 8 | VRChat Creator Companion (VCC)が導入されている事が前提となります。 9 | 10 | また、以下のパッケージを追加する必要があります。 11 | - UdonSharp 12 | 13 | ### インストール 14 | 1. [NukoTween導入ページ](https://nukora.github.io/NukoTween/)にアクセスし、Add to VCCボタンを押下します。 15 | 2. VCCが起動しNukoTweenリポジトリの追加確認画面が表示されますので、画面に従って追加してください。 16 | 3. NukoTweenを使用したいプロジェクトをVCCで探し、Manage Projectボタンを押下します。 17 | 4. パッケージ一覧からNukoTweenを追加してください。 18 | 19 | ※2回目以降は手順1と2は省略できます。 20 | 21 | ※VCC環境以外では[NukoTween v0.0.8のリリースページ](https://github.com/nukora/NukoTween/releases/tag/v0.0.8)から旧バージョンのunitypackageをダウンロードしてください。ただし、こちらは今後アップデートされません。 22 | 23 | 24 | ### 使用方法 25 | 1. Packages/NukoTween/Runtimeディレクトリの中にあるNukoTweenEngineプレハブをヒエラルキーに配置します。 26 | 2. ヒエラルキー上にTweenさせたいオブジェクトを作成します。 27 | 3. 作成したオブジェクトにUdonBehaviorをアタッチし、以下のようなスクリプトを書きます。 28 | ```C# 29 | using UdonSharp; 30 | using UnityEngine; 31 | using VRC.SDKBase; 32 | using VRC.Udon; 33 | 34 | public class TweenCube : UdonSharpBehaviour 35 | { 36 | public NukoTween.NukoTweenEngine tween; 37 | 38 | public override void Interact() 39 | { 40 | tween.LocalMoveTo(gameObject, new Vector3(1f, 0.5f, 0f), 1f, 0f, tween.EaseInOutCubic, false); 41 | } 42 | } 43 | ``` 44 | 4. インスペクターのtween欄にヒエラルキー上のNukoTweenEngineをアタッチします。 45 | 5. シーン再生後Trigger Interactボタンを押下し、アニメーションが再生される事を確認します。 46 | 47 | ## メソッド一覧 48 | 49 | 全ての機能は`NukoTweenEngine`クラスのインスタンスメソッドとして実装されています。 50 | 引数には以下の値を設定します。 51 | - `target` 操作する対象 52 | - `to` 操作後の状態 53 | - `duration` 操作にかける時間(秒) 54 | - `delay` 操作の開始を遅らせる時間(秒) 55 | - `easeId` 使用する[イージング関数](#イージング関数) 56 | - `relative` 現在の状態から相対的に変化させるかどうか 57 | 58 | ### Transform 59 | #### `LocalMoveTo` 60 | ```C# 61 | LocalMoveTo(GameObject target, Vector3 to, float duration, float delay, int easeId, bool relative) 62 | ``` 63 | ターゲットのLocalPositionを指定した位置に変更します。 64 | 65 | #### `MoveTo` 66 | ```C# 67 | MoveTo(GameObject target, Vector3 to, float duration, float delay, int easeId, bool relative) 68 | ``` 69 | ターゲットのPositionを指定した位置に変更します。 70 | 71 | #### `LocalScaleTo` 72 | ```C# 73 | LocalScaleTo(GameObject target, Vector3 to, float duration, float delay, int easeId, bool relative) 74 | ``` 75 | ターゲットのLocalScaleを指定した大きさに変更します。 76 | 77 | #### `LocalRotateTo` 78 | ```C# 79 | LocalRotateTo(GameObject target, Vector3 to, float duration, float delay, int easeId, bool relative) 80 | ``` 81 | ターゲットのLocalRotateを指定した角度に変更します。 82 | 角度はオイラー角で指定します。 83 | 84 | #### `LocalRotateQuaternionTo` 85 | ```C# 86 | LocalRotateQuaternionTo(GameObject target, Quaternion to, float duration, float delay, int easeId, bool relative) 87 | ``` 88 | ターゲットのLocalRotateを指定した角度に変更します。 89 | 角度はクォータニオンで指定します。 90 | 91 | #### `RotateTo` 92 | ```C# 93 | RotateTo(GameObject target, Vector3 to, float duration, float delay, int easeId, bool relative) 94 | ``` 95 | ターゲットのRotateを指定した角度に変更します。 96 | 角度はオイラー角で指定します。 97 | 98 | #### `RotateQuaternionTo` 99 | ```C# 100 | RotateQuaternionTo(GameObject target, Quaternion to, float duration, float delay, int easeId, bool relative) 101 | ``` 102 | ターゲットのRotateを指定した角度に変更します。 103 | 角度はクォータニオンで指定します。 104 | 105 | ### RectTransform 106 | #### `AnchorPosTo` 107 | ```C# 108 | AnchorPosTo(GameObject target, Vector3 to, float duration, float delay, int easeId, bool relative) 109 | ``` 110 | ターゲットのAnchoredPositionを指定した位置に変更します。 111 | 112 | ### Graphic 113 | #### `GraphicColorTo` 114 | ```C# 115 | GraphicColorTo(Graphic target, Color to, float duration, float delay, int easeId) 116 | ``` 117 | ターゲットのColorを指定した色に変更します。 118 | 119 | #### `GraphicFadeTo` 120 | ```C# 121 | GraphicFadeTo(Graphic target, float to, float duration, float delay, int easeId) 122 | ``` 123 | ターゲットのColorの透明度を指定した値に変更します。 124 | 125 | ### Image 126 | #### `FillAmountTo` 127 | ```C# 128 | FillAmountTo(Image target, float to, float duration, float delay, int easeId) 129 | ``` 130 | ターゲットのFillAmountを指定した値に変更します。 131 | 132 | ### Text 133 | #### `TextTo` 134 | ```C# 135 | TextTo(Text target, string to, float duration, float delay, int easeId) 136 | ``` 137 | ターゲットのTextを操作し、文字送りアニメーションを行います。 138 | 139 | ### TextMeshPro 140 | #### `TMPTextTo` 141 | ```C# 142 | TMPTextTo(TextMeshProUGUI target, string to, float duration, float delay, int easeId) 143 | ``` 144 | ターゲットのTextを操作し、文字送りアニメーションを行います。 145 | 146 | ### AudioSource 147 | #### `AudioFadeTo` 148 | ```C# 149 | AudioFadeTo(AudioSource target, float to, float duration, float delay, int easeId) 150 | ``` 151 | ターゲットのVolumeを指定した音量に変更します。 152 | 153 | ### Material 154 | #### `MaterialColorTo` 155 | ```C# 156 | MaterialColorTo(Material target, string propertyName, Color to, float duration, float delay, int easeId) 157 | ``` 158 | マテリアルのColor型のプロパティを指定した色に変更します。 159 | 160 | #### `MaterialFadeTo` 161 | ```C# 162 | MaterialFadeTo(Material target, string propertyName, float to, float duration, float delay, int easeId) 163 | ``` 164 | マテリアルのColor型のプロパティの透明度を指定した値に変更します。 165 | 166 | #### `MaterialVectorTo` 167 | ```C# 168 | MaterialVectorTo(Material target, string propertyName, Vector4 to, float duration, float delay, int easeId) 169 | ``` 170 | マテリアルのVector型のプロパティを指定した値に変更します。 171 | 172 | #### `MaterialFloatTo` 173 | ```C# 174 | MaterialFloatTo(Material target, string propertyName, float to, float duration, float delay, int easeId) 175 | ``` 176 | マテリアルのFloat型のプロパティを指定した値に変更します。 177 | 178 | #### `MaterialTexOffsetTo` 179 | ```C# 180 | MaterialTexOffsetTo(Material target, string propertyName, Vector2 to, float duration, float delay, int easeId) 181 | ``` 182 | マテリアルのテクスチャ型のプロパティのOffsetを指定した値に変更します。 183 | 184 | #### `MaterialTexTilingTo` 185 | ```C# 186 | MaterialTexTilingTo(Material target, string propertyName, Vector2 to, float duration, float delay, int easeId) 187 | ``` 188 | マテリアルのテクスチャ型のプロパティのTilingを指定した値に変更します。 189 | 190 | ### Misc 191 | #### `DelayedSetActive` 192 | ```C# 193 | DelayedSetActive(GameObject target, bool active, float delay) 194 | ``` 195 | 指定した時間後にGameObjectのSetActiveを変更します。 196 | 197 | #### `DelayedCall` 198 | ```C# 199 | DelayedCall(UdonSharpBehaviour target, string customEventName, float delay) 200 | ``` 201 | 指定した時間後にSendCustomEventを実行します。 202 | 203 | ### Control Mathods 204 | #### `Complete` 205 | ```C# 206 | Complete(int tweenId) 207 | ``` 208 | 動作中のtweenを即座に完了状態にします。 209 | 210 | #### `CompleteAll` 211 | ```C# 212 | CompleteAll() 213 | ``` 214 | 全ての動作中のtweenを完了状態にします。 215 | 216 | #### `Kill` 217 | ```C# 218 | Kill(int tweenId) 219 | ``` 220 | 動作中のtweenを現在の状態で中止します。 221 | 222 | #### `KillAll` 223 | ```C# 224 | KillAll() 225 | ``` 226 | 全ての動作中のtweenを現在の状態で中止します。 227 | 228 | ### Loop 229 | 登録したtweenがループするように設定します。 230 | loopsにはループ回数を指定し、-1を渡すと無限ループになります。 231 | 232 | #### `LoopRestart` 233 | ```C# 234 | LoopRestart(int tweenId, int loops) 235 | ``` 236 | ループする際、前回の始点に値を戻してからアニメーションが再実行されます。 237 | 238 | #### `LoopReverse` 239 | ```C# 240 | LoopReverse(int tweenId, int loops) 241 | ``` 242 | ループする際、前回の終点を始点として、前回の始点へ戻るようなアニメーションを繰り返します。 243 | 244 | #### `LoopIncremental` 245 | ```C# 246 | LoopIncremental(int tweenId, int loops) 247 | ``` 248 | ループする際、前回の終点を始点として、前回と同じアニメーションを実行します。 249 | 250 | ## イージング関数 251 | 252 | 以下のイージング関数を使用できます。 253 | `NukoTweenEngine`クラスの読み取り専用のインスタンス変数として定義されていますので、メソッド呼び出し時はこちらを使用してください。 254 | 255 | - EaseLinear 256 | - EaseInSine 257 | - EaseOutSine 258 | - EaseInOutSine 259 | - EaseInQuad 260 | - EaseOutQuad 261 | - EaseInOutQuad 262 | - EaseInCubic 263 | - EaseOutCubic 264 | - EaseInOutCubic 265 | - EaseInQuart 266 | - EaseOutQuart 267 | - EaseInOutQuart 268 | - EaseInQuint 269 | - EaseOutQuint 270 | - EaseInOutQuint 271 | - EaseInExpo 272 | - EaseOutExpo 273 | - EaseInOutExpo 274 | - EaseInCirc 275 | - EaseOutCirc 276 | - EaseInOutCirc 277 | - EaseInBack 278 | - EaseOutBack 279 | - EaseInOutBack 280 | - EaseInElastic 281 | - EaseOutElastic 282 | - EaseInOutElastic 283 | - EaseInBounce 284 | - EaseOutBounce 285 | - EaseInOutBounce 286 | 287 | ## プロパティ 288 | 289 | エンジンの動作をカスタマイズします。 290 | `NukoTweenEngine`をアタッチしたオブジェクトのインスペクターから変更可能です。 291 | 292 | ### Simultaneous Size 293 | tweenを同時に実行できる数を指定します。これには待機中のtweenも含まれます。 294 | 295 | ## ライセンス 296 | 297 | このプログラムにはMITライセンスが適用されます。 298 | 299 | This software is released under the MIT License, see LICENSE. 300 | -------------------------------------------------------------------------------- /Website/app.js: -------------------------------------------------------------------------------- 1 | import { baseLayerLuminance, StandardLuminance } from 'https://unpkg.com/@fluentui/web-components'; 2 | 3 | const LISTING_URL = "{{ listingInfo.Url }}"; 4 | 5 | const PACKAGES = { 6 | {{~ for package in packages ~}} 7 | "{{ package.Name }}": { 8 | name: "{{ package.Name }}", 9 | displayName: "{{ if package.DisplayName; package.DisplayName; end; }}", 10 | description: "{{ if package.Description; package.Description; end; }}", 11 | version: "{{ package.Version }}", 12 | author: { 13 | name: "{{ if package.Author.Name; package.Author.Name; end; }}", 14 | url: "{{ if package.Author.Url; package.Author.Url; end; }}", 15 | }, 16 | dependencies: { 17 | {{~ for dependency in package.Dependencies ~}} 18 | "{{ dependency.Name }}": "{{ dependency.Version }}", 19 | {{~ end ~}} 20 | }, 21 | keywords: [ 22 | {{~ for keyword in package.Keywords ~}} 23 | "{{ keyword }}", 24 | {{~ end ~}} 25 | ], 26 | license: "{{ package.License }}", 27 | licensesUrl: "{{ package.LicensesUrl }}", 28 | }, 29 | {{~ end ~}} 30 | }; 31 | 32 | const setTheme = () => { 33 | const isDarkTheme = () => window.matchMedia("(prefers-color-scheme: dark)").matches; 34 | if (isDarkTheme()) { 35 | baseLayerLuminance.setValueFor(document.documentElement, StandardLuminance.DarkMode); 36 | } else { 37 | baseLayerLuminance.setValueFor(document.documentElement, StandardLuminance.LightMode); 38 | } 39 | } 40 | 41 | (() => { 42 | setTheme(); 43 | 44 | window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => { 45 | setTheme(); 46 | }); 47 | 48 | const packageGrid = document.getElementById('packageGrid'); 49 | 50 | const searchInput = document.getElementById('searchInput'); 51 | searchInput.addEventListener('input', ({ target: { value = '' }}) => { 52 | const items = packageGrid.querySelectorAll('fluent-data-grid-row[row-type="default"]'); 53 | items.forEach(item => { 54 | if (value === '') { 55 | item.style.display = 'grid'; 56 | return; 57 | } 58 | if ( 59 | item.dataset?.packageName?.toLowerCase()?.includes(value.toLowerCase()) || 60 | item.dataset?.packageId?.toLowerCase()?.includes(value.toLowerCase()) 61 | ) { 62 | item.style.display = 'grid'; 63 | } else { 64 | item.style.display = 'none'; 65 | } 66 | }); 67 | }); 68 | 69 | const urlBarHelpButton = document.getElementById('urlBarHelp'); 70 | const addListingToVccHelp = document.getElementById('addListingToVccHelp'); 71 | urlBarHelpButton.addEventListener('click', () => { 72 | addListingToVccHelp.hidden = false; 73 | }); 74 | const addListingToVccHelpClose = document.getElementById('addListingToVccHelpClose'); 75 | addListingToVccHelpClose.addEventListener('click', () => { 76 | addListingToVccHelp.hidden = true; 77 | }); 78 | 79 | const vccListingInfoUrlFieldCopy = document.getElementById('vccListingInfoUrlFieldCopy'); 80 | vccListingInfoUrlFieldCopy.addEventListener('click', () => { 81 | const vccUrlField = document.getElementById('vccListingInfoUrlField'); 82 | vccUrlField.select(); 83 | navigator.clipboard.writeText(vccUrlField.value); 84 | vccUrlFieldCopy.appearance = 'accent'; 85 | setTimeout(() => { 86 | vccUrlFieldCopy.appearance = 'neutral'; 87 | }, 1000); 88 | }); 89 | 90 | const vccAddRepoButton = document.getElementById('vccAddRepoButton'); 91 | vccAddRepoButton.addEventListener('click', () => window.location.assign(`vcc://vpm/addRepo?url=${encodeURIComponent(LISTING_URL)}`)); 92 | 93 | const vccUrlFieldCopy = document.getElementById('vccUrlFieldCopy'); 94 | vccUrlFieldCopy.addEventListener('click', () => { 95 | const vccUrlField = document.getElementById('vccUrlField'); 96 | vccUrlField.select(); 97 | navigator.clipboard.writeText(vccUrlField.value); 98 | vccUrlFieldCopy.appearance = 'accent'; 99 | setTimeout(() => { 100 | vccUrlFieldCopy.appearance = 'neutral'; 101 | }, 1000); 102 | }); 103 | 104 | const rowMoreMenu = document.getElementById('rowMoreMenu'); 105 | const hideRowMoreMenu = e => { 106 | if (rowMoreMenu.contains(e.target)) return; 107 | document.removeEventListener('click', hideRowMoreMenu); 108 | rowMoreMenu.hidden = true; 109 | } 110 | 111 | const rowMenuButtons = document.querySelectorAll('.rowMenuButton'); 112 | rowMenuButtons.forEach(button => { 113 | button.addEventListener('click', e => { 114 | if (rowMoreMenu?.hidden) { 115 | rowMoreMenu.style.top = `${e.clientY + e.target.clientHeight}px`; 116 | rowMoreMenu.style.left = `${e.clientX - 120}px`; 117 | rowMoreMenu.hidden = false; 118 | 119 | const downloadLink = rowMoreMenu.querySelector('#rowMoreMenuDownload'); 120 | const downloadListener = () => { 121 | window.open(e?.target?.dataset?.packageUrl, '_blank'); 122 | } 123 | downloadLink.addEventListener('change', () => { 124 | downloadListener(); 125 | downloadLink.removeEventListener('change', downloadListener); 126 | }); 127 | 128 | setTimeout(() => { 129 | document.addEventListener('click', hideRowMoreMenu); 130 | }, 1); 131 | } 132 | }); 133 | }); 134 | 135 | const packageInfoModal = document.getElementById('packageInfoModal'); 136 | const packageInfoModalClose = document.getElementById('packageInfoModalClose'); 137 | packageInfoModalClose.addEventListener('click', () => { 138 | packageInfoModal.hidden = true; 139 | }); 140 | 141 | // Fluent dialogs use nested shadow-rooted elements, so we need to use JS to style them 142 | const modalControl = packageInfoModal.shadowRoot.querySelector('.control'); 143 | modalControl.style.maxHeight = "90%"; 144 | modalControl.style.transition = 'height 0.2s ease-in-out'; 145 | modalControl.style.overflowY = 'hidden'; 146 | 147 | const packageInfoName = document.getElementById('packageInfoName'); 148 | const packageInfoId = document.getElementById('packageInfoId'); 149 | const packageInfoVersion = document.getElementById('packageInfoVersion'); 150 | const packageInfoDescription = document.getElementById('packageInfoDescription'); 151 | const packageInfoAuthor = document.getElementById('packageInfoAuthor'); 152 | const packageInfoDependencies = document.getElementById('packageInfoDependencies'); 153 | const packageInfoKeywords = document.getElementById('packageInfoKeywords'); 154 | const packageInfoLicense = document.getElementById('packageInfoLicense'); 155 | 156 | const rowAddToVccButtons = document.querySelectorAll('.rowAddToVccButton'); 157 | rowAddToVccButtons.forEach((button) => { 158 | button.addEventListener('click', () => window.location.assign(`vcc://vpm/addRepo?url=${encodeURIComponent(LISTING_URL)}`)); 159 | }); 160 | 161 | const rowPackageInfoButton = document.querySelectorAll('.rowPackageInfoButton'); 162 | rowPackageInfoButton.forEach((button) => { 163 | button.addEventListener('click', e => { 164 | const packageId = e.target.dataset?.packageId; 165 | const packageInfo = PACKAGES?.[packageId]; 166 | if (!packageInfo) { 167 | console.error(`Did not find package ${packageId}. Packages available:`, PACKAGES); 168 | return; 169 | } 170 | 171 | packageInfoName.textContent = packageInfo.displayName; 172 | packageInfoId.textContent = packageId; 173 | packageInfoVersion.textContent = `v${packageInfo.version}`; 174 | packageInfoDescription.textContent = packageInfo.description; 175 | packageInfoAuthor.textContent = packageInfo.author.name; 176 | packageInfoAuthor.href = packageInfo.author.url; 177 | 178 | if ((packageInfo.keywords?.length ?? 0) === 0) { 179 | packageInfoKeywords.parentElement.classList.add('hidden'); 180 | } else { 181 | packageInfoKeywords.parentElement.classList.remove('hidden'); 182 | packageInfoKeywords.innerHTML = null; 183 | packageInfo.keywords.forEach(keyword => { 184 | const keywordDiv = document.createElement('div'); 185 | keywordDiv.classList.add('me-2', 'mb-2', 'badge'); 186 | keywordDiv.textContent = keyword; 187 | packageInfoKeywords.appendChild(keywordDiv); 188 | }); 189 | } 190 | 191 | if (!packageInfo.license?.length && !packageInfo.licensesUrl?.length) { 192 | packageInfoLicense.parentElement.classList.add('hidden'); 193 | } else { 194 | packageInfoLicense.parentElement.classList.remove('hidden'); 195 | packageInfoLicense.textContent = packageInfo.license ?? 'See License'; 196 | packageInfoLicense.href = packageInfo.licensesUrl ?? '#'; 197 | } 198 | 199 | packageInfoDependencies.innerHTML = null; 200 | Object.entries(packageInfo.dependencies).forEach(([name, version]) => { 201 | const depRow = document.createElement('li'); 202 | depRow.classList.add('mb-2'); 203 | depRow.textContent = `${name} @ v${version}`; 204 | packageInfoDependencies.appendChild(depRow); 205 | }); 206 | 207 | packageInfoModal.hidden = false; 208 | 209 | setTimeout(() => { 210 | const height = packageInfoModal.querySelector('.col').clientHeight; 211 | modalControl.style.setProperty('--dialog-height', `${height + 14}px`); 212 | }, 1); 213 | }); 214 | }); 215 | 216 | const packageInfoVccUrlFieldCopy = document.getElementById('packageInfoVccUrlFieldCopy'); 217 | packageInfoVccUrlFieldCopy.addEventListener('click', () => { 218 | const vccUrlField = document.getElementById('packageInfoVccUrlField'); 219 | vccUrlField.select(); 220 | navigator.clipboard.writeText(vccUrlField.value); 221 | vccUrlFieldCopy.appearance = 'accent'; 222 | setTimeout(() => { 223 | vccUrlFieldCopy.appearance = 'neutral'; 224 | }, 1000); 225 | }); 226 | 227 | const packageInfoListingHelp = document.getElementById('packageInfoListingHelp'); 228 | packageInfoListingHelp.addEventListener('click', () => { 229 | addListingToVccHelp.hidden = false; 230 | }); 231 | })(); -------------------------------------------------------------------------------- /Website/banner.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:20dbf89c2cc1b841c926de5c6c477c81351b422d2d610ef2974736bd864e8edf 3 | size 60292 4 | -------------------------------------------------------------------------------- /Website/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nukora/NukoTween/cf8ad20de199d187cb75fa5ebc6ea75945536a7f/Website/favicon.ico -------------------------------------------------------------------------------- /Website/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | VCC Listing 7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 | {{~ if listingInfo.BannerImage; ~}} 15 |
16 | {{~ end; ~}} 17 |

18 | {{~ listingInfo.Name ~}} 19 |

20 | {{~ if listingInfo.Description; ~}} 21 |
{{ listingInfo.Description }}
22 | {{~ end; ~}} 23 |
24 | {{~ if listingInfo.Author.Email; ~}} 25 | 26 | {{ listingInfo.Author.Email }} 27 | 28 | {{~ end; ~}} 29 | 30 | {{~ if listingInfo.InfoLink.Url ~}} 31 | 34 | {{~ end; ~}} 35 |
36 |
37 |
38 | 39 | 40 | Add to VCC 41 | 42 | 43 | 44 | 45 | Copy 46 | 47 | 48 | How to add a listing to your VCC 49 | 50 | 51 | 52 | 53 | 54 | 55 |
56 | 97 |
98 | 99 |
100 | 110 | 172 | 173 | 174 | 175 | 176 | Name 177 | 178 | 179 | Type 180 | 181 | 182 | 183 | 184 | {{~ for package in packages ~}} 185 | 186 | 187 |
188 |
{{ package.DisplayName }}
189 |
{{ package.Description }}
190 |
{{ package.Name }}
191 |
192 |
193 | 194 | {{ package.Type }} 195 | 196 | 197 | Add to VCC 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 |
210 | {{~ end ~}} 211 |
212 |
213 | {{~ if listingInfo.InfoLink.Url ~}} 214 | 217 | {{~ end; ~}} 218 |
219 | 220 | 221 | 222 | -------------------------------------------------------------------------------- /Website/styles.css: -------------------------------------------------------------------------------- 1 | :root { 2 | color-scheme: light dark; 3 | } 4 | 5 | * { 6 | box-sizing: border-box; 7 | } 8 | 9 | body { 10 | padding: 0; 11 | margin: 0; 12 | min-width: 100vw; 13 | min-height: 100vh; 14 | display: flex; 15 | align-items: center; 16 | justify-content: center; 17 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 18 | color: var(--neutral-foreground-rest); 19 | } 20 | 21 | .hidden { 22 | display: none !important; 23 | } 24 | 25 | .row { 26 | display: flex; 27 | flex-direction: row; 28 | } 29 | 30 | .col { 31 | display: flex; 32 | flex-direction: column; 33 | } 34 | 35 | .content { 36 | max-width: 1000px; 37 | width: 100%; 38 | margin: 0 auto; 39 | } 40 | 41 | .align-items-center { 42 | align-items: center; 43 | } 44 | 45 | .justify-content-between { 46 | justify-content: space-between; 47 | } 48 | 49 | .justify-content-end { 50 | justify-content: flex-end; 51 | } 52 | 53 | h1 { 54 | margin-bottom: 0.5rem; 55 | } 56 | 57 | .caption1 { 58 | font-size: 1rem; 59 | color: var(--neutral-foreground-hover); 60 | } 61 | 62 | .caption2 { 63 | font-size: 0.8rem; 64 | margin-top: 0.25rem; 65 | color: var(--neutral-foreground-rest); 66 | } 67 | 68 | .packages { 69 | margin: 0.5rem 0 1rem 0; 70 | max-width: 90%; 71 | padding: 0.25rem; 72 | display: flex; 73 | flex: 1; 74 | } 75 | 76 | #packageGrid { 77 | overflow-y: auto; 78 | width: 100%; 79 | max-height: 40rem; 80 | } 81 | 82 | .packages .packageName { 83 | font-size: 1.1rem; 84 | font-weight: 600; 85 | margin: 0.25rem 0; 86 | } 87 | 88 | .searchBlock { 89 | margin-top: 1rem; 90 | width: 100%; 91 | max-width: 90%; 92 | } 93 | 94 | .searchBlock .root { 95 | width: 100%; 96 | } 97 | 98 | #searchInput { 99 | width: 100%; 100 | } 101 | 102 | .vccUrlField { 103 | min-width: 450px; 104 | max-width: 90%; 105 | flex-grow:1; 106 | } 107 | 108 | #addListingToVccHelp { 109 | z-index: 11; 110 | } 111 | 112 | #packageInfoModal { 113 | z-index: 10; 114 | } 115 | 116 | #rowMoreMenu { 117 | top: 0; 118 | left: 0; 119 | position: absolute; 120 | z-index: 10; 121 | } 122 | 123 | #rowMoreMenu a { 124 | display: block; 125 | text-decoration: none; 126 | color: var(--neutral-foreground-rest); 127 | } 128 | 129 | .bannerImage { 130 | aspect-ratio: 5 / 1; 131 | border-radius: 6px; 132 | max-width: 90%; 133 | width: 100%; 134 | background-size: cover; 135 | background-position: center; 136 | background-repeat: no-repeat; 137 | margin-bottom: 0.25rem; 138 | } 139 | 140 | .badge { 141 | border-radius: 4px; 142 | padding: 0.25rem 0.5rem; 143 | background-color: var(--neutral-fill-hover); 144 | } 145 | 146 | .m-0 { 147 | margin: 0; 148 | } 149 | 150 | .m-1 { 151 | margin: 0.25rem; 152 | } 153 | 154 | .m-2 { 155 | margin: 0.5rem; 156 | } 157 | 158 | .m-3 { 159 | margin: 0.75rem; 160 | } 161 | 162 | .m-4 { 163 | margin: 1rem; 164 | } 165 | 166 | .m-5 { 167 | margin: 2rem; 168 | } 169 | 170 | .mt-1 { 171 | margin-top: 0.25rem; 172 | } 173 | 174 | .mt-2 { 175 | margin-top: 0.5rem; 176 | } 177 | 178 | .mt-3 { 179 | margin-top: 0.75rem; 180 | } 181 | 182 | .mt-4 { 183 | margin-top: 1rem; 184 | } 185 | 186 | .mt-5 { 187 | margin-top: 2rem; 188 | } 189 | 190 | .mb-1 { 191 | margin-bottom: 0.25rem; 192 | } 193 | 194 | .mb-2 { 195 | margin-bottom: 0.5rem; 196 | } 197 | 198 | .mb-3 { 199 | margin-bottom: 0.75rem; 200 | } 201 | 202 | .mb-4 { 203 | margin-bottom: 1rem; 204 | } 205 | 206 | .mb-5 { 207 | margin-bottom: 2rem; 208 | } 209 | 210 | .ms-1 { 211 | margin-left: 0.25rem; 212 | } 213 | 214 | .ms-2 { 215 | margin-left: 0.5rem; 216 | } 217 | 218 | .ms-3 { 219 | margin-left: 0.75rem; 220 | } 221 | 222 | .ms-4 { 223 | margin-left: 1rem; 224 | } 225 | 226 | .ms-5 { 227 | margin-left: 2rem; 228 | } 229 | 230 | .me-1 { 231 | margin-right: 0.25rem; 232 | } 233 | 234 | .me-2 { 235 | margin-right: 0.5rem; 236 | } 237 | 238 | .me-3 { 239 | margin-right: 0.75rem; 240 | } 241 | 242 | .me-4 { 243 | margin-right: 1rem; 244 | } 245 | 246 | .me-5 { 247 | margin-right: 2rem; 248 | } 249 | 250 | .p-1 { 251 | padding: 0.25rem; 252 | } 253 | 254 | .p-2 { 255 | padding: 0.5rem; 256 | } 257 | 258 | .p-3 { 259 | padding: 0.75rem; 260 | } 261 | 262 | .p-4 { 263 | padding: 1rem; 264 | } 265 | 266 | .p-5 { 267 | padding: 2rem; 268 | } 269 | 270 | .pt-1 { 271 | padding-top: 0.25rem; 272 | } 273 | 274 | .pt-2 { 275 | padding-top: 0.5rem; 276 | } 277 | 278 | .pt-3 { 279 | padding-top: 0.75rem; 280 | } 281 | 282 | .pt-4 { 283 | padding-top: 1rem; 284 | } 285 | 286 | .pt-5 { 287 | padding-top: 2rem; 288 | } 289 | 290 | .pb-1 { 291 | padding-bottom: 0.25rem; 292 | } 293 | 294 | .pb-2 { 295 | padding-bottom: 0.5rem; 296 | } 297 | 298 | .pb-3 { 299 | padding-bottom: 0.75rem; 300 | } 301 | 302 | .pb-4 { 303 | padding-bottom: 1rem; 304 | } 305 | 306 | .pb-5 { 307 | padding-bottom: 2rem; 308 | } 309 | 310 | .ps-1 { 311 | padding-left: 0.25rem; 312 | } 313 | 314 | .ps-2 { 315 | padding-left: 0.5rem; 316 | } 317 | 318 | .ps-3 { 319 | padding-left: 0.75rem; 320 | } 321 | 322 | .ps-4 { 323 | padding-left: 1rem; 324 | } 325 | 326 | .ps-5 { 327 | padding-left: 2rem; 328 | } 329 | 330 | .pe-1 { 331 | padding-right: 0.25rem; 332 | } 333 | 334 | .pe-2 { 335 | padding-right: 0.5rem; 336 | } 337 | 338 | .pe-3 { 339 | padding-right: 0.75rem; 340 | } 341 | 342 | .pe-4 { 343 | padding-right: 1rem; 344 | } 345 | 346 | .pe-5 { 347 | padding-right: 2rem; 348 | } 349 | 350 | .w-100 { 351 | width: 100%; 352 | } 353 | 354 | .flex-1 { 355 | flex: 1; 356 | } --------------------------------------------------------------------------------