SessionState is a Key-Value Store intended for storing and retrieving Editor session state that should survive assembly reloading.
The state information stored in SessionState is cleared when Unity exits. For storing state information that should be persistent across Unity Editor sessions use EditorPrefs.
EraseBool | Erase a Boolean entry in the key-value store. |
EraseFloat | Erase a Float entry in the key-value store. |
EraseInt | Erase an Integer entry in the key-value store. |
EraseIntArray | Erase an Integer array entry in the key-value store. |
EraseString | Erase a String entry in the key-value store. |
EraseVector3 | Erase a Vector3 entry in the key-value store. |
GetBool | Retrieve a Boolean value. |
GetFloat | Retrieve a Float value. |
GetInt | Retrieve an Integer value. |
GetIntArray | Retrieve an Integer array. |
GetString | Retrieve a String value. |
GetVector3 | Retrieve a Vector3. |
SetBool | Store a Boolean value. |
SetFloat | Store a Float value. |
SetInt | Store an Integer value. |
SetIntArray | Store an Integer array. |
SetString | Store a String value. |
SetVector3 | Store a Vector3. |