So I am currently using a class that is executing in edit mode to set the variable of an instantiated class on an object that is not executing in edit mode.
What appears to be happening is when i run the program the object script is re-initializing the variable to null. (I have no code in the start or awake function telling it to do that, the variable is declared in the class as public Tile tile).
I thought that changing the class to also execute in edit mode might change it but it did not. What am i doing wrong here?
Why is the Tile variable being set to null at runtime ? Thanks in advance.