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 sameDifferential · Jun 18, 2015 at 03:16 PM · buggraphicsimport

Resources.Load() failing in build if Resources folder has too many files

I've seen a number of questions asked about using Resources.Load but I have not found the answer to my problem.

I am creating an application that involves playing video clips. I originally tried using MovieTexture, but the video lagged in the application. I then opted to convert the video into a folder of images/frames and play the video using them. I used Resources.Load over WWW as WWW caused in game lag/delay. This was successful.

However, as I uploaded my third folder of images I found that my application no longer worked when I built it (it still worked in the client). When built, the Resources.Load function found nothing in the Resources folder. After some fiddling, I found a breaking point in the Resources folder whereby if I add one single additional image the built application will go from functional to broken.

Has anyone encountered this before or can suggest workarounds? Preferably without lowering the quality of the images.

Comment
Add comment · Show 4
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 Jessespike · Jun 18, 2015 at 06:32 PM 0
Share

curious, how many files do you have in Resources?

avatar image sameDifferential · Jun 18, 2015 at 07:01 PM 0
Share

I have about 2900 files of various resolution. Total memory is about 1.64 GB.

It seems to be more a problem of size rather than number as replacing the HQ images with lower quality versions allowed it run correctly.

avatar image Jessespike · Jun 18, 2015 at 07:22 PM 0
Share

Surely there's a way to play videos without delays. Splitting videos into thousands of individual images seems absurd and asking for memory problems. I think going back and trying to get the videos to play properly would be better than trying to find a workaround.

avatar image sameDifferential · Jun 18, 2015 at 08:10 PM 0
Share

The reason I opted against using $$anonymous$$ovieTexture was not because it didn't compile, but because playing a HQ video caused the entire application to stutter (not simply the video). For $$anonymous$$ovieTexture to work smoothly, I have to lower the quality of the video to the point where it was unwatchable. The images/frame solution, while not graceful, allows me to play at HQ.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Cherno · Jun 22, 2015 at 06:22 PM

I have encountered this problem before. In my case, it was because I tried to load a file and put it in a variable that had the same filename as a different filetype, which got loaded instead, and Unity foolishly tried to put it into the desired variable type and gave me errors. Lesson: Never have the two files of the same name in the same folder, especially not if they are nof different types.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Texture import problem 0 Answers

Unity 2020.1 graphics glitch after splash screen on Android 0 Answers

Graphics glitch in driving tutorial? 1 Answer

3D models bugs with Unity 2 Answers

Black streaks on iOS 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