Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

When i press play is removes everything i just added

Discussion in 'Editor & General Support' started by tawdry, Sep 3, 2014.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Hi guys I'm new to Unity3d hell i'm new to programming period. When I place almost anything and press preview so i can see what it looks like It gets deleted if i place it again and try preview once more only then does it work but I have to do this for everything place it twice and preview. Same goes for if I wish to delete anything have to delete it twice after run the preview . Biggest headache with this is if i place the 1st person controller and it vanishes then need to place again and always get error 2 audio devices after that I can delete every audio device and it does nothing to remove the error any ideas? The error persists even if all i have is terrain
     
  2. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Never mind I found out what I was doing when i press the pause to leave preview mode it causes the issues. I f I press the start button again to stop the preview it works like it should .Still confused by those audio errors though.
     
  3. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    I'm confused by them too. My confusion is because I don't know what the error messages you get say. Care to share them with the community?
     
  4. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Just says that there are 2 audio devices active and there should never be more than one. Then it just beeps if i try import the standard unity packages skybox terrain etc.

    On a positive note i'm getting the hang of the basics now. More i play with it more I discover.
     
  5. drewradley

    drewradley

    Joined:
    Sep 22, 2010
    Posts:
    3,063
    Are you sure it's not saying Audio LISTENER not device?
     
  6. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Yes its audio listener my latest test ruin had 6 active what are they and more to the point how do i get rid of them
     
  7. drewradley

    drewradley

    Joined:
    Sep 22, 2010
    Posts:
    3,063
    You need to find every object that has them and remove them all except for one.

    Also, if you want help, you need to be more precise. Unity probably never throws an "Audio device" error, or it's related to code you are using. Whereas Audio Listener is something just about everyone here knows and would have been able to help you easily. Next time, copy and paste the errors you want help with.
     
  8. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,840
    All good advice. Here's some more: the most common way I end up with the "more than one Audio listener" error is by accidentally duplicating the camera. So, check the Hierarchy window (or tab) and see what camera objects you have — you should probably delete all but one of them.
     
    Graham-Dunnett likes this.
  9. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Yea problem is i can delete everything in the list and it still gives me the error sometimes. I just found in another map one of those 1st person controllers in the middle that I had never even placed lol. Weird