Comments (11)
from nino.
啥信息都没提供光截个这图我咋知道你遇到啥问题。
from nino.
from nino.
Vector2Int 也截图啊
from nino.
别用改造过的代码,用原代码先试试
from nino.
Vector2也报错。试过了
Vector2Int 是unity自带的
from nino.
from nino.
别发截图了,请直接把代码粘过来
from nino.
写个能复现的案例
from nino.
using Vector3 = System.Numerics.Vector3;
[NinoSerialize]
public partial class TestB
{
public Dictionary<int, TestC> TestCs;
}
[NinoSerialize]
public partial class TestC
{
public Vector3 v2;
public Vector3[] v2s;
}
public class Test : MonoBehaviour
{
public void Awake()
{
TestB testB = new TestB();
testB.TestCs = new();
TestC c1 = new TestC();
c1.v2 = new Vector3( 10,0, 10);
c1.v2s = new []
{
new Vector3( 10,0, 10),
new Vector3( 11,0, 11)
};
testB.TestCs.Add(0, c1);
var bytes = Serializer.Serialize(testB);
TestB b = Deserializer.Deserialize<TestB>(bytes);
}
}
from nino.
using Vector3 = System.Numerics.Vector3;
[NinoSerialize]
public partial class TestC
{
public Vector3[] v2s;
}
public class Test : MonoBehaviour
{
public void Awake()
{
TestC c1 = new TestC();
c1.v2s = new []
{
new Vector3( 10,0, 10),
new Vector3( 11,0, 11)
};
var bytes = Serializer.Serialize(c1);
TestC b = Deserializer.Deserialize<TestC>(bytes);
int n = 0;
}
}
from nino.
Related Issues (20)
- v1.2.0 ilruntime报错 无法使用 HOT 1
- 嵌套使用生成失败
- NinoSerialize(false)序列化报错
- 是否可以支持序列化分组
- jengine 热更工程List反序列化问题 HOT 2
- 使用Jengine 在热更工程里无法反序列化
- 序列化成功后 反序列化失败 HOT 1
- 反序列化Int类型错误 HOT 3
- -1 (int类型)会被Nino 反序列化成 255
- unsigned serialization error
- 能不能支持一下多态 HOT 6
- 在je热更新工程 有问题
- 热更工程 反序列化失败 HOT 1
- 多态相关,抽象类直接作为成员变量时序列化报错 HOT 8
- 1.0.21版本32位内存对齐有问题
- 自定收集标签[NinoSerialize(true)]下的忽略标签[NinoIgnore]无效。 HOT 1
- 模拟器下,对齐导致安卓闪退问题。
- 疑似有内存泄漏 HOT 6
- 请教 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nino.