Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button doesn't detect tapping #15

Closed
TarekMedhat opened this issue Jul 29, 2019 · 6 comments · Fixed by #16
Closed

Button doesn't detect tapping #15

TarekMedhat opened this issue Jul 29, 2019 · 6 comments · Fixed by #16

Comments

@TarekMedhat
Copy link

Expected: I've a unity project with a button and a background, when the button is clicked the background image should change.

What's happening in flutter project: the button is not clickable at all, it doesn't detect the click even it's working fine on unity.

any solutions?

@lorant-csonka
Copy link

You should try the example project.
This solution uses UnityMessageManager to communicate between Unity and Flutter.
Your clicks/taps in the app are only handled at the flutter part, and you should figure out how to give them to the unity part.

@TarekMedhat
Copy link
Author

Thank you @lorant-csonka-planorama for your response.
So all gestures are not detected by unity and all gestures should be handled by gesturedetector widgets on flutter? I mean if I am building a puzzle game I won't be able to handle gestures on unity?

@lorant-csonka
Copy link

Yes, that's how it works. You have to implement the communication layer between flutter and unity, and that includes interactions also.

@thomas-stockx
Copy link
Collaborator

thomas-stockx commented Jul 30, 2019

Fixed in #16!

Since the maintainer of this repo doesn't seem to merge my pull requests, there is a fork with several fixes available here (use the improvements branch):
https://github.com/thomas-stockx/flutter-unity-view-widget/tree/improvements

@TarekMedhat
Copy link
Author

Fixed in #16!

Since the maintainer of this repo doesn't seem to merge my pull requests, there is a fork with several fixes available here (use the improvements branch):
https://github.com/thomas-stockx/flutter-unity-view-widget/tree/improvements

Well done, You did a very nice job, thanks for sharing that.
Do you have any clue on the progress with the IOS? did you investigate in this?

@thomas-stockx
Copy link
Collaborator

@TarekMedhat Yes, we (@krispypen and myself) are currently investigating iOS and Unity AR Foundation support and we're seeing some progress. We'll hopefully have more to share about it later this week. However, expect baby steps for the iOS version! We first need to get a Unity scene to work, and then try to get feature parity with the Android version (touch, AR support,...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants