Search Unity

Where/How do you persist the settings of your editor plugin?

Discussion in 'Immediate Mode GUI (IMGUI)' started by zwcloud, Aug 5, 2016.

  1. zwcloud

    zwcloud

    Joined:
    Mar 15, 2016
    Posts:
    377
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Why not? Use a ScriptableObject. Also, if you do use PlayerPrefs, it would actually be EditorPrefs.

    --Eric
     
  3. zwcloud

    zwcloud

    Joined:
    Mar 15, 2016
    Posts:
    377
    Oh, I did not know about the EditorPrefs until just now. I'll try it. Thank you.

    Using a ScriptableObject will generate an asset file inside the Asset directory. I don't think it is a good choice for editor-only settings.
     
    Last edited: Aug 5, 2016