La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

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.
demandé 30-Avr dans General Discussion par Tom D. (100 points)

Please sign-in or register to answer this question.

...