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

Using AkSwitch with box collider 2D, it won't trigger the other switch for footstep material?

0 投票
Hi,

I've been trying to setup footsteps in my 2D project using colliders, AkSwitch and a CallEvent script (on my player).

Followed a youtube tutorial but cannot figure out why the AkSwitch is not working to change the switch being used.

This is the CallEvent code i am using.

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

 

public class CallEvent : MonoBehaviour

{

    public void Callevent(string s)

    {

        AkSoundEngine.PostEvent(s, gameObject);

        Debug.Log("Print Event: " + s + " Calledat " + Time.time);

    }

}

I am trying to use 4 switches for the different materials, when the player walks over the collider, nothing happens.

I followed the video exactly, but when their switch worked mine didn't, although theirs was 3D.

Many thanks.
最新提问 4月 30 分类:General Discussion | 用户: Tom D. (100 分)

Please sign-in or register to answer this question.

...