Passing values from editor to game

Hi,
Im working on some editor Extension for unity. In that extension i caltulate some data and i need to store it somewhere. Problem is that i want to use this comuted values in Game. But unfortunately, unity erase almost all of data, when i run game in editor. Only one way, i found is that, i can store theese values to public variables of extended MonoBehavior class. But this works only when these variables are visible in editor (a.i int,string,…) but not ArrayList ,2D array etc.

Here is some example

public class GraphRepresentation : MonoBehaviour
{
    public BasicPoint[] allBasicPoints; //works fine, all values passed to these are also in Game
    public int[][] neighbourMatrix;//dont work

I tried to make this variable private, static and I tried DontDestroyOnLoad in Awake function. Thanks for help

Serialize to XML or use PlayerPrefs to store data.

use EditorPrefs ,playerpres won’t work in editor

PlayerPrefs works just fine from the editor.

Also, EditorPrefs aren’t available in game builds and he said he needed to store data to use at runtime in the game so that’s not an option.