Sound plays even though on awake is unticked unity - unity3d

I looking into similar threads with this issue and sadly my issue is not being resolved how theirs was. I have a sprite that when it is collected a sound is played. As soon as the game starts any audio I attach is playing. I have deleted the sprite and remade it and the issue is still the same, however for my 7 other sprites there is no issue.
Does anyone know why this may be an issue?
If needed i can supply code however i don't think it is a code based issue

I had the same issue, old post but I didn't see my solution anywhere else. I found that the default script in the audio source game object was playing the clip in the start method. By commenting this out, I was able to stop it from playing when the game was started.

There is a chance that your audio source has a box named "Play On Awake" ticked.
I was looking for the same answer, as my audio sources also played when starting the game. After reading this question, somehow I realized there was a box ticked which I didn't bother looking over.
If your box is not ticked, then try writing in the Start method:
this.yourAudioSource.playOnAwake = false;

Related

Autohotkey for VLC where scrolling affects video playback speed (eg. 1x 2x)

I had accomplished it somehow once before but since resetting my computer I can't figure out how to do it (I don't even know if I used autohotkey the first time but it seems to be my only choice now.)
So I'd like, when watching videos in VLC media player, that when I scroll up the video plays faster, and vice versa.
So far I've tried:
WheelUp::NumpadAdd
WheelDown::NumpadSub
while disabling the existing scroll functions in VLC, to no effect. Please advise :)
Nevermind I forgot to simply reload the actual script I was adding onto. It works just fine lol
keeping this up incase it helps anyone else out! :3c

Multiple plugins with the same name 'lz4x64plastic' (Unity)

I keep getting this error when switching to my game scene from my death scene, and I can't find a definitive answer online. It showed up after I added my volume controls, and I have no clue how to fix it because that path (Packages/com.unity.collab-proxy/Lib/Editor/PlasticSCM/lz4x64Plastic.dl) is not in the package manager (I'm pretty sure). I can still play when it happens, but the volume resets. I have never seen that file before, and haven't imported any new plugins since then. Any ideas?

Unity Glitching when I run the Game

I made a Model of the solar system and when I run the program this happens:
I am not sure what is causing this so if you have any idea Pls Reply.
The Scene load is being triggered multiple times:
Check if you have any code that you're using to load the scene (In Update, perhaps?) if youre using it in update, check if you're using GetKey instead of GetKeyDown (GetKey will remain true as long as you keep it pressed)
The information provided here is too little and we can only speculate at this point. please post code, more images and a better description of the problem. How did you reproduce this issue?

Animation error

Can anyone help me with this error message I get when I try to play a game level in a game I am developing.
What happens is that on starting the game the game starts and runs fine but after the player wins or loses the game and wishes to replay or play the game level again from the main menu, the following error comes up(Please see the screen shot below):
I suspect my animations but I really cannot place what and where the problem is.
animations_ has probably already been released, if you did not retain it, then you do not have to release it.

Open video in iPhone without controls

I am trying to play video without showing controls (volume and other buttons) but it also should be possible to make them visible by taping on the video.
The code is:
theMovie.scalingMode = MPMovieScalingModeAspectFill;
theMovie.movieControlMode = MPMovieControlModeDefault;
In this case it shows the controls by default and by taping on the video they get hidden.
If I change the mode to MPMovieControlModeHidden then I can not see the controls but also I can not bring them back.
Is there a way to start video without controls but not disabling them completely?
Good news Dmitriy!
I've found a solution that will do the job for you, I hope.
It is as follows:
Initialize your
MPMoviePlayerController object's
movieControlMode property with
MPMovieControlModeHidden value
Play the movie
After the movie playback has started set your MPMoviePlayerController object's movieControlMode property back to MPMovieControlModeDefault
Third step can be accomplished by observing MPMoviePlayerContentPreloadDidFinishNotification notification. Though this might cause unresponsive black screen (or of another color you've set as your MPMoviePlayerController object's backgroundColor) in case you will play a streaming video, which be actually preloaded by MPMoviePlayerController. I don't have any movie of compatible format on a remote server at my disposal right now so I can't test this scenario is real and therefore mess around to see if there's something that can be done to avoid this side effect (though I think I will do that if you publish or find such movie for testing somewhere in the Internet).
Tip: look at the bold piece of text if you don't want to know my long story about how boring I am actually starting to look into a problem by reading the documentation and looking into the sample code it offers.
You question has interested me so I started from looking at MPMoviePlayerController Class Reference on iPhone Dev Center. I didn't actually find anything related to the problem you've stumbled upon so I've decided to play around with this sample project MPMoviePlayerController reference - MoviePlayer. I juts wanted to reproduce your situation and maybe try dealing with it by simulating a single touch event or triggering the same method that responds to this event manually.
But it turned out that Apple's sample project in fact behaves absolutely like you want your's to. It starts video playback and the overlay controls are automagically animated out of the screen from the very beginning. I've looked through the code, it's rather simple and doesn't really 'deal' in any way with this problem you have. So maybe it's something you do (or do in somewhat not right order) that causes the problem. Check it out and get back to us with a cure because judging by usefulness metric there are people who have similar problems.