コミュニティQ&A

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

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

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

+3 支持

Hi,

I'm new to Wwise and I recently integrated it into a Unity project of mine. I am running into an error where I am getting an error message:
Unity Version: 2022.1.5f1
Wwise Version: 2021.1.9.7847

The error message is:
WwiseUnity: Unable to load Wwise Data: UnityEngine.UnityException: LoadAssetAtPath can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at (wrapper managed-to-native) UnityEditor.AssetDatabase.LoadAssetAtPath(string,System.Type)
  at UnityEditor.AssetDatabase.LoadAssetAtPath[T] (System.String assetPath) [0x00001] in <5db21055c88447d49afcd8d90f76e7f1>:0 
  at AkWwiseProjectInfo.GetData () [0x0001f] in C:\Users\shawn\OneDrive\Desktop\Game Design\GameDev\Unity\UnityProjects\SquareOff\Assets\Wwise\API\Editor\WwiseWindows\AkWwiseProjectInfo.cs:72 
UnityEngine.Debug:LogError (object)

This is whenever I enter Play Mode in Unity.


Per a previous post: https://www.audiokinetic.com/qa/1248/unity-unable-to-load-wwise-data
I set the folder at Assets/Wwise/Editor/ProjectData to be write-enabled. It however did not fix my issue.

I'm not sure what to do here. Happy to share more information as needed.

Thanks,
Shawn

Shawn H. (170 ポイント) General Discussion
I got the same error... and I can't find anything on the internet about this error. My unity version is also 2022.1.4f1, wwise version is 2021.1.9.7847 also.

Is it possible the error is due to the new version of both softwares? Really strange. Hope someone can help us.
Hi, Have guys found the solution? I ran into the exact same problem
I found I made a mistake of not adding the event into the sound bank in Wwise, that resolves my problem.
I'm also having this problem. Wwise version 2021.1.9.7847, Unity 2022.1.8f1. I've tried making sure things are writeable as well and it doesn't solve it. Thing is, I'm pretty sure I caused this once I told SourceTree to stop tracking the AkWwiseProjectData folder because it kept popping up...
And when I mark it writeable, then running Unity play mode makes it read-only again. So it's probably not an access violation exception, since Unity appears to be changing the files on entering Play Mode. I'm thinking something is going wrong with the code that builds the asset directory...
This is my problem too.
I'm also getting this error. Unity 2022.1.23f1, Wwise 2022.1.0 (Build 8070).

From what I can tell, this error is generated by a Wwise editor window in Unity trying to load an asset. Happens when entering Play mode.

Tried to set the ProjectData folder to writable, but the error didn't go away.

回答 2

0 支持
I ended up restarting my machine and the problem did resolve, however I am not sure why. I don't know if this is a proper solution to this issue or if it might resolve it for other people.
Shawn H. (170 ポイント)
0 支持
  • Check to see if you use Jobs, Unselect Jobs->Burst->Enable Compilation

JIAMIN Q. (140 ポイント)
...