x


how to load gameobject from one scene to other?

i am having 2 game objects as male and female. by clicking on button i am getting that particular object in first scene. after in second scene i want to start the game by that selected game object. so how to get that previous selected game object to the second scene?

more ▼

asked Apr 18 '12 at 01:04 PM

gmraju333 gravatar image

gmraju333
0 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

Using DontDestroyOnLoad, applied to both your objects. When you load one of them in the first scene, it will persist in the scenes that you will load in a second time.

more ▼

answered Apr 18 '12 at 01:07 PM

BiG gravatar image

BiG
4.7k 4 13 49

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2086
x1255
x841
x436

asked: Apr 18 '12 at 01:04 PM

Seen: 729 times

Last Updated: Apr 18 '12 at 01:07 PM