Search Unity

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

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

  1. vestigial

    vestigial

    Joined:
    May 9, 2015
    Posts:
    37
    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:
    575
    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
     
    vestigial likes this.