Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Unity の meta ファイルの過不足の merge を防止しよう / How to pr...
Search
Kuniwak
PRO
March 24, 2021
Programming
2
3k
Unity の meta ファイルの過不足の merge を防止しよう / How to prevent missing or dangling meta files
Gotanda.unity #17 sponsored by 株式会社キッズスター 2021/3/24
https://meetup.unity3d.jp/jp/events/1279
Kuniwak
PRO
March 24, 2021
Tweet
Share
More Decks by Kuniwak
See All by Kuniwak
欠陥を早期に発見するための Software Engineer in Test とその重要性 / What is Software Engineer in Test and How they works
orgachem
PRO
21
3.9k
住宅を WebXR で評価しよう / Evaluating My Home by WebXR
orgachem
PRO
0
73
HOME VR
orgachem
PRO
1
790
uGUI の自動操作の考え方と操作方法
orgachem
PRO
1
1.3k
Swift Macro に備えて構文木を 10min で学ぶ / Learn Syntax Tree for Swift Macro in 10 minutes
orgachem
PRO
1
1.1k
SoftWare Engineer in Test のおしごと / What is SWET
orgachem
PRO
1
1k
私と Nature Remo E / Nature Remo E
orgachem
PRO
0
25k
存在しないアセットへの参照と 未公開アセットでのネタバレに どう立ち向かうか / How to prevent missing assets and spoilers by assets
orgachem
PRO
1
1k
睡眠する技術 / Technology to Sleep
orgachem
PRO
15
14k
Other Decks in Programming
See All in Programming
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
CSC509 Lecture 13
javiergs
PRO
0
110
Figma Dev Modeで変わる!Flutterの開発体験
watanave
0
130
CSC509 Lecture 09
javiergs
PRO
0
140
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
役立つログに取り組もう
irof
28
9.6k
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
RubyLSPのマルチバイト文字対応
notfounds
0
120
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
Contemporary Test Cases
maaretp
0
140
AWS IaCの注目アップデート 2024年10月版
konokenj
3
3.3k
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
110
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
88
5.7k
Embracing the Ebb and Flow
colly
84
4.5k
Adopting Sorbet at Scale
ufuk
73
9.1k
Building an army of robots
kneath
302
43k
Building Adaptive Systems
keathley
38
2.3k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
GraphQLとの向き合い方2022年版
quramy
43
13k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Navigating Team Friction
lara
183
14k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
Become a Pro
speakerdeck
PRO
25
5k
Transcript
6OJUZͷNFUBϑΝΠϧͷ աෆΛࢭ͠Α͏ Kuniwak - DeNA Co.,Ltd. 2021.03.24 Gotanda.unity #17
ؒͰ͍͑ͨ͜ͱ
6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆΛ ετϨεͳ͘ݟ͚ͭΔπʔϧ͍͔͕Ͱ͔͢ 3 ͍͑ͨ͜ͱ
6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆΛ ετϨεͳ͘ݟ͚ͭΔπʔϧ͍͔͕Ͱ͔͢ 4 ·ͣ͜ΕΛղઆ ͍͑ͨ͜ͱ
NFUBϑΝΠϧͱ
6 NFUBϑΝΠϧΞηοτͷϝλใ͕ه͞ΕͨϑΝΠϧ IUUQTEPDTVOJUZEDPN%PDVNFOUBUJPO.BOVBM"TTFU8PSLqPXIUNM fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter: internalIDToNameTa externalObjects:
{} serializedVersion: mipmaps: mipMapMode: 0 … ը૾ΞηοτΛ JNQPSU ରԠ͢ΔNFUBϑΝΠϧ͕ ࣗಈੜ͞ΕΔ 6OJUZͷΠϯεϖΫλ͔Β ͍͡ΕΔ TBNQMFQOH TBNQMFQOHNFUB
6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆΛ ετϨεͳ͘ݟ͚ͭΔπʔϧ͍͔͕Ͱ͔͢ 7 ͜͜·Ͱ0, ͍͑ͨ͜ͱ
6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆΛ ετϨεͳ͘ݟ͚ͭΔπʔϧ͍͔͕Ͱ͔͢ 8 Կ͕ى͜Δͷ͔ ͍͑ͨ͜ͱ
NFUBϑΝΠϧաෆͷᜁΓ
NFUBϑΝΠϧΛ DPNNJU͠ΕΔ όάΔ͔ NFUBϑΝΠϧΛ ফ͠ΕΔ ࡞ۀͷअຐ
NFUBϑΝΠϧΛ DPNNJU͠ΕΔ όάΔ͔ NFUBϑΝΠϧΛ ফ͠ΕΔ ࡞ۀͷअຐ
12 NFUBϑΝΠϧͷDPNNJUΕόάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUB fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter:
... ςΫενϟͷࢀর ϚςϦΞϧ͔Β ςΫενϟΛ ࢀর͍ͨ͠
13 NFUBϑΝΠϧͷDPNNJUΕόάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUB fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter:
... NFUBͷ(6*%Λࢀর ࣮ମ ը૾ͷNFUBʹ ॻ͔Εͨ(6*%͕ ϚςϦΞϧଆʹ ॻ͔ΕͯΔ͜ͱͰ ࣮ݱ͞Ε͍ͯΔ
14 NFUBϑΝΠϧͷDPNNJUΕόάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUBʢผʣ fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter:
... NFUBͷ(6*%Λࢀর ࣮ମ ͠NFUBϑΝΠϧΛ DPNNJU͠ΕΔͱɺ ผͷਓͷڥͩͱ ผͷNFUBϑΝΠϧ͕ ࣗಈੜ͞Εͯ͠·͏
15 NFUBϑΝΠϧͷDPNNJUΕόάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUBʢผʣ fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter:
... NFUBͷ(6*%Λࢀর ࣮ମ ผͷNFUBʹผͷ (6*%͕ৼΒΕΔͷͰ ࢀর͕ΕΔ
16 NFUBϑΝΠϧͷDPNNJUΕόάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUBʢผʣ fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter:
... NFUBͷ(6*%Λࢀর ࣮ମ ςΫενϟͷࢀর ݁ՌతʹϚςϦΞϧ ςΫενϟΛࢀর Ͱ͖ͳ͘ͳͬͯόάΔ
NFUBϑΝΠϧΛ DPNNJU͠ΕΔ όάΔ͔ NFUBϑΝΠϧΛ ফ͠ΕΔ ࡞ۀͷअຐ
NFUBϑΝΠϧΛফ͠ΕΔͱ खݩͰຖؔͳ͍͕ࠩग़ͯ͏͍͟
6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆΛ ετϨεͳ͘ݟ͚ͭΔπʔϧ͍͔͕Ͱ͔͢ 19 ͍͠͏͍͟ ͍͑ͨ͜ͱ
20 ͔͠͠ɺͨͼͨͼNFUBϑΝΠϧͷ աෆ͕ຖൃੜ͍ͯͨ͠ ͦ͜ͰNFUBϑΝΠϧͷաෆΛͳͳ ͢༯ਫ਼͞Μ͕ੜͨ͠ͱ͍͏ʜ
ͦ͜Ͱ༯ਫ਼͞ΜΛۤߦ͔Βղ์͢Δ πʔϧΛͭ͘Γ·ͨ͠
None
23 $ cd /path/to/unity/project $ unity-meta-check -silent missing: Autofix/Missing.meta missing:
Missing.meta dangling: Autofix/Dangling.meta dangling: Dangling.meta λʔϛφϧͰ؆୯ʹ࣮ߦͰ͖Δ
24 NFUBʹաෆ͕͋Δ13ͷNFSHFΛ CMPDL͢Εଞͷਓͷ࡞ۀΛࢭΊͳ͍ͰࡁΉ
25 ݕࠪͷ࣮ߦ࣌ؒ࡞ۀ͕ ࢭ·ͬͯ͠·͏͜ͱʹҙ NFUBʹաෆ͕͋Δ13ͷNFSHFΛ CMPDL͢Εଞͷਓͷ࡞ۀΛࢭΊͳ͍ͰࡁΉ
6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆΛ ετϨεͳ͘ݟ͚ͭΔπʔϧ͍͔͕Ͱ͔͢ 26 ͜͜ॏཁ ͍͑ͨ͜ͱ
ετϨεͷͳ͞
Ξηοτ ࣮ߦඵ
+FOLJOTʹࡌ͚ͬͯ ࣮ߦඵະຬ +FOLJOTͷͪ࣌ؒͱήʔϜຊମͷQVMM࣌ؒͷΦʔόʔϔου͕͍
͔ͬͨʜʂʁʢϑϥάʣ
31 +FOLJOT্Ͱੜ͞ΕͨΞηοτ ʢϚελʔσʔλʣʹ NFUBϑΝΠϧ͕ͳ͍ʜ
32 $ unity-meta-check | unity-meta-autofix \ -fix-missing \ -fix-dangling \
./Assets/AutoGenerated/ ؆қతͳBVUPpYػೳ͡Ί·ͨ͠
͜ΕͰ࣮ӡ༻ʹΕ·ͨ͠
ӡ༻ͯ͠Θ͔ͬͨ͜ͱ
NFUBաෆ ୭ѱ͘ͳ͔ͬͨ ਓʑ6OJUZͱ(JUʹ ࿔͞Ε͍ͯΔ͚ͩͩͬͨ ࠔͬͯͨਓ͕6OJUZ࠶ىಈͨ͠Β࣏Γ·ͨ͠ใࠂ͢ΔͳͲṖ͕ਂ͍ (JUۭϑΥϧμΛ෮ݩ͠ͳ͍ͷͰରԠͨ͠NFUB͕ʹු͘ ʢͨͩ͠6OJUZ͔ΒۭϑΥϧμ࡞ͬͯ͘ΕΔʣ
·ͱΊ 36 6OJUZͰॏཁͳNFUBϑΝΠϧͷաෆΛ ετϨεͳ͘ݟ͚ͭΔπʔϧ͍͔͕Ͱ͔͢
37 Πϯετʔϧํ๏3&"%.&ΛΈ͍ͯͩ͘͞ɿ https://github.com/DeNA/unity-meta-check