MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

OnSelect without parameters

Open sixpolys opened this issue 10 years ago • 2 comments

GestureManager: Calling OnSelect of the UnityEngine.UI.Button class without parameters will cause an error.

You can reproduce this by adding a GestureManager and UnityEngine.UI.Button to a scene. When the Button has a collider it will receive the OnSelect Message from the GestureManager but it expects an OnSelect message from the Unity EventSystem, which requires a EventData argument: https://docs.unity3d.com/ScriptReference/UI.Selectable.OnSelect.html

sixpolys avatar Oct 07 '16 07:10 sixpolys

@MrMatthias repo steps?

StephenHodgson avatar Oct 10 '16 17:10 StephenHodgson

@MrMatthias If you return with more info (repo, text of the error, test scene) I'll reopen this.

jwittner avatar Oct 12 '16 17:10 jwittner