Skip to main content

GetValueByKey

Description

Read data temporarily stored on the device

Return

TypeDescription
StringThe data queried

Parameters

ParamDescription
_projectNameUse ProjectName+Key storage to prevent Key from being occupied
_keyUnique name

Method

public string GetValueByKey(string _projectName, string _key)

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"));
}