Skip to content

Accessing Preference Values

UrFriendKen edited this page Mar 19, 2023 · 1 revision

Accessing Preference Values

To read and write preference values use:

public T Get<T>(string key);
public void Set<T>(string key, T value);

Currently supported preference types are:

  • bool
  • int
  • float
  • string

For example,

PrefManager.Get<bool>("boolPreference");

Clone this wiki locally