mixer / interactive-unity-plugin

Unity Plugin for Mixer Interactivity
MIT License
59 stars 23 forks source link

Bug in GetParticipantWhoGaveInputForControl #115

Closed djarcas closed 5 years ago

djarcas commented 5 years ago

This happens both in the Buttons demo example and in my own code. The first button press works - successive ones don't.

        {
            InteractiveParticipant participant = MixerInteractive.GetParticipantWhoGaveInputForControl("ButtonW");
if (participant != null)
                {
                    viewerRecognitionText.text = participant.UserName + " gave you health!";
                    Debug.Log(viewerRecognitionText.text);
                }
                else
                {
                    Debug.Log("Don't know who pressed this?");
                }
}

Name gave you health! Don't know who pressed this? Don't know who pressed this? Don't know who pressed this? Don't know who pressed this?

This doesn't seem to be anything I've done, as it happens in the demo apps. Any thoughts?

payzer commented 5 years ago

Thank you for logging this. Based on what you are seeing, it looks like a bug.

Garfeild commented 5 years ago

I've faced this issue sometime ago and fixed in my fork, when I've been playing around with Mixer Interactive integration for game I'm developing. Just submitted pull request with changes.

payzer commented 5 years ago

Great! It looks like you need to hit the sign button though :)

payzer commented 5 years ago

Actually I see you did. Thank you!!

Garfeild commented 5 years ago

@payzer thanks for preparing Mixer Interactive SDK for us! :)