#unity/日常积累
先写一个跟标签相关的脚本;
![[Pasted image 20220624123158.png]]
再写一个Asset文件相关的类; 需要注意的是,这里是入口;
![[Pasted image 20220624123221.png]]
再写一个,Asset相关的,面板类; 需要注意的是,target指的就是,它对应编辑的类; 逻辑是,在点击按钮之后,会往配置文件里,添加数据,然后保存asset文件;
![[Pasted image 20220624123633.png]]
整一个;
![[Pasted image 20220624123455.png]]
随便命名;
![[Pasted image 20220624123516.png]]
默认的面板配置:
![[Pasted image 20220624123529.png]]
点一下; 写入成功;
![[Pasted image 20220624123655.png]]