{"id":136,"date":"2014-10-15T19:34:00","date_gmt":"2014-10-15T19:34:00","guid":{"rendered":"http:\/\/raheelyawar.com\/?p=136"},"modified":"2014-10-15T19:34:00","modified_gmt":"2014-10-15T19:34:00","slug":"how-to-export-a-complete-unity-project-including-editor-settings","status":"publish","type":"post","link":"http:\/\/raheelyawar.com\/?p=136","title":{"rendered":"How to Export a Complete Unity Project"},"content":{"rendered":"<p>While working on Ultimate Endless Runner Kit I came across a problem. I had my own custom Layers and Tags to make use of the Unity&#8217;s physics editor to define which objects will interact\/ collide with which. Exporting the assets folder in your project does not export the editor settings.<\/p>\n<p>To export all the editor settings, you just need an editor script with the following lines of code:<\/p>\n<pre style=\"background-image: url('http:\/\/2.bp.blogspot.com\/_z5ltvMQPaa8\/SjJXr_U2YBI\/AAAAAAAAAAM\/46OqEP32CJ8\/s320\/codebg.gif'); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;\"><code style=\"color: black; word-wrap: normal;\">\n1:            string[] projectContent = AssetDatabase.GetAllAssetPaths();  \n2:            AssetDatabase.ExportPackage(projectContent, \"UltimateTemplate.unitypackage\", ExportPackageOptions.Recurse | ExportPackageOptions.IncludeLibraryAssets );  \n3:            Debug.Log(\"Project Exported\");\u00a0<\/code><\/pre>\n<p>When you run the editor script, a package will be exported in your Unity project&#8217;s root directory and will have the name given in the second parameter of the ExportPackage function (right now its &#8220;UltimateTemplate&#8221;). This unity package will have all the editor settings along with everything in your project&#8217;s assets folder.<\/p>\n<div dir=\"ltr\" style=\"text-align: left;\"><\/div>\n<div dir=\"ltr\" style=\"text-align: left;\">Drop in a comment if you have any questions.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>While working on Ultimate Endless Runner Kit I came across a problem. I had my own custom Layers and Tags to make use of the Unity&#8217;s physics editor to define which objects will interact\/ collide with which. Exporting the assets folder in your project does not export the editor settings. To export all the editor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2,4],"tags":[6,8,9],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-game-development","category-portfolio","tag-game-development","tag-unity","tag-unity3d"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9NqGD-2c","_links":{"self":[{"href":"http:\/\/raheelyawar.com\/index.php?rest_route=\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/raheelyawar.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/raheelyawar.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/raheelyawar.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/raheelyawar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":0,"href":"http:\/\/raheelyawar.com\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions"}],"wp:attachment":[{"href":"http:\/\/raheelyawar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/raheelyawar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/raheelyawar.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}