Unity3d 在游戏模式下使ScriptableObject持久化
现在,当我在游戏模式下更改ScriptableObject中的字段值时,返回到编辑器,更改仍然是持久的。任何使其不持久的方法(在播放之前返回值)您需要在启动时克隆ScriptableObjectUnity3d 在游戏模式下使ScriptableObject持久化,unity3d,Unity3d,现在,当我在游戏模式下更改ScriptableObject中的字段值时,返回到编辑器,更改仍然是持久的。任何使其不持久的方法(在播放之前返回值)您需要在启动时克隆ScriptableObject private void Awake() { myScriptableObject = Instantiate(myScriptableObject); }
private void Awake()
{
myScriptableObject = Instantiate(myScriptableObject);
}