• 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

Dontdestroyonload

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

skywalker31415 answered

is there any way to keep first gameobject that has dontdestroyonload script and used as a variable?

5 days ago dontdestroyonload·scene load

1 Reply

0 Votes

avatar image

NechTech published

Keep ads alive even when applicationLoad is called

Apr 7, '21 android·dontdestroyonload·ad

-1 Replies

0 Votes

avatar image

logicandchaos commented

is it more performant to have an instance of one object in every scene or just a dontdestroyonload object?

Mar 27, '21 performance optimization·scene-switching·transition·dontdestroyonload

0 Replies

0 Votes

avatar image

JTAGames commented

DontDestroyOnLoad Duplicating Objects When Scene Reloaded

Mar 26, '21 c#·dontdestroyonload·singleton

1 Reply

0 Votes

avatar image

JTAGames commented

static and Don't Destroy On load

Mar 26, '21 static·dontdestroyonload

2 Replies

0 Votes

avatar image

desol asked

After going to the menu scene and back to the game scene, an error occurs when calling Coroutine

Mar 14, '21 in Help Room

0 Replies

0 Votes

avatar image

Fadrik answered

Is there a way to activate a timer from another scene?

Mar 13, '21 ui·scene·dontdestroyonload·activate·energy

1 Reply

0 Votes

avatar image

Ermiq answered

When I reload my scene, why does nothing work? dontDestroyOnLoad

Mar 11, '21 2d·scene·dontdestroyonload·reload·scene load

1 Reply

0 Votes

avatar image

graaphs published

When I reload my Scene, nothing works. I think it's because of a dontDestroyOnLoad gameObject

Mar 10, '21 scene-loading·dontdestroyonload·load scene·reloading

0 Replies

0 Votes

avatar image

BillyBobBeavis edited

Preventing my game object from multiplying due to DontDestroyOnLoad()

Mar 7, '21 c#·start·dontdestroyonload·singleton·game object

2 Replies

4 Votes

avatar image

gamemakerdude15145 commented

How does "DontDestroyOnLoad" work?

Feb 20, '21 javascript·dontdestroyonload·example

4 Replies

4 Votes

avatar image

unity_KM_cLG0O8_9Igw answered

Preserve particles when changing scene

Feb 12, '21 particles·dontdestroyonload

2 Replies

0 Votes

avatar image

unity_wCUOAGGTy4zgeg answered

Unity 2d select 2 object on another 2 scenes

Feb 9, '21 gameobject·scenes·dontdestroyonload

2 Replies

0 Votes

avatar image

OwlSoftware answered

DontDestroyOnLoad Still Destroying Object

Feb 6, '21 dontdestroyonload

3 Replies

0 Votes

avatar image

MagicMan4261 commented

,Don't destroy on load slowing down load times?

Jan 20, '21 dontdestroyonload

0 Replies

0 Votes

avatar image

Llama_w_2Ls answered

How to STOP music when loading a SPECIFIC SCENE?

Jan 12, '21 audio·music·dontdestroyonload·disable object·disabling

1 Reply

0 Votes

avatar image

logicandchaos commented

Change the scene, keep gameobject values

Jan 10, '21 dontdestroyonload·values·scene-change

5 Replies

0 Votes

avatar image

SkillcraftHD answered

Making a reference to a script that DontDestroyOnLoad

Dec 30, '20 audio·dontdestroyonload

2 Replies

0 Votes

avatar image

highpockets answered

How does DontDestroyOnLoad working?

Dec 23, '20 scene-switching·dontdestroyonload·new·initialization

2 Replies

0 Votes

avatar image

Llama_w_2Ls answered

DontDestroyOnLoad doesn't work on child objects

Dec 17, '20 audiosource·dontdestroyonload

1 Reply

1 Votes

avatar image

lcplrice commented

How to start new audio-track and switch off prior audio-track when player is back at main menu?

Dec 16, '20 audio·dontdestroyonload·mainmenu

0 Replies

0 Votes

avatar image

lochan_vishwanath commented

DontDestroyOnLoad reset at certain point

Dec 4, '20 score·reset·dontdestroyonload·load scene

2 Replies

0 Votes

avatar image

SuperCrow2 edited

Don't Destroy on Load not working for me

Nov 26, '20 c#·gameobject·unity 2d·dontdestroyonload·isometric

1 Reply

0 Votes

avatar image

xxmariofer commented

DontDestroyOnLoad() Unity 3D

Nov 24, '20 camera·3d·player·fps·dontdestroyonload

0 Replies

0 Votes

avatar image

damobe commented

Destroy object with dontdestroyonload Closed

Nov 21, '20 in Help Room

2 Replies

3 Votes

avatar image

cerenkeklik published

UNITY2D: How do I destroy previous object with Singleton Pattern?

Oct 26, '20 c#·dontdestroyonload·singleton

0 Replies

0 Votes

avatar image

Eldamir88 answered

DontDestroyOnLoad on disabled object doesn't work?

Sep 18, '20 scene·scene-loading·dontdestroyonload

1 Reply

0 Votes

avatar image

Recluse commented

How to get rid of the duplicates created by DontDestroyOnLoad?

Sep 11, '20 ui·scene-switching·dontdestroyonload·how·duplicate

3 Replies

2 Votes

avatar image

PMacDev commented

DontDestroyOnLoad calls Awake() and Start() function each time the scene is reloaded

Sep 8, '20 dontdestroyonload·application.loadlevel

4 Replies

1 Votes

avatar image

AdrianTEC answered

My music duplicates and gives an error

Sep 5, '20 scene·scenes·music·dontdestroyonload

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Followers

avatar image

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

c# scene gameobject scene-switching scene-loading destroy loadlevel singleton scenes music score ui audio scripting problem duplicate scene-change playerprefs load scene audiosource javascript static player list canvas prefab


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