Find objects in different scenes.
Hello Everybody, I'm kinda newbie in unity and I have a problem.
I need to make a simply game where you have 5 objects, 3 Spawnpoints and 4 Scenes. What I have to do is to spawn randomly only 2 of this 5 objects in the 3 Spawnpoints but in different scenes.
For example:
I have one Spawnpoint in scene 2 another in scene 4 and another in scene 1. So I need to find two objects which are randomly spawned.
I know how to spawn randomly in the same scene but no trough scenes.
Thanks.
Answer by tomasantunes · May 30, 2021 at 09:56 PM
You should have a global object that doesn't get destroyed where you define the spawn points and then instantiate the objects when you load the scene.
Your answer
Follow this Question
Related Questions
Launch Pad Issues 1 Answer
Weird distortion of a character 0 Answers
Freezing/pausing everything BUT the player. 0 Answers
PlayerMovement And CameraFollow Relative 0 Answers
[Solved] I can't call Method from Referenced Script 1 Answer