Hi, To get straight to it, How can I move an instantiated prefab on the Y axis? I’ve been trying some to use AddForce() and transform.Translate(0, 1, 0), but for some reason they’re not working.
Here is my script to instantiate the prefab…
void scrollBackground()
{
Debug.Log("Moving object...");
//To move prefab
obstacle.transform.Translate (0, 1, 0);
}
How can I fix this?