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 Chris 4 · Jun 29, 2011 at 02:32 AM · movietexturepromovie

Movie texture ( I have pro )

Okay so I have Unity pro and I can import movies and it will show it in the Project section. (It has a light blue rectangle with a play symbol on it.)It has some audio clip attached to it. When I chose to play the file,however, the preview box will just turn white. (no video and no sound) I tried to drag it onto a random cube in game and it said that it had a movie texture on it. (It showed the icon that it showed in the project folder). I tried to play the scene and it still would not show. Is this normal? What can I do to fix it? I am pretty sure it is just because of my 'awesome knowledge' in Unity, but I cannot seem to figure it out. (sorry for extreme detail)

Comment
Add comment · Show 1
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 J3-Gaming · Aug 31, 2011 at 06:40 PM 0
Share

That only attaches the movie to your shader, you still need to "Play" it in code.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by J3-Gaming · Aug 29, 2011 at 01:28 AM

Attach this script to your plane:

  • http://unity3d.com/support/documentation/ScriptReference/MovieTexture.Play.html

Make sure you drag the MovieTexture into the inspector.

Comment
Add comment · Show 1 · 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 Chris 4 · Aug 31, 2011 at 07:21 PM 0
Share

I was able to drag the movie texture into the inspector. It still will not play, and the preview is still just a pain white screen with no sound. How long does it take to load the sound?

avatar image
0

Answer by Draco18s · Sep 23, 2011 at 07:16 PM

The sound needs to be attached to a gameobject separately. The documentation says that it will automatically synch with the video, although I do believe that you have to tell it to play separately.

The sound is also a 3D sound, by default, can't change it. Edit the falloff settings manually so that your audio listener doesn't need to be right up next to it.

(Fun thing to do: start the movie playing, then quickly move the camera away from the sound: unity does simulate sound propagation!)

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
avatar image
0

Answer by wilco64256 · Jul 20, 2012 at 12:10 AM

If you want the sound for the video to play, you need to set up an audio source component on some object. It can be the same object you're playing the video on or something else, just know that if you use it as a 3D sound you'll need to take into account the distance from the Listener in the scene.

Then you assign the audio for the video file (Unity by default will show the audio as a separate file as a child of the video clip, depending on the video type) to that audio source and either play it automatically or write code to start it playing at the same time as the video.

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

6 People are following this question.

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

Related Questions

A node in a childnode? 1 Answer

Problems with movies - delayed play or silent failure 2 Answers

WWW.movie doesn't work 1 Answer

www.movie on GUI Texture in front of Camera 0 Answers

NullReferenceException: Object reference not set to an instance of an object 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