Esempio n. 1
0
    void OnGUI()
    {
        GUILayout.Label("Change Assets Name Setting", EditorStyles.boldLabel);

        path            = EditorGUILayout.TextField("Assets Path ", path);
        splitExtension  = EditorGUILayout.TextField("Split", splitExtension);
        changeExtension = EditorGUILayout.TextField("Extension", changeExtension);


        ChangeAssetEditor.SetChangeAssetParameter(path, splitExtension, changeExtension);

        if (GUILayout.Button("Change Assets Name"))
        {
            ChangeAssetEditor.ReplaceFileName(splitExtension + changeExtension);;
        }
    }
    void OnGUI()
    {
        GUILayout.Label("Change Sprite Setting", EditorStyles.boldLabel);

        path            = EditorGUILayout.TextField("Assets Path", path);
        splitExtension  = EditorGUILayout.TextField("Split", splitExtension);
        changeExtension = EditorGUILayout.TextField("Extension", changeExtension);


        ChangeAssetEditor.SetChangeAssetParameter(path, splitExtension, changeExtension);

        if (GUILayout.Button("Change Assets Sprite"))
        {
            ChangeAssetEditor.FindAllObjInHierarchy();
        }

        if (GUILayout.Button("Reverse Change Sprite"))
        {
            ChangeAssetEditor.RevertAllObjInHierarchy();
        }
    }