Git Product home page Git Product logo

unitypackageexample's Introduction

Unity Package Example

A simple example showing how to create a custom package for use with the Unity Package Manager introduced in 2018.1

Requirements

  • Unity 2018.3 or later.
  • Git executable installed on your machine (Windows, Mac).
  • Git executable path listed in the PATH system environment variable.
  • Package contents and package.json file must be located in the root of the repository.
  • Must add an Assembly Definition file to the package since it lives outside any Assets folder.
  • More information and further discussions can be found here.

Installing the Package

Simply add the name of the package (found in package.json) followed by the repository URL to your Unity project's manifest.json. Supported schemes/protocols include: git, ssh, https, http and more.

{
  "dependencies": {
    "example.package": "https://github.com/IsaiahKelly/UnityPackageExample.git",
}

Useful Notes:

Taken from this thread.

  • Big repositories can take a long time to clone. We don't cache the repository so if you change revision, the repository will be cloned again.

  • The only way to update a Git package to the latest version is to remove the lock attribute from the project manifest or manually update the revision suffix.

  • Since the Package Manager uses the Git executable installed on your machine. Any global or system configuration or environment variable will be picked up. These settings may affect the behaviour of the system.

  • Some package managers offer a shorthand version of their supported URL schemes. For example, npm support short URLs like these: /, gitlab:/. We don't support these syntaxes for the moment.

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.