初始化obs/Unity仓库
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
1.连线信息起始坐标没有被正确保存序列化
|
||||
serializeVector3类不能继承MonoBehaviour.这会导致序列化完全失效.
|
||||
- MonoBehaviour 是 Unity 组件的基类,必须依附于 GameObject 存在
|
||||
- ScriptableObject 只能序列化 **纯数据类**(不继承 MonoBehaviour 的类)
|
||||
我由于给serializeVector3继承了MonoBehaviour,导致了我的连线保存以及我的maplayout当中并不能正确的序列化连线的坐标信息导致出现了问题.
|
||||
![[Pasted image 20250222164926.png]]
|
||||
|
||||
![[Pasted image 20250222164957.png]]
|
||||
Reference in New Issue
Block a user