Search Unity

"This package... will be hidden... because its type is empty"

Discussion in 'Package Manager' started by BackgroundMover, Sep 1, 2019.

  1. BackgroundMover

    BackgroundMover

    Joined:
    May 9, 2015
    Posts:
    224
    With a package added from GitHub, selecting its Packages/myPackage/package.json in the editor, the Inspector shows a warning that:
    Code (CSharp):
    1. "This package and all its assets will be hidden by default in Editor because its type is empty".
    I'm curious what this means, because my project can see the files from the imported package, including the Editor-only files. I didn't see anything about the "type" field in the Unity package.json documentation, and simply adding a
    Code (CSharp):
    1. "type" : "Example",
    line to the package.json changes the message to "[the package and assets] will be visible by default [...]" So I'm not sure what should be put there.
     
  2. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    756
    Hi @vestigial,

    The
    type
    package manifest attribute is for internal use only. You can remove it from your package. It has no concrete use for the moment. These UI messages were added prematurely by mistake. We are preparing features around this attribute that would be useful in the future.

    Regards,

    Pascal
     
    BackgroundMover likes this.
  3. AlexHolderDev

    AlexHolderDev

    Joined:
    Jul 2, 2014
    Posts:
    35
    Sorry to resurrect a dead thread, but this UI is still present in Unity 2020.1.7f1. This thread is the first result on Google for "unity this package and all its assets will be hidden by default".

    All type options in the dropdown cause the warning message to appear. Should I be worried about it, or just ignore it? Are there still plans to add features based on this attribute?

    Screenshot attached.

    UnityPackageTypeAttributeCausesWarning.png
     
    DanielGamaga and Sarkahn like this.
  4. unity_quraKUGppHUFgg

    unity_quraKUGppHUFgg

    Joined:
    Oct 30, 2020
    Posts:
    1
    I have the same message, but it makes a problem for me, because I can't change things in the manifest file as I'm supposed to in order to install it. The inspector window for the file is greyed out.
     
  5. supita_unity

    supita_unity

    Unity Technologies

    Joined:
    Dec 13, 2019
    Posts:
    226
    Hello everybody,

    Sorry for the confusion with this message, but as Pascal mentioned, you can safely ignore the warning.
    The type package manifest attribute is for internal use only, no need to change it or worry about it.

    I'm forwarding this issue to the team in order to remove the message.

    Cheers,

    Supi
     
  6. OndrejP

    OndrejP

    Joined:
    Jul 19, 2017
    Posts:
    304
    You can add this to package.json to show different warning :)


    Code (CSharp):
    1. "hideInEditor": false
    This package and all its assets will be visible by default in Editor because its visibility is set to 'Always Visible'
     
    JonathanBartel likes this.
  7. steampunkdigital

    steampunkdigital

    Joined:
    Nov 3, 2016
    Posts:
    2
    Still not resolved in unity 2020.3.21f1
     
  8. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    AlexHolderDev likes this.
  9. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    I had the issue that my custom package was hidden in the project window.

    Turned out, the
    type
    in the
    package.json
    was responsible. After changing it from
    module
    to
    tool
    it appeared.
     
    Favo-Yang likes this.