Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Local-Minimum-2 · Dec 16, 2015 at 05:40 PM · unity 5bugmovietexture

MovieTexture black on Mac build

Hi, I'm using MovieTexture throughout my game and they work fine in the editor as well as on Windows builds. On Mac, they only produce a black screen. The films are originally .avi-files but I have no issue importing them. Any help on how to make them play on Mac too would be much appreciated.

Example code responsible for playing the movies:

     movieScreen.material.mainTexture = film;
     film.Play();
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Derpyness · Dec 25, 2015 at 01:06 AM

Try converting that AVI file to a mov or mp4 file.

If that doesn't work try using the code below

 movieScreen.GetComponent<MeshRenderer>().material.mainTexture = film;
Comment
Add comment · Show 7 · 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
avatar image danieleolivieri · Jan 18, 2016 at 09:23 AM 0
Share

I have the same problem, I tried this code but still black texture and not playing! I tried to write in Update: debug.log(film.isPlaying + film.isReadyToPlay); if(!film.isPlaying) film.Play();

and I get forever "false false". In editor is working fine! but once I build it... doesn't work! Help!!!

avatar image Local-Minimum-2 danieleolivieri · Jan 18, 2016 at 12:53 PM 0
Share

I should add that the only way "I" got it to work was to ask someone who had a $$anonymous$$ac to build my project on their $$anonymous$$ac for me.

avatar image danieleolivieri Local-Minimum-2 · Jan 18, 2016 at 12:59 PM 0
Share

I'm already o $$anonymous$$ac and doesn't work! :(

avatar image Derpyness · Jan 18, 2016 at 01:06 PM 0
Share

Try looking at the $$anonymous$$ovieTexture page to make sure you're not missing any parts to your code.

avatar image danieleolivieri Derpyness · Jan 18, 2016 at 01:25 PM 0
Share

Thanks, I create a new clean project, the same exact code and video file is working fine! The original project was working fine in unity 5.2, since I upgraded to unity 5.3 is not working any more! Am I missing something ?

avatar image Derpyness danieleolivieri · Jan 18, 2016 at 02:37 PM 0
Share

It could be a problem with your project configuration, or the assetDatabase inside of the library folder, or it could just be a unity bug with upgrading to 5.3, but at least you got it working :D

Show more comments

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

40 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 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

Game Object Layer changes automatically on runtime.,Game Object's Layer automatically changes in runtime? 1 Answer

Unity Android fetching wrong screen resolution 1 Answer

How do I get movie textures to play? 1 Answer

Unity Build Icon Shows Up in Pink on Mac OS X 1 Answer

Unity null check 1 Answer


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