Utage3 SoundAudio show the build ver Error

30 views
Skip to first unread message

艾爾葛雷斯

unread,
May 29, 2024, 10:54:22 AMMay 29
to 宴ユーザーグループ
I got the 2 promble to use.
1.Use the sample the ButtonUI Sound.
Show the
UnityEngine.EventSystems.EventSystem:Update() Exception: NullReferenceException UnityEngine.Object.get_name () (at <8f629e2ceb084336bb794e09ce74412e>:0) ItemClick.isFurnitureClick () (at <5beda1cd94e244da9b6b0dede2633034>:0) UnityEngine.Events.InvokableCall.Invoke () (at <8f629e2ceb084336bb794e09ce74412e>:0) UnityEngine.Events.UnityEvent.Invoke () (at <8f629e2ceb084336bb794e09ce74412e>:0) UnityEngine.UI.Button.Press () (at <8c1fe1cc68024f9b9925ba0fa78f56ca>:0) UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at <8c1fe1cc68024f9b9925ba0fa78f56ca>:0)
ItemClick is my Scripts to Call PlaySe(clip, volum, lable, clip.name) I think is clip.name not get.

'Cuz this is Build ver so I can't check the breakpoint.

2.Ohter is 
Exception: NullReferenceException: Object reference not set to an instance of an object


Utage.SoundAudio.IsEndCurrentAudio () (at <238ac5ea8ff3494e929aa0f58e916684>:0)
Utage.SoundAudio.UpdatePlay () (at <238ac5ea8ff3494e929aa0f58e916684>:0)
Utage.SoundAudio.Update () (at <238ac5ea8ff3494e929aa0f58e916684>:0)

this is like AudioClip is null but It still play.....

I can't understand why this happened.

マッドネスラボ

unread,
May 29, 2024, 11:09:39 AMMay 29
to 宴ユーザーグループ
This type of error can occur if you are referencing and using assets used in a "UTAGE" scenario from within a Unity scene.
Assets loaded in a "UTAGE" scenario will be unloaded when they are unused in the scenario. If those materials are referenced from within a scene, they will become null.

To avoid this, use the Static Asset Mangaer.
Assets set in the Static Asset Mangaer will not be unloaded and will always exist in the scene.

2024年5月29日水曜日 23:54:22 UTC+9 lulu...@gmail.com:
Reply all
Reply to author
Forward
0 new messages