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

Unity の meta ファイルの過不足の merge を防止しよう / How to pr...

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

March 24, 2021
Tweet

More Decks by Kuniwak

Other Decks in Programming

Transcript

  1. 6 NFUBϑΝΠϧ͸Ξηοτͷϝλ৘ใ͕ه࿥͞ΕͨϑΝΠϧ IUUQTEPDTVOJUZEDPN%PDVNFOUBUJPO.BOVBM"TTFU8PSLqPXIUNM fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter: internalIDToNameTa externalObjects:

    {} serializedVersion: mipmaps: mipMapMode: 0 … ը૾ΞηοτΛ JNQPSU ରԠ͢ΔNFUBϑΝΠϧ͕ ࣗಈੜ੒͞ΕΔ 6OJUZͷΠϯεϖΫλ͔Β ͍͡ΕΔ TBNQMFQOH TBNQMFQOHNFUB
  2. 13 NFUBϑΝΠϧͷDPNNJU๨Ε͸όάͷݪҼʹͳΔ TBNQMFNBUʢϚςϦΞϧʣ TBNQMFQOHʢςΫενϟʣ TBNQMFQOHNFUB fileFormatVersion: 2 guid: 96e963ca667b44… TextureImporter:

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

    ... NFUB಺ͷ(6*%Λࢀর ࣮ମ ΋͠NFUBϑΝΠϧΛ DPNNJU͠๨ΕΔͱɺ ผͷਓͷ؀ڥͩͱ ผͷNFUBϑΝΠϧ͕ ࣗಈੜ੒͞Εͯ͠·͏
  4. 23 $ cd /path/to/unity/project $ unity-meta-check -silent missing: Autofix/Missing.meta missing:

    Missing.meta dangling: Autofix/Dangling.meta dangling: Dangling.meta λʔϛφϧͰ΋؆୯ʹ࣮ߦͰ͖Δ
  5. 32 $ unity-meta-check | unity-meta-autofix \ -fix-missing \ -fix-dangling \

    ./Assets/AutoGenerated/ ؆қతͳBVUPpYػೳ͸͡Ί·ͨ͠