I’m making a prop hunt like game so I can practice coding a little more, but I can’t seem to get an object to spawn as a child to my character controller. I’ve read about transform.parent in the documentation, but I can’t get it to work. Can someone help please.
GameObject clone = (GameObject)Instantiate(prefab, position, rotation);
clone.transform.parent = transform;