I am comfortable with setting it up to work in scripts written in C# so at the top there is
public string eventName = “event:/pathtoevent”;
private FMOD.Studio.EventInstance eventNameRef;
private FMOD.Studio.ParameterInstance parameterNameRef;
and then in Start() you have
eventNameRef = FMODUnity.RuntimeManager.CreateInstance(“eventName”);
and then call these events at the appropriate time.
For example if the player controller script is in JS and every time they press jump a PlayOneShot event is triggered. Or if the up key is pressed then a footsteps event is triggered.
Having no luck so far
- You must login to post comments
Please login first to submit.