Skip to content

Files

Latest commit

Jul 19, 2021
ba80481 · Jul 19, 2021

History

History
43 lines (36 loc) · 1.27 KB

README.CN.md

File metadata and controls

43 lines (36 loc) · 1.27 KB

SugarUnity

NPM Nuget openupm MIT

类似语法糖,但是是库

安装

  • Nuget

    dotnet add package LibSugar.Unity --version <version>
    

    <PackageReference Include="LibSugar.Unity" Version="<version>" />
    
  • Unity Package 由 npmjs

    如下编辑你的 Packages/manifest.json 文件

    {
      "scopedRegistries": [
        {
          "name": "npm",
          "url": "https://registry.npmjs.org",
          "scopes": [
            "com.libsugar"
          ]
        }
      ],
      "dependencies": {
        "com.libsugar.sugar.unity": "<version>"
      }
    }

    或者在 unity 编辑器中操作
    配置 Project Settings -> Package Manager -> Scoped Registeries
    然后在包管理器中添加包