format
typescript
DataLibrary.SetData(file_name, data)class: DataLibrary
description
Store data and assign it a name.
parameter
| param_name | type | description |
|---|---|---|
| file_name | string | The name of the data. |
| data | string | The data to be stored. |
reture
| type | description |
|---|---|
void |
code example
typescript
let library = DataLibrary.projectLibrary;
let key = "testdata";
let content = "abcdefg";
library.SetData(key, content);
Debug.Log("setdata ", key, " = ", content);