menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票

Hi,

I'm having real trouble using Wwise types in the Unity integration.

I have a script on a UI prefab that essentially contains this:

public class myClass : MonoBehaviour {

 

    public AK.Wwise.Event myEvent = null;

[...]

    public void someFunction()

    {

            Debug.Log("Play event: " + myEvent.ToString());

            myEvent.Post(gameObject);

    }

With this, the editor fields show up fine, and I am able to select the event which I would like to play from someFunction().

However, when I run it no event is posted. The output log just says "Play event: AK.Wwise.Event" from the debug command. And if I set a breakpoint to myEvent.Post(gameObject), then the value of myEvent is just set to {AK.Wwise.Event}

Am I doing something wrong in setting the events up?

 

 

Here is an image of the actual code and editor, for reference (names are less simplified than above):

分类:General Discussion | 用户: Jonathan P. (500 分)

Please sign-in or register to answer this question.

...