Web needs a PointerInterceptor to be able to click on any widget on top of the UnityWidget.
However in the way this is used in the examples, all clicks are intercepted and none will ever reach Unity #827.
This is because it is wrapped around a Positioned, and will take the full dimensions of the Stack.
This pull request simply moves the PointerInterceptor down in the hierarchy, so that it shrinks in size to fit the widget that needs mouse input
I also added a note about web compression to the readme, as this issue has popped up in Discord multiple times.
Type of Change
[ ] โจ New feature (non-breaking change which adds functionality)
[x] ๐ ๏ธ Bug fix (non-breaking change which fixes an issue)
[ ] โ Breaking change (fix or feature that would cause existing functionality to change)
Description
Web needs a PointerInterceptor to be able to click on any widget on top of the UnityWidget. However in the way this is used in the examples, all clicks are intercepted and none will ever reach Unity #827.
This is because it is wrapped around a
Positioned
, and will take the full dimensions of the Stack.This pull request simply moves the PointerInterceptor down in the hierarchy, so that it shrinks in size to fit the widget that needs mouse input
Type of Change