here is the code
public void FillNextOpenSpot()
GameObject newSelected = Instantiate (selected, openSpotPos, Quaternion.identity) as GameObject;
newSelected.transform.SetParent (nextOpenSpot.transform); // tried this patent
newSelected.transform.parent = nextOpenSpot.transform; // and tried this one too
nextOpenSpot is a game object that I have declared globally. The object is Instantiating but it’s just going straight to the top of the hierarchy. One weird thing that I found in troubleshooting is that it will child to the object the code is attached to if I changed the right side of the assignment of either patent to just “Transform”. It only doesn’t work when I try to specify a different transform.