Quantcast
Channel: Latest Questions by jss367
Browsing latest articles
Browse All 12 View Live

How to add user-chosen music to game

I am trying to allow the user to choose a song to play while they play my game. I have thought of two ways to do this but I cannot get either to work. 1. Allow the user to search the Internet and...

View Article



Unable to stream music from computer or Internet

I am trying to stream music from either the computer or the Internet for my game. I wrote the follow script but I cannot get either to work. I have the AudioSource and AudioListener in my scene. I...

View Article

Why am I unable to change the value of a Boolean?

I am trying to make my game restart after the game ends (gameOver == true). The problem is that I set gameOver to true in my GameOver() function but it reverts back to being false by the time the...

View Article

Unable to access public variable from different script

I have a C# script trying to access a public float in another, but I am unable to make this work. The float I want to access is timeMultiplier in the GameController.cs script, which is attached to a...

View Article

Scripts disappearing from Unity UI elements

I am using the GUI system that was introduced in Unity3d 4.6 (I'm on the most recent Unity 5 version). When I change scenes on my game all the scripts that were attached to UI elements, such as...

View Article


How to initialize after Start()

I would like to run another initialize command after Start() but I do not know the best way to do this. I want to do something like this: void Awake() { //Set up the environment } void Start() { //...

View Article
Browsing latest articles
Browse All 12 View Live




Latest Images