Answered
0
0

I’ve replaced a oneshot with an event instance to control parameters but I can’t set the position of the sound the same way.
How would I set my event.start the same way the commented out one shot is above?

  if(shootHit.collider.tag ==  "Metal")
            {

                          Debug.Log("metal was hit"); 
            //FMODUnity.RuntimeManager.PlayOneShot(metalHit, shootHit.transform.position);
            metalEvent.start();
  • You must to post comments
Best Answer
0
0

Using Set3DAttributes or AttachInstanceToGameObject will update the events position.
You can find an example of it here: script_example_basic

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.