Slide 1

Slide 1 text

6OJUZͷNFUBϑΝΠϧͷ աෆ଍Λ๷ࢭ͠Α͏ Kuniwak - DeNA Co.,Ltd. 2021.03.24 Gotanda.unity #17

Slide 2

Slide 2 text

෼ؒͰ఻͍͑ͨ͜ͱ

Slide 3

Slide 3 text

6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆ଍Λ ετϨεͳ͘ݟ͚ͭΔπʔϧ͸͍͔͕Ͱ͔͢ 3 ఻͍͑ͨ͜ͱ

Slide 4

Slide 4 text

6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆ଍Λ ετϨεͳ͘ݟ͚ͭΔπʔϧ͸͍͔͕Ͱ͔͢ 4 ·ͣ͜ΕΛղઆ ఻͍͑ͨ͜ͱ

Slide 5

Slide 5 text

NFUBϑΝΠϧͱ͸

Slide 6

Slide 6 text

6 NFUBϑΝΠϧ͸Ξηοτͷϝλ৘ใ͕ه࿥͞ΕͨϑΝΠϧ IUUQTEPDTVOJUZEDPN%PDVNFOUBUJPO.BOVBM"TTFU8PSLqPXIUNM fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter: internalIDToNameTa externalObjects: {} serializedVersion: mipmaps: mipMapMode: 0 … ը૾ΞηοτΛ JNQPSU ରԠ͢ΔNFUBϑΝΠϧ͕ ࣗಈੜ੒͞ΕΔ 6OJUZͷΠϯεϖΫλ͔Β ͍͡ΕΔ TBNQMFQOH TBNQMFQOHNFUB

Slide 7

Slide 7 text

6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆ଍Λ ετϨεͳ͘ݟ͚ͭΔπʔϧ͸͍͔͕Ͱ͔͢ 7 ͜͜·Ͱ͸0, ఻͍͑ͨ͜ͱ

Slide 8

Slide 8 text

6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆ଍Λ ετϨεͳ͘ݟ͚ͭΔπʔϧ͸͍͔͕Ͱ͔͢ 8 Կ͕ى͜Δͷ͔ ఻͍͑ͨ͜ͱ

Slide 9

Slide 9 text

NFUBϑΝΠϧաෆ଍ͷᜁΓ

Slide 10

Slide 10 text

NFUBϑΝΠϧΛ DPNNJU͠๨ΕΔ όάΔ͔΋ NFUBϑΝΠϧΛ ফ͠๨ΕΔ ࡞ۀͷअຐ

Slide 11

Slide 11 text

NFUBϑΝΠϧΛ DPNNJU͠๨ΕΔ όάΔ͔΋ NFUBϑΝΠϧΛ ফ͠๨ΕΔ ࡞ۀͷअຐ

Slide 12

Slide 12 text

12 NFUBϑΝΠϧͷDPNNJU๨Ε͸όάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUB fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter: ... ςΫενϟͷࢀর ϚςϦΞϧ͔Β ςΫενϟΛ ࢀর͍ͨ͠

Slide 13

Slide 13 text

