using Sirenix.OdinInspector;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ExportParItemData : MonoBehaviour
{
public string DeviceName;
///
/// 导出部件数据
///
[Button("导出部件数据")]
private void ExportPartData()
{
PartMark[] tmpPartMarks = GetComponentsInChildren();
List partMarkNames = new List();
foreach (var item in tmpPartMarks)
{
PartMarkName partMarkName = new PartMarkName();
partMarkName.partName = item.gameObject.name;
partMarkNames.Add(partMarkName);
}
ExcelHelper.WriteInfoToExcel(Application.streamingAssetsPath + "/" + DeviceName + GlobalConfig.excelSuffix,partMarkNames);
}
}
public class PartMarkName
{
public string partName;
}