Code Monkey home page Code Monkey logo

unity-detect-missing's Introduction

unity-detect-missing

UnityでPrefabの参照がMissingになっているものを検出するeditorスクリプトです。

Overview

Unityで作業しているとなんらかの理由でInspectorのさしている参照先が
missingになってしまうことがあります。
プロジェクト内のprefabファイルからmissing参照を探して警告を出力します。

missing

プロジェクト設定

Editor Settingsの
[Version Control]を[Visible Meta Files]に
[Asset Serialization]を[Force Text]にしてください。

使い方

メニューの[Tools] > [MissingReference]を選択してください。
missingを見つけた場合、Consoleに警告として該当のprefabのパスを表示します。

仕組み

Editor/MissingDetection.csがソースファイルです。
Assetフォルダ以下のprefabファイルの中をテキストとして開き、調べます。
アセットの参照がある場合、guidが記述されています。
missingの場合はこのguidに対応するアセットがプロジェクトに存在しません。
(noneの場合はguidは無い)
AssetDatabase.GUIDToAssetPath(guid)を呼んでパスが取得できない場合、
そのアセットへの参照はmissingとなっています。

unity-detect-missing's People

Contributors

kuriharaan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.