Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Custom buttons on AppBar raise no event #1835
When adding custom buttons on the AppBar, those buttons do not raise any event when clicked, even though an OnTappedEvent has been provided.
When clicked the buttons should raise their OnTappedEvent.
Nothing happens on click.
Steps to reproduce
Just add an OnTappedEvent on a custom event and nothing happens on click.
Unity Editor Version
Mixed Reality Toolkit Release Version
Not sure if we are just not using the AppBar correctly. We added a behaviour in the InputClicked method of the AppBar.cs and added a getter on the template attribute of the AppBarButton.cs :
lignes 239-241 :
@GermainJLab We found that OnTappedEvent is no longer used. We'll remove it from the AppBar inspector. You can simply add custom logic to InputClicked() function in AppBar.cs
Or, you can create a new class which inherits InteractionReceiver, then assign it to Event Target field. We'll update the scene with these examples.