커뮤니티 Q&A

Audiokinetic의 커뮤니티 Q&A 포럼에 오신 것을 환영합니다. 이 포럼은 Wwise와 Strata 사용자들이 서로 도움을 주는 곳입니다. Audiokinetic의 직접적인 도움을 얻으려면 지원 티켓 페이지를 사용하세요. 버그를 보고하려면 Audiokinetic 런처에서 Bug Report 옵션을 사용하세요. (Q&A 포럼에 제출된 버그 보고는 거절됩니다. 전용 Bug Report 시스템을 사용하면 보고 내용이 담당자에게 정확히 전달되어 문제 해결 가능성이 크게 높아집니다.)<segment 6493>

빠르고 정확한 답변을 얻으려면 질문을 올릴 때 다음 팁을 참고하세요.

  • 구체적인 내용을 적어주세요: 무엇을 하려는지, 혹은 어떤 특정 문제에 부딪혔는지 설명하세요.
  • 핵심 정보를 포함하세요: Wwise와 게임 엔진 버전, 운영체제 등 관련 정보를 함께 제공하세요.
  • 시도한 방법들을 알려주세요: 문제 해결을 위해 이미 어떤 단계를 시도해봤는지 설명해주세요.
  • 객관적인 사실에 초점을 맞추세요: 문제의 기술적 사실을 중심으로 설명하세요. 문제에 집중할수록 다른 사람들이 더 빠르게 해결책을 찾을 수 있습니다.

+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

General Discussion Shawn H. (170 포인트) 로 부터
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 포인트) 로 부터
...