- Home /
Find an object in a new scene that hasn't been destroyed?
How do I find an object in a new scene that hasn't been destroyed from the previous scene.
When my object makes it through the first scene, it has the DontDestroyOnLoad(object); code applied to it so it will stay in the next scene. How do I access the object to know its there in the new scene?
Answer by WingedCross · Jul 09, 2012 at 11:25 PM
Oh ok thanks Stingman
no problem. but don't post comments as answers :) ins$$anonymous$$d select my answer as the correct one and add a comment to say thank you. It clears up clutter and helps people find an answer easier when searching the site
Answer by stingman · Jul 09, 2012 at 10:15 PM
Use gameObject.Find or gameObject.FindWithTag to locate it. Do this in the Awake or Start function so you only look for it once upon starting the new scene. Just avoid doing this in any function that needs to be called on a lot like Update, Fixed Update etc
Answer by hostman001 · Oct 15, 2012 at 06:33 AM
寓教于乐的游戏 武汉婚纱摄影 武汉SEO Buy cheap tibia gold here ,you can enjoy the fast tibia golddelivery! Rubera tibia gold - we are the professional Rubera tibia money, Rubera tibia gp, Rubera tibia accounthere, we can sell Rubera cheap tibia gold, Rubera tibia account, we have the perfect trading cheapest tibia gold system for Tibia Online players. Get Cheap guild wars gold with Instant gw gold Delivery! Your runescape gold & runescape money will be fast delivered to you ! We strive to offer the fastest and most reliable service on the web for all your gaming needs. Feel free to contact us 24 hours a day, 7 days a week by phone, live chat and email. We work hard with our suppliers to offer the cheap rs2 gold prices we can. If you find a lower runescape gp price somewhere please let us know and we will try our hardest to match it.
Your answer
![](https://koobas.hobune.stream/wayback/20220613073935im_/https://answers.unity.com/themes/thub/images/avi.jpg)