Getting the transform.position on a public static Transform?

Any help would be grand!

I am trying to recieve the transform.position of a global Transform for a Spawn function.

Here’s what I am working with so far…

public class Creature_Movement : MonoBehaviour

{
public static Transform spawnPointForPlayer1;
public static void Spawn()

{

// reset the character’s speed

movement.verticalSpeed = 0.0f;

movement.speed = 0.0f;



// reset the character’s position to the spawnPoint

transform.position = Creature_Movement.spawnPointForPlayer1.transform.position;



}
}

The syntax is correct but it will only work if you have assigned spawnPointForPlayer1 to reference a real Transform, otherwise it is just null. You can’t create detached Transforms yourself, you can only get them from existing GameObjects. So really you need a GameObject in the scene for this to point to; you could then apply make its Start method assign the static to reference itself, for example.