Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes

Hi Guys! I was wondering if anyone has used the Unity 3D Game Kit with Ellen as the Player Character?
Basically I am using Wwise Audio middleware to implement her sounds and can call other sounds no problem however I need to place this line of code AkSoundEngine.PostEvent ("Footsteps", .gameObject); (Footsteps is the name of my event) in to Ellens C# footstep script) to post her footstep sounds from Wwise in to Unity.

I just don't know where in the script to place the line of code or if I need to change any other line relating to audio?? below also just incase you prefer to  I have highlighted in blue here what I think are two relevant sections in which to place the line but need guidance.

Please can anybody help as I am really stuck??
I would be so grateful if anyone can help me out on this!!!
Thank you
Charlie

public RandomAudioPlayer footstepPlayer; // Random Audio Players used for various situations.

public RandomAudioPlayer hurtAudioPlayer;

public RandomAudioPlayer landingPlayer;

public RandomAudioPlayer emoteLandingPlayer;

public RandomAudioPlayer emoteDeathPlayer;

public RandomAudioPlayer emoteAttackPlayer;

public RandomAudioPlayer emoteJumpPlayer;


 

 

Transform footStepSource = transform.Find("FootstepSource");

if (footStepSource != null)


footstepPlayer = footStepSource.GetComponent<RandomAudioPlayer>();

 

in General Discussion by Charlie C. (100 points)

Please sign-in or register to answer this question.

...