With a package added from GitHub, selecting its Packages/myPackage/package.json in the editor, the Inspector shows a warning that:
"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
"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.
Hi @BackgroundMover ,
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
1 Like
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.
2 Likes
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.
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
4 Likes
You can add this to package.json to show different warning
"hideInEditor": false
This package and all its assets will be visible by default in Editor because its visibility is set to ‘Always Visible’
1 Like
Still not resolved in unity 2020.3.21f1
Looks like a fix is in the works and will be backported. You can track its status here:
1 Like
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.
1 Like