Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AssetBundleDownloadSize

 AssetBundleDownloadSize

How to implement to show download size of Unity AssetBundle. ( Written in Japanese )

Cova8bitdots

March 24, 2019
Tweet

More Decks by Cova8bitdots

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ ࢯ໊ɿখྛ ܚ༞ ܦྺ • 2018/4݄ த్ೖࣾ • ৽نήʔϜͷ։ൃʹैࣄ •

    AssetBundleΛ࢝Ίͱͨ͠ج൫γεςϜ΍
 UIपΓͷ࣮૷Λத৺ʹߦ͏ 3
  2. ManifestϑΝΠϧ 8 ManifestϑΝΠϧͷߏ੒৘ใ • Version৘ใ • CRC • Ξηοτόϯυϧ৘ใͷ഑ྻ •

    ໊લ • ґଘؔ܎ ManifestϑΝΠϧͷߏ੒৘ใ • Version৘ใ • CRC • Ξηοτόϯυϧ৘ใͷ഑ྻ • ໊લ • ґଘؔ܎ • (New!!) αΠζ • (Optional) Hash • (Optional) CRC Ճ޻
  3. ಠࣗManifest࡞੒ ϫʔΫϑϩʔ 1. AssetBundleΛੜ੒
 2. ੜ੒ͨ͠yaml Λղಡ
 3. ੜ੒֤ͨ͠AssetBundleͷαΠζΛऔಘͯ͠2. ͱ৘ใΛ౷߹


    4. ద੾ͳܗࣜͰՃ޻ͨ͠ManifestϑΝΠϧΛੜ੒ 9 YAMLΛ͍͡Δ͜ͱ͔Βpython Λબ୒ ॳΊͯͷਓͰ΋؀ڥߏஙʙ࣮૷·Ͱ1~2೔ఔ౓Ͱ͍͚·͢ʂ UnityతʹύʔεͷύϑΥʔϚϯε͕ JSON>YAML ͳͷͰJSONͰग़ྗ
  4. ಠࣗManifestύʔε 10 • YAMLͷύʔε
 →yaml Ϟδϡʔϧ(PyYAML)Λ࢖͏
 
 ϑΝΠϧαΠζऔಘ
 → osϞδϡʔϧͰղܾ

    • ϑΝΠϧग़ྗ
 → YAML :
 
 → JSON : Python ͳΒେ఍ͷ໘౗ͳॲཧΛ
 ҰߦͰղܾͯ͘͠ΕΔͷͰ࣮૷ָ͕