I'm working on a project in witch I need to Instantiate(clone) houses, I wrote this code:
public GameObject House;
void start()
{
Instantiate(House, transform.position, Quaternion.identity);
}
I dragged my house prefab into the public GameObject.
This doesn't work, it give no errors, but it just does not spawn in a house.
Please can anyone help me I got stuck with problem for quite some time. I looked up all over the internet but there are no answers for this.
↧