Wwise Authoring is currently not compatible with macOS Catalina. We recommend that you remain on the current version of your operating system until further notice.

Leçon 8

Table des matières

Exposing Callback Flags: PostWwiseEvent

(go to Exposing Callback Flags)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PostWwiseEvent : MonoBehaviour {
    public AK.Wwise.Event MusicEvent;
    public AK.Wwise.CallbackFlags CallbackTypes;
    // Use this for initialization.
    void Start () {
        MusicEvent.Post(gameObject, CallbackTypes, CallbackFunction);
    void CallbackFunction(object in_cookie, AkCallbackType in_type, object in_info) {