Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

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

0 votes
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.
asked Apr 30 in General Discussion by Tom D. (100 points)

Please sign-in or register to answer this question.

...