Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

How to delete an addressable scene

Discussion in 'Editor & General Support' started by kXbira, May 24, 2021.

  1. kXbira

    kXbira

    Joined:
    Apr 11, 2021
    Posts:
    6
    Hey,

    I have created two addressable scenes , I have created a button to load the addressable scenes, I want to add a button for the users to delete it after its use. Any idea how can I achieve this?
    Thanks in advance.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,780
    What do you mean "delete?" Do you mean unload the scene? I believe you unload it just like any other scene is unloaded, or else you just fresh-load the next scene.
     
  3. kXbira

    kXbira

    Joined:
    Apr 11, 2021
    Posts:
    6
    I am new to addressables, so when we Unload the scene are we also removing it from memory, so the next time I load it again I'll be fetching it from th remote storage? or it It will still be in user's device?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,780
    No idea. There is a cache. Its rules are undocumented.
     
  5. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,923
    If the cache is intact, you will load it from cache, if not, it will be downloaded again.
     
  6. kXbira

    kXbira

    Joined:
    Apr 11, 2021
    Posts:
    6
    Okay thanks guys got it.