So, I have a Scriptable Object(SO) as databases that contain many data and one of them is the Vector3 of the object in the new scene. I want to jump from scene 0 to scene 1 with Vector3 data from SO as the spawn point. Here's an example of the code.
'''
public Transform target;
public Vector3 loc; //This is just a dummy, I'll retrieve data from SO later.
void Start()
{
target = GameObject.FindWithTag("Player").transform;
target.transform.position = Vector3(loc); //Here is the problem.
}
'''
I can store data as x, y, z then pass it to new Vector3, but I think that will be inefficient. Any idea? I've been searching through the internet and nothing satisfied me.