我有这样的课 -
[serializable]
public class DemoClass{
[SerializeField]
public GameObject gameObject;
}
我想使用可序列化存储数据。Unity 文档说 GameObject 是 serializeField。但它给出了例外 -
SerializationException: Type UnityEngine.GameObject is not marked as Serializable.
有人知道吗?