• 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

Vugtjongen commented

How to have different background music through different scenes?

3 days ago c#·2d game·music·dontdestroyonload·background music

2 Replies

2 Votes

avatar image

rh_galaxy edited

Select element from list only once when reloading new scene

3 days ago c#·vr·list·random·dontdestroyonload

1 Reply

0 Votes

avatar image

Cjqt edited

Player exits don't destroy on load because of moving platform

Jun 1, '22 in Help Room

0 Replies

0 Votes

avatar image

TheIrishKraken commented

How to access GameObject under DontDestroyOnLoad in Hierarchy at run time

Apr 29, '22 c#·unityeditor·dontdestroyonload

2 Replies

0 Votes

avatar image

ramisthand76 edited

How to switch scenes with two players using Photon?

Apr 21, '22 scene·destroy·photon·scene-switching·dontdestroyonload

1 Reply

0 Votes

avatar image

unity_FC0D779DC78226F1715F asked

Dontdestroyonload breaks my scripts

Apr 20, '22 in Help Room

0 Replies

0 Votes

avatar image

rh_galaxy edited

How to keep the same gameobject with different transform values in different scenes

Apr 6, '22 animator·scene-loading·scene-switching·dontdestroyonload·references

1 Reply

0 Votes

avatar image

MaxLohMusic answered

DontDestroyOnLoad not working

Mar 28, '22 in Help Room

4 Replies

7 Votes

avatar image

elintanart edited

URP Unity second camera (From other scene) not being detected for stacking

Mar 22, '22 camera·dontdestroyonload·load scene

0 Replies

0 Votes

avatar image

AlbiDmn asked

DontDestroyOnLoad not working after changing parent temporary

Feb 28, '22 in Help Room

0 Replies

0 Votes

avatar image

NeilLondon commented

Destroy object with dontdestroyonload Closed

Feb 27, '22 in Help Room

2 Replies

3 Votes

avatar image

crekri edited

A way to check if an object has DontDestroyOnLoad activated

Feb 21, '22 dontdestroyonload

3 Replies

10 Votes

avatar image

Rubiix asked

Scene stores variables after scene reload Closed

Feb 1, '22 in Help Room

0 Replies

0 Votes

avatar image

daniellind12521 published

How can I destroy a GameObject after a scene is loaded?

Jan 11, '22 in Help Room

1 Reply

0 Votes

avatar image

Humdot published

Background music doesn't start on new scene load.

Dec 20, '21 audio·dontdestroyonload·audio source

0 Replies

0 Votes

avatar image

Humdot edited

Continuous audio issue across scenes Closed

Dec 20, '21 audio·dontdestroyonload

0 Replies

0 Votes

avatar image

Humdot asked

Background music doesn't start on new scene load.

Dec 20, '21 audio·dontdestroyonload·audio source

0 Replies

0 Votes

avatar image

macsimilian edited

Best way to deal with DontDestroyOnLoad when returning back to the same scene?

Nov 24, '21 scene-switching·dontdestroyonload·duplicate·scene-change

1 Reply

0 Votes

avatar image

windsands published

Destroy dontDestroyOnLoad how do I do it?

Nov 22, '21 dontdestroyonload

0 Replies

0 Votes

avatar image

rh_galaxy commented

Gameobject DontDestroyonLoad references not working after changing scene

Nov 11, '21 dontdestroyonload

1 Reply

0 Votes

avatar image

Long2904 edited

DontDestroyOnLoad vs Hideflags.DontSave

Sep 18, '21 gameobject·audiosource·dontdestroyonload·pooling·hideflags

1 Reply

0 Votes

avatar image

Dinneaa asked

Don't Destroy On Load makes the object not interactive in the new scene

Sep 8, '21 in Help Room

0 Replies

0 Votes

avatar image

Ep8s asked

How to stop seamless music after loading a specific scene

Aug 23, '21 music·dontdestroyonload·menu screen·seamless

0 Replies

0 Votes

avatar image

seanwiemken answered

Why is the value of my variable being reset when changing scenes?

Aug 9, '21 in Help Room

1 Reply

0 Votes

avatar image

Bunny83 answered

How to STOP music when loading a SPECIFIC SCENE?

Jul 30, '21 audio·music·dontdestroyonload·disable object·disabling

3 Replies

0 Votes

avatar image

The702Guy commented

DontDestroyOnLoad causing update to not work in next scene?

Jul 26, '21 update·dontdestroyonload·time.deltatime

1 Reply

0 Votes

avatar image

ptlam61004 edited

Calling variable within DontDestroyOnLoad() script yields different result from calling from another script without

Jul 21, '21 in Help Room

0 Replies

0 Votes

avatar image

Ale_ga asked

Destroyed object in DontDestroyOnLoad does not recreate in its main scene

Jul 8, '21 in Help Room

0 Replies

0 Votes

avatar image

Proliecan answered

DontDestroyOnLoad isnt working

Jun 23, '21 gameobject·dontdestroyonload

1 Reply

1 Votes

avatar image

unity_VYAo9PCTYYamFA published

DontDestroyOnLoad Not Working At All

Jun 11, '21 dontdestroyonload

3 Replies

1 Votes

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

Followers

avatar image

Related Topics

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


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