5
\$\begingroup\$

I am using unity 5. I Created an objects with layer names. I tried to export a package. After Exporting, i import the package in new project and ran the project its not working. observed that objects layer name is missing for all the objects. i attached the screenshot with this.

Before Export : enter image description here

After Import the Exported Package : enter image description here In layer drop down box no layer name was found. only the default layer name is available. if anyone knows the answer please tell me.

\$\endgroup\$
  • 2
    \$\begingroup\$ you are right ! layers and tags are one of few stuff that don't export from the package . It's because there is chance of layer or tag conflict. \$\endgroup\$ – Adnan Nazir Nov 12 '15 at 14:58
1
\$\begingroup\$

Unless you import the project settings you will have to create the layers in the new project. In some cases it would be nice if the layers names would export/import being recognized as a required resource in the package. Especially if say it was a unity asset package that needed it and someone without knowledge just bought the package.

Now if you copied the whole folder zipped it up and the new user drops the files in including the settings they will get the project settings will overwrite box. and if you ok it the layers will be added along with everything else such as the tags and even the editor windows and all the settings.

\$\endgroup\$
  • 1
    \$\begingroup\$ but unity will export the package with layer name right? how can i do that? \$\endgroup\$ – Manoj Balaji M Nov 13 '15 at 8:46
  • \$\begingroup\$ That will only happen if you copy either the whole project folder or the project settings within the project. Then if you opened it from another project or machine all the settings would be the same. \$\endgroup\$ – Justin Markwell Nov 13 '15 at 12:45
  • \$\begingroup\$ I am trying to copy the whole project only \$\endgroup\$ – Manoj Balaji M Nov 16 '15 at 3:39
  • \$\begingroup\$ For this reason, I usually include tags in a static class of a utility namespace, and include a debug log to alert that "tag x is not in use and can not be found." \$\endgroup\$ – Gnemlock Mar 11 '17 at 4:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.