Can you change the (clone) hierarchy when 'Join Players when button is pressed' is initiated?

I’m working on a local MP game. I’m using the ‘Join Players when button is pressed’ for controller support within the Player Input Manager. Whenever the ‘Join Players when button is pressed’ is initiated the players clones are duplicated a random spot in the hierarchy, is there a way to change where they clone into (who the parent is)

  • I created a Transform reference for
    the desired Parent within the
  • Then was able to set the parent of my instantiated Player(clone) object to the referenced position

  • public Transform parentPosition;
  • GameObject newPlayer =
  • newPlayer.SetParent(parentPosition);