Search Unity

Question [SOLVED] Display my custom package in the Package folder of the project

Discussion in 'Package Manager' started by curtispelissier, Feb 2, 2021.

  1. curtispelissier

    curtispelissier

    Joined:
    Jul 26, 2019
    Posts:
    39
    Hello,

    I created a custom package that I'm using for my own purpose, and I want to display it into the package folder of the project like some other existing custom packages (OpenVR XR in mind, that is a Github package):

    upload_2021-2-2_12-0-4.png

    My project is on Github, I added it in the PackageManager with "+" > "Add package from Git url". My package is correctly referenced but compiled as DLL and it is impossible to read the sources nor open the csharp files directly in my IDE.

    Do you know how to achieve this ?

    Code (JavaScript):
    1. {
    2.   "name": "com.lignus.basetool",
    3.   "version": "0.0.2",
    4.   "displayName": "Base Tool",
    5.   "description": "Le package pour d\u00e9marrer tes projets",
    6.   "unity": "2020.2",
    7.   "unityRelease": "1f1",
    8.   "category": "Scripts",
    9.   "keywords": [
    10.     "tool",
    11.     "starter",
    12.     "game"
    13.   ],
    14.   "author": {
    15.     "name": "Curtis Pelissier",
    16.     "email": "**********",
    17.     "url": "**********"
    18.   },
    19.   "type": "module",
    20.   "hideInEditor": false
    21. }
     
  2. curtispelissier

    curtispelissier

    Joined:
    Jul 26, 2019
    Posts:
    39
    Ok, nevermind. I solved the problem by deleting the "type" from the manifest. If the "type" is set to "module", it is automatically compiled and not shown in the folder.

    Hope this will help someone one day !