Unity - 修改变量名但不丢失序列化值

using UnityEngine.Serialization;

[FormerlySerializedAs("ValueA")]	//之前的变量名是 ValueA
public int ValueB;

你可能感兴趣的:(Unity,unity)