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.
| Method | Description |
|---|---|
| EraseBool | Erase a Boolean entry in the key-value store. |
| EraseEntityId | Erase an EntityId entry in the key-value store. |
| EraseEntityIdArray | Erase an EntityId array 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. |
| GetEntityId | Retrieve an EntityId value. |
| GetEntityIdArray | Retrieve an EntityId array. |
| 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. |
| SetEntityId | Store an EntityId value. |
| SetEntityIdArray | Store an EntityId array. |
| SetFloat | Store a Float value. |
| SetInt | Store an Integer value. |
| SetIntArray | Store an Integer array. |
| SetString | Store a String value. |
| SetVector3 | Store a Vector3. |