/Unity-Extensions

Helpful extensions for Unity. Each extension is an NPM module, you can integrate them separately to your projects.

Primary LanguageC#

1. Add NPM repository to project

Modify manifest.json file. The file located under directory "Packages". Add "scopedRegistries" to the end of the file.

{
  "dependencies": {
    
  },
  "scopedRegistries": [
    {
      "name": "Unity Extensions",
      "url": "https://registry.npmjs.org",
      "scopes": [
        "extensions.unity"
      ]
    }
  ]
}

2. Add extensions

When NPM repository added, you may optionally add all extensions from the list below. You just need to add relevant line to the "dependencies" section. If you are adding multiple lines don't forget to add ',' in the end of each line.

Unity-Extensions

{
  "dependencies": {
    "extensions.unity.base": "1.5.0"
  }
}

Unity-UI-Extensions

{
  "dependencies": {
    "extensions.unity.ui": "1.2.2"
  }
}

Unity Network REST extension

{
  "dependencies": {
    "extensions.unity.network": "1.0.1"
  }
}

Unity UniRx extensions

{
  "dependencies": {
    "extensions.unity.unirx": "1.1.3"
  }
}

Shapes RectTransform

Shapes RectTransform demo

{
  "dependencies": {
    "extensions.unity.shapes.recttransform": "1.0.1"
  }
}

Example - All Extensions included

{
  "dependencies": {
    "extensions.unity.base": "1.5.0",
    "extensions.unity.ui": "1.2.2",
    "extensions.unity.network": "1.0.1",
    "extensions.unity.unirx": "1.1.3",	
    "extensions.unity.shapes.recttransform": "1.0.1"
  },
  "scopedRegistries": [
    {
      "name": "Unity Extensions",
      "url": "https://registry.npmjs.org",
      "scopes": [
        "extensions.unity"
      ]
    }
  ]
}