Hi, I’ve instantiated a row of prefabs, but I’m not able to change their position. I’d like them higher, but they appear at the middle of the screen. I’ve tried to manipulate the position in the instantiate section, but that does nothing. And when I change the local position, it only moves them apart. Thanks!
public Transform pointPrefab;
void Awake()
{
for (int i = 0; i < 10; i++) {
Transform point = Instantiate(pointPrefab, new Vector3(-20, 1, 0), Quaternion.identity);
point.localPosition = new Vector3(1, 0, 0) * i;
}
}