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. Dismiss Notice

Export package..ONLY current scene, NOT entire Project

Discussion in 'Editor & General Support' started by eco_bach, Feb 2, 2016.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Hi
    Puzzled why Unity doesn't seem to make this easier. How do you export ONLY the current scene with any dependencies, and NOT the entire project?
     
    hopetolive likes this.
  2. nswayze

    nswayze

    Joined:
    Nov 17, 2016
    Posts:
    21
    This is some really useful advice I refer to which seems to do the trick for me:



    "To export your scene (level) just clean, you have to go to the Project window - select there you level and right click and select: "Select dependencies" it will show you summary information about your level files which was used only in that scene, then you have to go top menu: Assets -> Export Package and UNCHECK include dependencies and it the window you'll see it's only selected stuff from your scene and then you can click Okay and save your scene just with stuff you had in that scene.

    Include Dependencies - should have to be renamed: "Include all garbage from entire unity projects". - Smbv http://answers.unity3d.com/questions/64834/auto-export-to-asset-only-files-and-such-used-in-s.html
     
  3. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Unfortunately it seems that 'include dependencies' still excludes .cginc files , so shader libraries still have to be manually copy pasted. At least that has been my experience.
     
    shinichikudo997 and kryzodoze like this.
  4. idcanu

    idcanu

    Joined:
    Jul 3, 2017
    Posts:
    14
    @nswayze thanks your solution worked for me
     
    nswayze likes this.
  5. Sylance

    Sylance

    Joined:
    Jan 2, 2018
    Posts:
    3
    @nswayze thanks your solution worked for me too and my shaders are also included.
    The included Dependencies should really be renamed.
     
    nswayze likes this.
  6. Peppermage

    Peppermage

    Joined:
    Apr 27, 2019
    Posts:
    2
    @nswayze You're the best! That was perfectly detailed and exactly what I needed. I wouldn't have come up with this without your instructions.
     
    nswayze likes this.
  7. Druznia

    Druznia

    Joined:
    Sep 19, 2018
    Posts:
    1
    @nswayze Still works! Thank you alot.
     
    titanwolf8448 likes this.
  8. mbhagat

    mbhagat

    Joined:
    Dec 15, 2013
    Posts:
    49
    "Include all garbage from entire unity projects"
    This makes me laugh ha ha
    Worked well , thanks for advise for saving my time.
     
  9. TomTrottel

    TomTrottel

    Joined:
    Aug 16, 2014
    Posts:
    18
    for me this way of exporting works on some scenes perfectly, on others not, even I tripple checked. very strange.