Skip to main content

SaveKeyAndValue

Description

Store temporary data locally. SaveKeyAndValue is a method that stores Experience case preferences between project sessions. It can store string into the user’s platform registry.

Sets a single string value for the preference identified by the given key and project. You can use ARMODAPI.GetValueByKey to retrieve this value.

Parmaters

ParamDescription
_projectNameUse ProjectName+Key storage to prevent Key from being occupied
_keyUnique Name
_valueData tha nedds to be saved

Method

public void SaveKeyAndValue(string _projectName, string _key, string _value)

Example

internal static API ARMODAPI = new API(nameof(APITest));
private void OnLoad(){
ARMODAPI.SaveKeyAndValue(nameof(APITest),"StoreKey","StoreValue");
Debug.Log(ARMODAPI.GetValueByKey(nameof(APITest),"StoreKey"));
}