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 nicola secco · Mar 11, 2013 at 02:59 PM · audioguitexturemovietexture

I want to play a MovieTexture inside a GUITexture but I can't hear the sound. Why

If I apply the MovieTexture to a Plane I can hear the sound meanwhile in a GUITexture I can only see the movie. Why is it different?

Comment
Add comment · Show 3
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 nicola secco · Mar 11, 2013 at 02:58 PM 0
Share

audio.IsPlaying returns true but I hear nothing. Yhy is that?

avatar image Steven-1 · Mar 11, 2013 at 03:10 PM 0
Share

Well I've never used this, but to be honest, I find it weird that you can hear the sound when it's used on a plane. I would expect it to never work. Also, you say audio.IsPlaying is true, but what "audio" do you access ? I mean, if it's just a texture you use in GUI, then it isn't related to any audiosource in your scene at all.

avatar image nicola secco · Mar 11, 2013 at 04:45 PM 0
Share

Because my game object has a GUITexture component and a AudioSource component.Ant they're values are initialized like this:

guiTexture.texture=$$anonymous$$ovie; audio.clip=$$anonymous$$ovie.audioClip;

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by gochi7 · Mar 11, 2013 at 04:43 PM

If I remember correctly the sound must be added separately, it's basically a gif you get with a movie texture you see, so just add an audio source to the same place and add the sound, hope this helps :)

Comment
Add comment · Show 2 · 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 nicola secco · Mar 11, 2013 at 05:26 PM 0
Share

I dont see the gif. $$anonymous$$oreover I want to assign the movie and the audio dynamically. I dont want to drag them on the inspector

avatar image gochi7 · Mar 11, 2013 at 05:39 PM 0
Share

you gotta add the movie texture and add an audio source to the same plane

avatar image
0

Answer by Bunny83 · Mar 11, 2013 at 05:55 PM

Are you sure you have set your AudioSource component to 2D? Just check the settings by expanding the "3D Sound settings" and make sure the "Pan Level" is 0. If you have multiple audiosources in the scene, you can increase the priority by setting the Priority value to a lower value.

Are you sure you started both, the texture and the audio after you assigned the texture / AudioClip?

I never used a MovieTexture myself, but that's all i can imagine at the moment.

Comment
Add comment · Show 4 · 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 gochi7 · Mar 11, 2013 at 07:37 PM 0
Share

I don't think it was mentioned whether 2d or 3d is being used though I do agree with you it should

avatar image Bunny83 · Mar 11, 2013 at 08:54 PM 0
Share

Well, a GUITexture is a 2D object but since it's a GameObject it still have a position in the world. However the world position has no relation to the actual position on the screen (unless it's a child of the camera). So i'm pretty sure it should be a 2D sound.

avatar image nicola secco · Mar 12, 2013 at 10:12 AM 0
Share

I set Pan Level to zero but it still does not work. As its the only sound in my movie increasing the priority is not useful

avatar image nicola secco · Mar 12, 2013 at 01:01 PM 0
Share

now it works!! I don't know why. However the pan level must be zero

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

13 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

Related Questions

GUI Texture not responding to OnMouseEnter 1 Answer

WWW.movie doesn't work 1 Answer

Reduce Draw call for Multiple GUI Textures with same Texture 1 Answer

Draw a waveform on a mobile texture 1 Answer

I Need a script for a guitexture enableing a spotlight and play a sound when pressed 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