コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

+2 支持
Hi, I'm trying to have the music play continuously even though I restart the game. The problem is that when I hit restart the music duplicates and overlaps. I would like to have the music play once even though I hit restart. I have this music in Wwise and it integrates in Unity. In my game manager script to restart I have this scenemanager.loadscene phrase so I don't know what to write so that the music plays once.

I would appreciate if someone could solve this problem.

Regards.
Mitchell K. (150 ポイント) General Discussion
Hello,
I have something similar to my situation. Anytime I return to the title scene I have the title music trigger again and or duplicates. The title music also carries on when I enter my ingame scene. Currently I am using Unity and in the inspector I have an AK event that triggers on start. How would I set this up so my title music plays continuously in the title scene and its subs menus but when I enter the ingame scene, it stops?

回答 1

+1 支持
 
ベストアンサー

Hi Mitchell, 

There's a couple of ways to do this. One would be to use the DontDestroyOnLoad() function on the object you posted your music on. 
Another one could be to have a separate scene that is always maintained. For instance, you could have a "Main" Scene that keeps track of e.g. process stats. If that scene is always loaded, then that would be great for playing music across scenes loaded additively

Let us know if you get it to work!

Mads Maretty S. (Audiokinetic) (40.2k ポイント)
Mads Maretty S. (Audiokinetic) 選択
...