示例#1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        FindScriptableobjects findScriptableobjects = target as FindScriptableobjects;

        GUILayout.Space(50);

        //元のInspector部分を表示
        if (GUILayout.Button("適用"))
        {
            findScriptableobjects.find_scriptableobjects_in_folda();
        }

        //EditorApplication.playmodeStateChanged += () =>
        //{
        //    findScriptableobjects.find_scriptableobjects_in_folda();
        //};

        EditorSceneManager.sceneOpened += OnOpened;
    }
示例#2
0
    private static void OnOpened(Scene scene, OpenSceneMode mode)
    {
        FindScriptableobjects findScriptableobjects = new FindScriptableobjects();

        findScriptableobjects.find_scriptableobjects_in_folda();
    }