using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.IO;
public class ReNameTool : EditorWindow
{
private static string prefix = "";
private static string suffix = ""; // 确保这里定义了 suffix
private Vector2 scrollPosition;
private List<RenamePreview> renamePreviews = new List<RenamePreview>();
[MenuItem("Window/Asset Rename Tool")]
public static void ShowWindow()
{
GetWindow<ReNameTool>("Asset Rename Tool");
}
private void OnEnable()
{
Selection.selectionChanged += OnSelectionChanged;
}
private void OnDisable()
{
Selection.selectionChanged -= OnSelectionChanged;
}</