All the scripts which inherit from MonoBehaviour are serializable,but your custom classes are not. To inform unity that you want yourclass to be serialized you have to use the [System.Serializable]attribute:
Custom Editor losing settings on Play
最新推荐文章于 2020-09-13 21:39:46 发布