상품 설명
unityでオブジェクトにアタッチされたスクリプトのpublic関数をエディタ上から簡単にデバッグできるエディタ拡張です。
私が普段デバッグで使用しているものを、戻り値/引数の型を気にせず分かりやすく使えるように改造したものとなります。
詳細
unitypackageをインポートすると、自動でゲームオブジェクトにアタッチされたすべてのpublic関数がエディタ上から実行できるようになります。
引数あり、戻り値ありの関数にも対応しています。
もちろんvoid型にも対応しています。
戻り値についてはエディタ上に表示されます。
<対応している引数の型>
int/float/bool/string/Vector2/Vector3/Color/Enum/gameObject
<対応している戻り値の型>
ToStringメゾットに対応している型全て
対応している型以外の引数があると、引数名の横に"Unsupported parameter type"と表示されますが、ボタンを押せば関数はそのまま実行できます。
その場合、引数はnull渡しとなりますので、ご注意ください。
返り値または引数にgameObjectをもたなければ、エディタ非再生状態で関数実行できますが、当然スクリプト内のStartやAwakeの関数は実行されませんのでStart等で初期化をしている場合には再生状態でご使用ください。
(注)
関数のオーバーロードには対応していません。
スクリプト上の一番上に書かれている関数のみが動き、その他のオーバーロード関数はエラーが出力されるはずですが未検証です。
内容物
・unitypackage
unityのアセットにドラッグ&ドロップでインポートできます。
インポートするとEditorフォルダに本エディタ拡張が、PublicDubuggerTestフォルダにテスト用のスクリプトが生成されます。
インポートのみで機能するようになるため、そのほかの特別な操作は不要です。
・readme.txt(商品説明と同内容)
ライセンス
〇本エディタ拡張において、下記内容を禁止します。
・再頒布(無償/有償、未改変/改変問わず)
・本エディタ拡張が内包された状態でプロジェクトを組織やGithub等で共有し購入者以外から見れる状態にすること。
※ただし、10人以下のチームにてそのメンバーしかアクセスできないCloudやサーバー上で共有する場合については許可します。
・その他、公序良俗に反する行為。
〇本エディタ拡張において、下記内容を許可します。
・個人での使用において本エディタ拡張を改変し使用すること。
〇その他
・本エディタ拡張使用において、作者による使用サポートはしません。(問い合わせ対応もしません)
・本エディタ拡張使用において損害が発生した場合、本エディタ拡張に起因するものであったとしても作者は一切責任を負いません。あくまで自己責任にてサポートツールの一種としてご利用ください。
動作環境
unity 2021.3.19f1にて動作確認済。
特殊なことはしていないので他のバージョンでも動作するはずですが未確認。
その他
サポート等の問い合わせ対応はしませんが、改善要望/バグ報告は歓迎です。
メッセージ機能よりご連絡ください。
-English-
This content is a machine translation. If the content differs from the Japanese version, the Japanese version will apply.
This is an editor extension for Unity that allows you to easily debug public functions of scripts attached to objects in the editor. I've modified the tool I usually use for debugging to make it easy to use without worrying about return and argument types.
◆ Details
After importing the Unity package, all public functions attached to game objects will automatically become accessible from the editor. The extension supports functions with arguments and return values, as well as void functions. Return values are displayed in the editor.
<Supported argument types>
int/float/bool/string/Vector2/Vector3/Color/Enum/GameObject
<Supported return value types>
All types that support the ToString method
If there's an unsupported argument type, "Unsupported parameter type" will be displayed next to the argument name, but you can still press the button to execute the function. In this case, the argument will be passed as null, so be careful.
If the return value or argument does not involve a GameObject, you can execute the function in a non-play state in the editor. However, please note that functions like Start and Awake within the script will not be executed, so use it in play mode if you initialize them in Start or similar functions.
(Note)
Function overloading is not supported. Only the top function written in the script will work, and other overloaded functions are expected to output errors, but this has not been tested.
◆ Contents
・Unitypackage
You can import it by dragging and dropping it into Unity assets. Upon import, the editor extension will be placed in the Editor folder, and test scripts will be generated in the PublicDebuggerTest folder. No further special actions are needed, as the functionality will be available upon import.
・readme.txt
◆ License
The following is prohibited for this editor extension:
・Redistribution (free/paid, unmodified/modified)
・Sharing projects containing this editor extension in a state visible to non-purchasers within an organization or on GitHub, etc.
※ However, sharing on a cloud or server accessible only by members of a team with 10 or fewer people is allowed.
・Other acts contrary to public order and morals.
The following is allowed for this editor extension:
・Modifying and using this editor extension for personal use.
Others:
・No usage support will be provided by the author for this editor extension (including inquiries).
・The author assumes no responsibility for any damages incurred in using this editor extension, even if they are due to the editor extension. Please use it as a support tool at your own risk.
◆ System Requirements
Tested and confirmed to work on Unity 2021.3.19f1. It should work on other versions as well, as nothing special is being done, but this has not been confirmed.
모든 리뷰
더보기리뷰 등록
리뷰를 작성하려면 로그인이 필요합니다.
로그인하고 리뷰 쓰기