VDP-noclip / noclip

NOCLIP is an experimental game in which you “noclip” the environment to solve puzzles.
3 stars 1 forks source link

Solve two listener Unity warning #106

Closed stefanofossati closed 1 year ago

stefanofossati commented 1 year ago

Unity shows a warning about the fact that there are two audio listener in the scene

stefanofossati commented 1 year ago

I was checking the warnings that are present in our project when we start from 0_Main scene:

The best place in which put only one of these elements is the 0_Main scene. But we maybe could have problems during the developing of a separete scene.

Conclusion: In order to do something useful, I think that the best solution is the following: Leave the event manager and the audio listener in the different scenes, but push in develop that scene only with its event manager and its audio listener disabled. Add the only one audio listener and event manager in 0_Main

@bottolo @spig95 @TizioMaurizio @AleDeNic

bottolo commented 1 year ago

A little finnicky and mechanical, but it may do the trick. I don't really have further suggestions on the topic...

bottolo commented 1 year ago

I don't know. It seems a bit counterintuitive... everything is disabled, but in order to test with pause and feedback you'll need at least two listeners in a scene (Pause + SceneWithPlayer)

bottolo commented 1 year ago

Okay, after clearing things out with @stefanofossati I was actually the one who didn't fully understand this, however there was a minor thing to fix in order to make the menu work

TizioMaurizio commented 1 year ago

Is this solved? I just red the title so don't blame me if I said something stupid hahaha