{"id":4029,"date":"2014-09-19T11:20:04","date_gmt":"2014-09-19T15:20:04","guid":{"rendered":"http:\/\/elwinlee.com\/blog\/?p=4029"},"modified":"2014-11-06T15:41:50","modified_gmt":"2014-11-06T20:41:50","slug":"fix-unity3d-4-5-hierarchy-sorting-by-name","status":"publish","type":"post","link":"https:\/\/www.elwinlee.com\/blog\/fix-unity3d-4-5-hierarchy-sorting-by-name\/","title":{"rendered":"[FIX] Unity3D &#8211; 4.5 Hierarchy Sorting By Name"},"content":{"rendered":"<p>Ever since the release of Unity3D 4.5 they changed the sorting of the GameObjects in the Hierarchy window to be based on the\u00a0based on transform order instead of object&#8217;s name. Although I do see some some causes where sorting it by transform order might be useful, but generally I would prefer to find my GameObjects based on the name. In Unity3D\u00a04.5, there&#8217;s no option anymore to sort it by name by default. You can use the search at the top of the hierarchy window, but it&#8217;s a pain in the ass in my opinion.<\/p>\n<p>There&#8217;s actually a way to re-enable the alphanumerical sorting again. Simply download this little script (<strong><a href=\"http:\/\/elwinlee.com\/blog\/wp-content\/uploads\/2014\/09\/Unity3D-AlphaNumericSort.rar\">Unity3D-AlphaNumericSort<\/a><\/strong>) and place it in the <strong>Assets&gt;Editor<\/strong> folder and you&#8217;re done! An option will appear in the hierarchy window where you can switch between sorting it by transform order or by name.<\/p>\n<p><a href=\"http:\/\/elwinlee.com\/blog\/wp-content\/uploads\/2014\/09\/HierarchySort.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-4034\" src=\"http:\/\/elwinlee.com\/blog\/wp-content\/uploads\/2014\/09\/HierarchySort.png\" alt=\"HierarchySort\" width=\"454\" height=\"180\" srcset=\"https:\/\/www.elwinlee.com\/blog\/wp-content\/uploads\/2014\/09\/HierarchySort.png 454w, https:\/\/www.elwinlee.com\/blog\/wp-content\/uploads\/2014\/09\/HierarchySort-300x119.png 300w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/a><\/p>\n<p><em>Source:\u00a0<strong><a href=\"http:\/\/forum.unity3d.com\/threads\/unity-4-5-new-hierarchy-window-sorting.248298\/\">http:\/\/forum.unity3d.com\/threads\/unity-4-5-new-hierarchy-window-sorting.248298\/<\/a><\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever since the release of Unity3D 4.5 they changed the sorting of the GameObjects in the Hierarchy window to be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4034,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"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":""},"categories":[429,11,1079,255,2301],"tags":[1333,1619,2009,2010,2040,2145,2222,2344,2345,2346,2347,2348],"class_list":["post-4029","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-design","category-gaming","category-how-to-fix-stuff","category-technology","category-ux-ui","tag-editor","tag-fix","tag-unity3d","tag-unity","tag-window","tag-transform","tag-script","tag-hierarchy","tag-sorting","tag-name","tag-alphanumerical","tag-assets"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.elwinlee.com\/blog\/wp-content\/uploads\/2014\/09\/HierarchySort.png","jetpack_shortlink":"https:\/\/wp.me\/p1mtRf-12Z","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts\/4029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/comments?post=4029"}],"version-history":[{"count":2,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts\/4029\/revisions"}],"predecessor-version":[{"id":4039,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/posts\/4029\/revisions\/4039"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/media\/4034"}],"wp:attachment":[{"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/media?parent=4029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/categories?post=4029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elwinlee.com\/blog\/wp-json\/wp\/v2\/tags?post=4029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}