Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
  • Home /
avatar image
0
Question by Naphier · Jun 08, 2015 at 01:19 AM · streamingassets

Export Package and StreamingAssets folder issues

A project I'm working on will be using some video which will need to be placed in the StreamingAssets folder for playback on mobile. The problem we're having is that if we want to export our project as a unitypackage anything in the StreamingAssets folder that is linked to a component in the inspector gets the link broken. So I'm under the impression that this is not the proper way to do things. Probably since items in the StreamingAssets folder should only be accessed via code (please confirm this). So I am wondering what is the best way to handle this for multiplatform and ease of editing/collaboration? Do we need to make scripts to load files into their proper places via the streaming assets folder? Should we keep all of the videos in a regular folder while working on the project and move them to a streaming assets folder only before building? It seems like there should be a better workflow for this, but I'm not familiar with the StreamingAssets folder enough to know it and there's not much info out there on this. Thanks!!

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ricewind1 · Jun 08, 2015 at 01:38 AM 0
Share

Is this helpful? http://docs.unity3d.com/ScriptReference/WWW-movie.html or http://docs.unity3d.com/$$anonymous$$anual/Strea$$anonymous$$gAssets.html

avatar image Naphier · Jun 08, 2015 at 01:42 AM 0
Share

No, not really. I'm thinking that strea$$anonymous$$gassets should always be accessed via script and not ever attached via inspector component references, but this seems like it kind of ruins Unity's main feature. Thanks though. PS - I've read all of th documentation that Unity has to offer on this. But if they have a tutorial for this I would like to see it as I have not been able to find one.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Naphier · Jun 08, 2015 at 05:35 AM

OK well after a lot of tinkering I've not found any great way to do this. Basically if you're building for multiple platforms where you won't always need StreamingAssets then it's a bit of a pain. So the reason we don't always want to use StreamingAssets is

  1. It makes the raw data for our assets accessible and easy to read / tinker with.

  2. Videos don't get compressed to OGG which is typically smaller file size per quality.

  3. You can't link StreamingAssets to inspector components.

So for now we have to live with it unless someone can suggest a better workflow. Right now we're going to be only accessing video via script. In the Editor and Standalone builds we'll put the videos in a Resources folder. In Mobile builds we have to move them to the Streaming Assets folder. Seems a bit wonky, but it works. I would love to hear alternative suggestions!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

StreamingAssets and reading a binary file (Android) 0 Answers

read write xml file on ipad ,Access denied 0 Answers

Load streamingassets from non ienumerator method ? 1 Answer

Android - Access Video from StreamingAssets 0 Answers

Where does streamed audio clip stored and removed? 0 Answers


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