Coder Social home page Coder Social logo

unitycommandlinetools's Introduction

UnityCommandLineTools

GitHub package.json version

Unityに同梱されているCommandLineToolをスクリプトから制御する

概要

UnityEditorに同梱されている各種コマンドラインツールをスクリプト内から実行することが出来ます。 サンプルとしてEditor拡張を用意しています。

対応済みTools

  • WebExtract
  • binary2text
  • diff
  • mcs
  • pdb2mdp

Sampleを使ってAssetBundeの中身を確認してみよう!

AssetBunldeの中身を確認する為には、大まかに下記の手順となります。

  1. AssetBunldを展開(WebExtract)
  2. バイナリファイルを人間が読めるTextファイルへ変換する(binarry2text)

AssetBundleを展開する

  1. Window > UTJ > UnityCommandLineTools > WebExtractを選択する

    e2c5dac8f34695ff68916aacea7ab70a


  2. Open Binaryボタンを押して、目的のAssetBundleファイルを選択する

    d77d426e58a6a80bbd5658418b884cc1


  3. Doneボタンを押してAssetBundleを展開します。 AssetBundleと同じフォルダーに{AssetBundle名}_dataというフォルダが作成され、そのフォルダー内にCAB-Hash値というファイル名のバイナリファイルが作成されます。

    b2936a47a2e0347126403db9fe1d2ee0


バイナリファイルをテキストファイルへ変換する

  1. Window > UTJ > UnityCommandLineTools > binary2Textを選択する
  2. Open Binaryで展開されたAssetBundle(CAB-Hash値)ファイルを選択する
  3. Save Asでテキストファイルの出力先を選択する
  4. Doneを押す

    bfd60e726ed9e912882d55108fe92cb8

ClassIDに関してはこちらをご確認下さい。 また、こちらの記事がテキストファイルの内容の理解を助けます。

以上です。

unitycommandlinetools's People

Contributors

katsumasa avatar samuryu 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.