Giter VIP home page Giter VIP logo

nuget2unity's Introduction

NuGet2Unity

A .NET Core app to package a NuGet package (and dependencies) as a .UnityPackage for import into a Unity 2018 (or higher) project. This will build a package that should be compatible with the following Unity player settings (Player Settings -> Other Settings -> Configuration):

Setting Value
Scripting Runtime Version .NET 4.x Equivalent
Scripting Backend Mono or IL2CPP
Api Compatibility Level .NET Standard 2.0

Build

It is assumed you have .NET Core 2.1 installed. If not, you can download from here. Once installed, from the src directory, run the standard dotnet build command.

Usage

Assuming you are in the src directory, simply run the standard dotnet run command with the following options:

Switch Description
-n, --nugetpackage Required. NuGet package to repackage
-v, --version Version of NuGet package to use
-p, --unityproject Path to the Unity project to include with this package
-m, --includemeta Include .meta files from the Unity project
-o, --outputpath Path to save the .unitypackage
--verbose Maximum verbosity
--skiplinkxml Do not add a link.xml to package
--help Display this help screen.
--version Display version information.

Example

Let's say you wanted to download and package the latest version of the WindowsAzure.Storage NuGet package to a Unity package in the current directory. Here's what that would look like (note the -- argument which ensures the switches get passed to the app itself, not the dotnet command:

dotnet run -- -n WindowsAzure.Storage

Packages

Check out our Sandbox site for some repackaged Azure SDKs that were built using this tool.

nuget2unity's People

Contributors

brianpeek avatar christophheich avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.