Version: 2022.3
언어: 한국어

SessionState

class in UnityEditor

매뉴얼로 전환

설명

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.

정적 함수

EraseBoolErase a Boolean entry in the key-value store.
EraseFloatErase a Float entry in the key-value store.
EraseIntErase an Integer entry in the key-value store.
EraseIntArrayErase an Integer array entry in the key-value store.
EraseStringErase a String entry in the key-value store.
EraseVector3Erase a Vector3 entry in the key-value store.
GetBoolRetrieve a Boolean value.
GetFloatRetrieve a Float value.
GetIntRetrieve an Integer value.
GetIntArrayRetrieve an Integer array.
GetStringRetrieve a String value.
GetVector3Retrieve a Vector3.
SetBoolStore a Boolean value.
SetFloatStore a Float value.
SetIntStore an Integer value.
SetIntArrayStore an Integer array.
SetStringStore a String value.
SetVector3Store a Vector3.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961