以下の内容はhttps://baba-s.hatenablog.com/entry/2020/02/19/090000より取得しました。


【Unity】エディタで使用するツール時が変更された時に呼び出されるイベント

概要

f:id:baba_s:20191128180642p:plain

エディタで使用するツール時が変更されると

using UnityEditor;
using UnityEditor.EditorTools;
using UnityEngine;

[InitializeOnLoad]
public static class Example
{
    static Example()
    {
        EditorTools.activeToolChanged  += () => Debug.Log( "changed" );
        EditorTools.activeToolChanging += () => Debug.Log( "changing" );
    }
}

EditorTools.activeToolChangedEditorTools.activeToolChanging が呼び出されます




以上の内容はhttps://baba-s.hatenablog.com/entry/2020/02/19/090000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14