(C#) Calling EventInstance::setCallback with various callbackmasks results in only the last one working

There can only be one callback delegate registered per event. If you wish to receive multiple types of events OR them together.

instance.setCallback(m_delegate1, EVENT_CALLBACK_TYPE.STOPPED | EVENT_CALLBACK_TYPE.CREATED);

The specific event that triggered the callback is passed as an argument.

1 Like