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