에셋을 임포트했을 때 에셋들이 핑크셋으로 나오는 문제 (셰이더가 잘못 매핑되어있는 문제)
window메뉴 클릭

Rendering에서 RenderPipeline Converter선택

Material Upgrade체크 후 Initialize Converters와 Initialize And Convert를 클릭

파동은 간섭, 증폭을 할 수 있기 때문에 같은소리가 동시에 재생되면 사용자가 의도했던 볼륨사이즈보다 훨씬 큰 소리가 나게 된다.
우리 게임 ManiMind에서는 같은 소리가 동시에 나는 상황이 존재하는데, 바로 다수기로 동시에 여러 몬스터를 공격했을 때이다. 따라서 이 현상을 수정해주어야 한다.
public Dictionary<string, int> NestedDictionary = new();
if (!NestedDictionary.ContainsKey(clipName))
{
NestedDictionary.Add(clipName, 1);
}
else
{
NestedDictionary[clipName]++;
}
if (AudioDictionary != null && AudioDictionary.ContainsKey(clipName) && NestedDictionary[clipName] < 4)
{
GameObject sfxPlayer = objectPoolManager.GetObject(sfxPlayerPoolName);
if (sfxPlayer == null)
{
sfxPlayer = Instantiate(sfxAudioSourcePrefab);
}
PoolableAudioSource sfxSource = sfxPlayer.GetComponent<PoolableAudioSource>();
if (sfxPlayer != null)
{
sfxSource.Play(AudioDictionary[clipName], soundEffectVolume * masterVolume);
}
else
{
return;
}
}
}
그리고 SFX효과가 재생될 때 해당 딕셔너리의 값을 1올려주고, 이 값이 4보다 작을때만 SFX가 재생되도록 한다. 이로써 동시에 같은 SFX사운드가 4개이상 재생되지 않도록 만들었다.