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

StreamingAssets on Linux builds

Discussion in 'Editor & General Support' started by stn1986, May 13, 2013.

  1. stn1986

    stn1986

    Joined:
    May 13, 2013
    Posts:
    3
    Good day,

    I use the StreamingAssets folder on Windows/Mac builds. The client has recently requested a Linux build which would be awesome indeed. However, I noticed the StreamingAssets folder is not being copied on build and manually copying it does nothing, it doesn't seem to be able to access it.

    Is this a known issue?

    Thanks,
    Sander
     
  2. stn1986

    stn1986

    Joined:
    May 13, 2013
    Posts:
    3
    No one?
     
  3. Nition

    Nition

    Joined:
    Jul 4, 2012
    Posts:
    781
    I've got the same issue. Unfortunately I can't find any information about it either, but I can confirm that any Streaming Assets stuff just doesn't work on Linux.
     
  4. skateborden

    skateborden

    Joined:
    Apr 1, 2009
    Posts:
    35
    I just tried to make a linux build of one of my projects for the first time and ran into this same issue. Have either of you submitted a bug report?
     
  5. Nition

    Nition

    Joined:
    Jul 4, 2012
    Posts:
    781
    Actually, contrary to what the original post says, it looks like I can work around the issue by manually copying the StreamingAssets folder into the build (it goes in the _Data folder). I managed to successfully load a file from there in Linux.

    Here's a bug report for it not being copied, anyway: [edit: Removed the bug report link as it was causing my email to show up on Google in a roundabout way].
     
    Last edited: Jul 4, 2017
  6. skateborden

    skateborden

    Joined:
    Apr 1, 2009
    Posts:
    35
    Good to know that manually copying the StreamingAssets in seems to be working for you. I just noticed that StreamingAssets was missing and assumed that's why my project was crashing, I guess maybe it's also some other reason. ;)
     
  7. Nition

    Nition

    Joined:
    Jul 4, 2012
    Posts:
    781
    Got a reply from Unity QA: "That issue is already fixed internally and will ship with a future version of Unity (not a 4.1.x version though)." :)
     
  8. stn1986

    stn1986

    Joined:
    May 13, 2013
    Posts:
    3
    @Nition: Nice, I'll try copying it manually again.

    We've contacted support about this and they told us it wouldn't be 4.1.x indeed, but 4.2.
     
  9. acidjunk

    acidjunk

    Joined:
    Jan 26, 2013
    Posts:
    2
    We did some simple tests in 4.2: streaminassets are copied and can be loaded on linux!