{"id":2627,"date":"2014-01-25T01:56:01","date_gmt":"2014-01-24T22:56:01","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=2627"},"modified":"2014-01-25T02:01:51","modified_gmt":"2014-01-24T23:01:51","slug":"flash-swf-anims-to-unity-gaf-converter","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2014\/01\/25\/flash-swf-anims-to-unity-gaf-converter\/","title":{"rendered":"Flash SWF Anims To Unity (GAF Converter)"},"content":{"rendered":"<p><a title=\"http:\/\/unitycoder.com\/upload\/demos\/Unity_GAF_test\/\" href=\"http:\/\/unitycoder.com\/upload\/demos\/Unity_GAF_test\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2628\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2014\/01\/25\/flash-swf-anims-to-unity-gaf-converter\/gaf_animation_converter_unity_test_1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/01\/gaf_animation_converter_unity_test_1.jpg?fit=680%2C386&amp;ssl=1\" data-orig-size=\"680,386\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"gaf_animation_converter_unity_test_1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/01\/gaf_animation_converter_unity_test_1.jpg?fit=680%2C386&amp;ssl=1\" class=\"alignnone size-full wp-image-2628\" alt=\"gaf_animation_converter_unity_test_1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/01\/gaf_animation_converter_unity_test_1.jpg?resize=680%2C386\" width=\"680\" height=\"386\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/01\/gaf_animation_converter_unity_test_1.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/01\/gaf_animation_converter_unity_test_1.jpg?resize=300%2C170&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>GAF Animation Converter<\/p>\n<p><strong>What is it:<\/strong> Flash Animation Converter (convert .swf animations to Unity)<\/p>\n<p><b>Quick test with GAF+Unity, let\u2019s see how it works<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download &amp; Import GAF Player from AssetStore (free) : <a href=\"http:\/\/u3d.as\/content\/catalyst-apps\/gaf-animation-player\/62G\">http:\/\/u3d.as\/content\/catalyst-apps\/gaf-animation-player\/62G<\/a><br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Lets get some sample flash animations from: \u00a0<a href=\"http:\/\/www.glitchthegame.com\/public-domain-game-art\/\">http:\/\/www.glitchthegame.com\/public-domain-game-art\/<\/a> ( I took the \u201cOverlays (Effects) SWFs (3MB)\u201d, and 1 file from there \u201crainbow_superharvest.swf\u201d)<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Then go to their website: <a href=\"http:\/\/www.gafmedia.com\/converter\/\">http:\/\/www.gafmedia.com\/converter\/<\/a><br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Drag &amp; drop the swf to that conversion preview place<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Enter your email for more details.. hmm just sends the same preview link, how to get the actual file?<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 I guess have to register..<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ok, now can login and create new project<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Target frame work: Unity3D<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Target FPS: 31 (i&#8217;ll use the default value)<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 There is option to select [ ] HD Textures, ill skip it for now<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ok, now can upload animations, I\u2019ll drag the \u201crainbow_superharvest.swf\u201d here<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Click convert..only took 10sec or so<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download GAF file<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Hmm its zip file.. (have to read docs..)<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ok, unzip it, copy those 2 files to unity<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Start GAF Converter (Window \/ GAF Converter)<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Select GAF animation file (the text file from the zip)<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Click Process GAF<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Displayes some frame info and new options, I\u2019ll just use defaults<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Game Window appears with the animation object<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Lets hit play!<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Looking nice! (except half of the rainbow is missing, it did display correctly in the conversion preview window **In the webplayer the rainbow is actually correct)<\/p>\n<p><b>2nd Try<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Lets try bigger animation \u201crook_fly_up.swf\u201d<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Upload for conversion<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download GAF zip<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Open zip<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Drag files (using explorer) to unity assets folder<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Start GAF Converter (Window \/ GAF Converter)<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Click Process GAF<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Click Create GAF Animation<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Hit Play in unity!<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 This one worked perfectly.<\/p>\n<p><strong>Is it free?<\/strong><br \/>\nSeems to be free for limited amount of files (per month)<br \/>\n<a title=\"http:\/\/gafmedia.com\/converter\/?action=faq#faq_6_1\" href=\"http:\/\/gafmedia.com\/converter\/?action=faq#faq_6_1\" target=\"_blank\">http:\/\/gafmedia.com\/converter\/?action=faq#faq_6_1<\/a><\/p>\n<p><strong><br \/>\nWebplayer of the results:<\/strong><br \/>\n<a title=\"http:\/\/unitycoder.com\/upload\/demos\/Unity_GAF_test\/\" href=\"http:\/\/unitycoder.com\/upload\/demos\/Unity_GAF_test\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/Unity_GAF_test\/<\/a><\/p>\n<p><strong><br \/>\nIdeas\/Feedback:<\/strong><br \/>\n&#8211; Getting couple notices from script &#8220;Assets\/GAF Animation Player\/Editor\/GAFEditor\/GAFConverterToolUnity.cs(301,29): warning CS0618: `UnityEngine.Camera.mainCamera&#8217; is obsolete: `use Camera.main instead.'&#8221;<br \/>\n&#8211; Game window undocks\/popups everytime after conversion? (if it was open)<br \/>\n&#8211; Some kind of batch conversion tool might be nice..<br \/>\n&#8211; Anims could be converted as Unity builtin 2D animations? (then could use them as actual sprite objects?)<br \/>\n&#8211; Uploading animations, have to hit that upload div exactly, otherwise browser tries to open the local file instead.. (could have full window upload area)<br \/>\n&#8211; Downloading GAF files as invidual zips, not so fun, you cannot drag &amp; drop the files to unity project window from zip directly (have to open explorer).. Rather could download all in one zip, or download those 2 files and can drag &amp; drop them to unity from browser downloads list..<br \/>\n&#8211; Docs mention that .json file gets converted to .txt, that could be done in the web converter already (because they use AssetImporter to rename *.json files to *.txt, what if I want to have .json files on my project?)<\/p>\n<p>&#8212;<\/p>\n<p>Image2: web based swf2gaf converter<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"gaf_animation_converter_web_upload_view\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/01\/gaf_animation_converter_web_upload_view.jpg?resize=680%2C487\" width=\"680\" height=\"487\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GAF Animation Converter What is it: Flash Animation Converter (convert .swf animations to Unity) Quick test with GAF+Unity, let\u2019s see how it works &#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download &amp; Import GAF Player from AssetStore (free) : http:\/\/u3d.as\/content\/catalyst-apps\/gaf-animation-player\/62G &#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Lets get some sample flash animations from: \u00a0http:\/\/www.glitchthegame.com\/public-domain-game-art\/ ( I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[413],"tags":[584,585,761,582,763,583],"class_list":["post-2627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-review","tag-animation","tag-converter","tag-flash","tag-gaf","tag-review","tag-swf"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2014\/01\/gaf_animation_converter_unity_test_1.jpg?fit=680%2C386&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-Gn","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/2627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=2627"}],"version-history":[{"count":4,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/2627\/revisions"}],"predecessor-version":[{"id":2633,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/2627\/revisions\/2633"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/2628"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=2627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=2627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=2627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}