Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のアプリでは、サウンドのインスタンスがあり、フェードインを追加するのが好きです。このコードを試してみましたが、オーディオは常に最大音量になっています。
float volume = 1; float speed = 0.05f; } public void FadeIn(float deltaTime) { MediaPlayer.setVolume(volume, volume); volume += speed * deltaTime }
メディアボリュームを0に開始してみてください。