0

Right now, when I change the value of a field in ScriptableObject in game mode, back to editor, the change is still persistent. Any way to make it not persistent( go back to value before playing)

1 Answer 1

1

You need to clone your ScriptableObject on startup.

private void Awake()
{
    myScriptableObject = Instantiate(myScriptableObject);
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.