#unity/日常积累
例如,先定一个结构体:
![[Pasted image 20220928111507.png]]
然后,在Start函数里,弄一个for循环,加测试数据,再debug打印出来,只拿其中的一个数据,ToArray()序列化操作
![[Pasted image 20220928111545.png]]
最终打印结果:
![[Pasted image 20220928111451.png]]