Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by WingedCross · Jul 09, 2012 at 09:07 PM · objectsceneraycastingfinddestroyed

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?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
-1

Answer by WingedCross · Jul 09, 2012 at 11:25 PM

Oh ok thanks Stingman

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image stingman · Jul 09, 2012 at 11:40 PM 1
Share

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

avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by WingedCross · Sep 11, 2012 at 01:10 AM

Thank you Stingman

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

If GameObject with tags not on scene 1 Answer

When Near Object, Change Scene 0 Answers

Objects are visible through terrain 3 Answers

i want the player to match 5 items correctly before next scene appears. 1 Answer

How to find out which object is under a specific pixel 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges