1
5
是的,你可以。看看 Reflection
|
2
2
实现这一点有几种方法。例如,使用反射。它需要一个行代码:
甚至可以将对象序列化为JSON或XML,然后尝试从中获取值:
|
3
1
虽然这可能适用于您的需要,但它可能不是最好的解决方案,正如grek40和damien_在下面的评论中指出的,由于一些限制。 原始答案: http://rextester.com/DQOBW76322
|
Robert King · Unity C#语法问题-转换位置 1 年前 |
JBryanB · 如何从基本抽象类访问类属性 1 年前 |
law · 检查答案按钮的输入字符串格式不正确 2 年前 |
i_sniff_ket · 在unity之外使用unity类 2 年前 |