Answered
0
0

Im trying to apply an FMOD playoneshot script to a Unity animation event and I am getting this error message:

Assets/Sample Assets/2D/Scripts/Playersounds.cs(9,36): error CS1501: No overload for method PlayOneShot' takes1′ arguments

my code is

using UnityEngine;
using System.Collections;

public class Playersounds : MonoBehaviour {

    public void PlayerFootsteps ()          //this is a method called PlayerFootsteps. this is called when the program starts

    {
    FMOD_StudioSystem.instance.PlayOneShot("event:/PLayerSteps");
    }
}
  • You must to post comments
Best Answer
1
0
using UnityEngine;
using System.Collections;

public class Playersounds : MonoBehaviour {

    public void PlayerFootsteps () 
    {
        FMOD_StudioSystem.instance.PlayOneShot("event:/PLayerSteps", transform.position);
    }
}
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.