EditorPrefs.SetInt("myIntPreference", 10);
int currentLevel = 5; EditorPrefs.SetInt("currentLevel", currentLevel);
[SerializeField] private int _playerScore = 0; private void OnDestroy() { EditorPrefs.SetInt("playerScore", _playerScore); }
using UnityEditor;