Hi,
Trying to change a parameter value from an Event Instance created on another script, it seems that just providing the event path and setParameterByName doesn’t work. Is there a step I’m missing?
public override void OnEnter()
{
if (FMODEvent.Value == null || ParameterName.Value == null)
{
return;
}var go = Fsm.GetOwnerDefaultTarget(GameObject); Instance = RuntimeManager.CreateInstance(FMODEvent.Value); RuntimeManager.AttachInstanceToGameObject(Instance, go.transform); if (!EveryFrame) { Instance.setParameterByName(ParameterName.Value, ParameterValue.Value); Finish(); }
}