Hi,
I’m trying to instatiate multiple clones of the same prefab. i.e.
using UnityEngine;
using System.Collections;
public class GameManagerScript : MonoBehaviour {
public Transform billboard;
public GameObject bb;
public GameObject bb1;
// Use this for initialization
void Start () {
bb = (GameObject)Instantiate(billboard, new Vector3(1.098382f, -0.23609f, 9.0f), Quaternion.Euler(270, 0, 0));
bb1 = (GameObject)Instantiate(billboard, new Vector3(0, 0, 0), Quaternion.Euler(270, 0, 0));
}
// Update is called once per frame
void Update () {
}
}
However, instead of creating two Billboard(clones), it just creates the first one. Why isn’t the second one being created?
Yes it works now. Thank you.
– pintee