シーンビュー から、 Tool モード API で作成したカスタムツールに以下の方法でアクセスできます。
Clicking the Available Custom Editor Tools drop-down menu in the Scene view Tool toolbar Overlay.
Opening the Tools Settings toolbar Overlay.
一部のカスタムツールはグローバルで 、その他のツールはコンテキスト依存です。
グローバルツールはどんなタイプのゲームオブジェクトにも影響し、どのタイプのゲームオブジェクトを選択しても常に使用可能です。例えば、 トランスフォームツールはどのゲームオブジェクトにも使用できるため、いつでもアクセスできます。
コンテキスト依存カスタムツールは特定のタイプのゲームオブジェクトにのみ影響し、そのタイプのゲームオブジェクトを選択した場合にのみ使用できます。例えば、ライト用のカスタムマニピュレーターは、ライトを選択した場合にのみアクセス可能です。
カスタムエディターツールをアクティブにするには、シーンビューツールバーの 使用可能なカスタムエディターツール ボタンを右クリックします。
以下のセクションに分かれたメニューが開きます。
A. Recent: 最近使用したグローバルツールを表示します。
このセクションは、現在のセッションで初めてグローバルツールをアクティブにするまで表示されません。
B. Selection: 現在の選択内の 1 つ以上のゲームオブジェクトに影響するすべてのコンテキスト依存ツールをリストします。
選択されたものに影響するカスタムツールがない場合は、このセクションは表示されません。
C. Available: 使用可能なすべてのグローバルツールをリストします。
プロジェクトにカスタムツールが含まれている限り、このセクションは常に表示されます。
If the Project does not contain any custom tools, the menu will not have the custom tools icon.
メニューからツールを選択すると、使用可能なカスタムエディターツール ボタンが選択したツールのアイコンに変わります。
The Component Editor Tools appear in the Tools Settings toolbar Overlay in the main Scene view window.
The Tool Settings toolbar contains all contextual custom tools that affect one or more selected GameObjects. It updates automatically whenever the selection changes.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.