I have a button that when clicked it spawns an item to the player’s inventory. I eventually want to put the spawn button and the player inventory on two separate scenes.
The button is spawned on the content of scroll view, so it has a parented object. How would I go about this?
Answer 1: I think this will help you : Does SceneManager.MoveGameObjectToScene work? - Questions & Answers - Unity Discussions
Keep in mind that GameObjects are default spawned in the active scene, and you can switch this at will. However, the active scene is also used for lighting settings.
Answer 2: when making your button, use the flavor of Instantiate<> that takes a Transform as its second argument, and give it the Transform you want it to be parented to:
Finally I applaud you for breaking things into separate scenes. You’ll never want to work all in one scene again once you feel the freedom of additively loading scenes to build up a single “mode.”