I have a SO that contains some data:
[CreateAssetMenu(fileName = "Map Information", menuName = "Map", order = 0)]
public class Map : ScriptableObject
{
public Terrain[] tiles;
}
Terrain is a class:
public class Terrain
{
//things and functions
}
the problem is that when I get a reference of this SO and pass some of this terrains to other classes and scripts, when I edit those the SO keep those changes, i have tried making Terrain a struct but it doesn't work and keep keeping changes.