using Unity.VisualScripting; using UnityEngine; using UnityEngine.UI; public class ButtonContentLoader : MonoBehaviour { [Header("文件夹路径")] public string folderPath; private string basePath; [Header("展示面板预制体")] public GameObject contentPanelPrefab; //[Header("面板挂载位置")] Transform parentTransform; private GameObject currentPanelInstance; private void Awake() { parentTransform = GameObject.Find("FileReader").transform; basePath = Application.streamingAssetsPath; GetComponent