13 NFUBϑΝΠϧͷDPNNJU๨Ε͸όάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUB fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter: ... NFUB಺ͷ(6*%Λࢀর ࣮ମ ը૾ͷNFUBʹ ॻ͔Εͨ(6*%͕ ϚςϦΞϧଆʹ ॻ͔ΕͯΔ͜ͱͰ ࣮ݱ͞Ε͍ͯΔ

Slide 14

Slide 14 text

14 NFUBϑΝΠϧͷDPNNJU๨Ε͸όάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUBʢผ෺ʣ fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter: ... NFUB಺ͷ(6*%Λࢀর ࣮ମ ΋͠NFUBϑΝΠϧΛ DPNNJU͠๨ΕΔͱɺ ผͷਓͷ؀ڥͩͱ ผͷNFUBϑΝΠϧ͕ ࣗಈੜ੒͞Εͯ͠·͏

Slide 15

Slide 15 text

15 NFUBϑΝΠϧͷDPNNJU๨Ε͸όάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUBʢผ෺ʣ fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter: ... NFUB಺ͷ(6*%Λࢀর ࣮ମ ผͷNFUBʹ͸ผͷ (6*%͕ৼΒΕΔͷͰ ࢀর͕੾ΕΔ

Slide 16

Slide 16 text

16 NFUBϑΝΠϧͷDPNNJU๨Ε͸όάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUBʢผ෺ʣ fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter: ... NFUB಺ͷ(6*%Λࢀর ࣮ମ ςΫενϟͷࢀর ݁ՌతʹϚςϦΞϧ͸ ςΫενϟΛࢀর Ͱ͖ͳ͘ͳͬͯόάΔ

Slide 17

Slide 17 text

NFUBϑΝΠϧΛ DPNNJU͠๨ΕΔ όάΔ͔΋ NFUBϑΝΠϧΛ ফ͠๨ΕΔ ࡞ۀͷअຐ

Slide 18

Slide 18 text

NFUBϑΝΠϧΛফ͠๨ΕΔͱ खݩͰຖ౓ؔ܎ͳ͍ࠩ෼͕ग़ͯ͏͍͟

Slide 19

Slide 19 text

6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆ଍Λ ετϨεͳ͘ݟ͚ͭΔπʔϧ͸͍͔͕Ͱ͔͢ 19 ΍͹͍͠͏͍͟ ఻͍͑ͨ͜ͱ

Slide 20

Slide 20 text

20 ͔͠͠ɺͨͼͨͼNFUBϑΝΠϧͷ աෆ଍͕ຖ೔ൃੜ͍ͯͨ͠ ͦ͜ͰNFUBϑΝΠϧͷաෆ଍Λ໷ͳ໷ͳ ௚͢༯ਫ਼͞Μ͕஀ੜͨ͠ͱ͍͏ʜ

Slide 21

Slide 21 text

ͦ͜Ͱ༯ਫ਼͞ΜΛۤߦ͔Βղ์͢Δ πʔϧΛͭ͘Γ·ͨ͠

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

23 $ cd /path/to/unity/project $ unity-meta-check -silent missing: Autofix/Missing.meta missing: Missing.meta dangling: Autofix/Dangling.meta dangling: Dangling.meta λʔϛφϧͰ΋؆୯ʹ࣮ߦͰ͖Δ

Slide 24

Slide 24 text

24 NFUBʹաෆ଍͕͋Δ13ͷNFSHFΛ CMPDL͢Ε͹ଞͷਓͷ࡞ۀΛࢭΊͳ͍ͰࡁΉ

Slide 25

Slide 25 text

25 ݕࠪͷ࣮ߦ࣌ؒ෼࡞ۀ͕ ࢭ·ͬͯ͠·͏͜ͱʹ஫ҙ NFUBʹաෆ଍͕͋Δ13ͷNFSHFΛ CMPDL͢Ε͹ଞͷਓͷ࡞ۀΛࢭΊͳ͍ͰࡁΉ

Slide 26

Slide 26 text

6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆ଍Λ ετϨεͳ͘ݟ͚ͭΔπʔϧ͸͍͔͕Ͱ͔͢ 26 ͜͜ॏཁ ఻͍͑ͨ͜ͱ

Slide 27

Slide 27 text

ετϨεͷͳ͞

Slide 28

Slide 28 text

Ξηοτ ࣮ߦ଎౓ඵ

Slide 29

Slide 29 text

+FOLJOTʹࡌ͚ͬͯ΋ ࣮ߦ଎౓ඵະຬ +FOLJOTͷ଴ͪ࣌ؒͱήʔϜຊମͷQVMM࣌ؒͷΦʔόʔϔου͕௕͍

Slide 30

Slide 30 text

΍͔ͬͨʜʂʁʢϑϥάʣ

Slide 31

Slide 31 text

31 +FOLJOT্Ͱੜ੒͞ΕͨΞηοτ ʢϚελʔσʔλ౳ʣʹ NFUBϑΝΠϧ͕ͳ͍ʜ

Slide 32

Slide 32 text

32 $ unity-meta-check | unity-meta-autofix \ -fix-missing \ -fix-dangling \ ./Assets/AutoGenerated/ ؆қతͳBVUPpYػೳ͸͡Ί·ͨ͠

Slide 33

Slide 33 text

͜ΕͰ࣮ӡ༻ʹ৐Ε·ͨ͠

Slide 34

Slide 34 text

ӡ༻ͯ͠Θ͔ͬͨ͜ͱ

Slide 35

Slide 35 text

NFUBաෆ଍໰୊͸ ୭΋ѱ͘ͳ͔ͬͨ ਓʑ͸6OJUZͱ(JUʹ ຋࿔͞Ε͍ͯΔ͚ͩͩͬͨ ࠔͬͯͨਓ͕6OJUZ࠶ىಈͨ͠Β࣏Γ·ͨ͠ใࠂ͢ΔͳͲṖ͕ਂ͍ (JU͸ۭϑΥϧμΛ෮ݩ͠ͳ͍ͷͰରԠͨ͠NFUB͕஦ʹු͘ ʢͨͩ͠6OJUZ͔Β͸ۭϑΥϧμ࡞ͬͯ͘ΕΔʣ

Slide 36

Slide 36 text

·ͱΊ 36 6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆ଍Λ ετϨεͳ͘ݟ͚ͭΔπʔϧ͸͍͔͕Ͱ͔͢

Slide 37

Slide 37 text

37 Πϯετʔϧํ๏͸3&"%.&ΛΈ͍ͯͩ͘͞ɿ https://github.com/DeNA/unity-meta-check