Search found 16 matches

  • 1
  • 2
by alfiare
25 Aug 2021, 20:58
Forum: General Discussion
Replies: 8
Views: 5958

Re: Popup Not Working With Hit Test in Unity

OK I think I figured this out, I was doing my hit test downstream of the new Unity Input System, if I do the hit test on a script (like the one you provided) on the camera itself then the hit testing works as expected, properly finds the hit against the popup of the dropdown of the combobox. So I'm ...
by alfiare
24 Aug 2021, 18:45
Forum: General Discussion
Replies: 8
Views: 5958

Re: Popup Not Working With Hit Test in Unity

So I made a super simple test page (XAML below), and with the Noesis settings in the image below tried it, so trying to remove any of my custom stuff at all, same result though, hit test works over the combobox itself but not over the dropdown, it does work over the button in the dropdown which woul...
by alfiare
24 Aug 2021, 17:38
Forum: General Discussion
Replies: 8
Views: 5958

Re: Popup Not Working With Hit Test in Unity

You are right, I made a new Unity project and imported NOESIS using the built in themes by default, and it works. I was using a custom template and such but in my project even converting to use the NOESIS theme it still doesn't hit test the dropdown on the combobox. So it has to be something about m...
by alfiare
20 Aug 2021, 18:51
Forum: General Discussion
Replies: 8
Views: 5958

Re: Popup Not Working With Hit Test in Unity

Sorry I missed that, that does fix a Popup by itself, but it doesn't seem to fix a Popup being used in a template for a ComboBox dropdown. If I change the content of a combobox item to be a button the button does hit test correctly, but the rest of the area of the dropdown does not.
by alfiare
20 Aug 2021, 17:03
Forum: General Discussion
Replies: 8
Views: 5958

Popup Not Working With Hit Test in Unity

A Popup like the example below doesn't ever hit using the VisualTreeHelper.HitTest. This becomes interesting when it's used as a dropdown for a combobox. Is there another way to hit test or some way to make Popups hit? <Popup IsOpen="True"> <Border BorderBrush="Red" Background=&q...
by alfiare
20 Aug 2021, 16:03
Forum: General Discussion
Replies: 5
Views: 8267

Re: GridLength Dependency Property causes crash

Thats great, thanks!
by alfiare
20 Aug 2021, 15:54
Forum: General Discussion
Replies: 4
Views: 5940

Re: Hit Testing Not Working after 3.1.0 Upgrade

That works great, thanks!
by alfiare
20 Aug 2021, 05:01
Forum: General Discussion
Replies: 4
Views: 5940

Re: Hit Testing Not Working after 3.1.0 Upgrade

Also found that if I manually adjust the point location based on the ratio of Unity's Screen to Noesis's size then I seem to get accurate hit testing, the following works Visual root = (Visual)(NoesisView from camera).Content; UnityEngine.Vector3 mousePos = Input.mousePosition; Point point = new Poi...
by alfiare
20 Aug 2021, 04:42
Forum: General Discussion
Replies: 4
Views: 5940

Re: Hit Testing Not Working after 3.1.0 Upgrade

I've also found that if I compare Unity's Screen.width/height vs VisualTreeHelper.GetSize((noesis view from camera).Content) they are different, the VisualTreeHelper.GetSize is quite a bit smaller.
by alfiare
20 Aug 2021, 04:29
Forum: General Discussion
Replies: 4
Views: 5940

Hit Testing Not Working after 3.1.0 Upgrade

I recently upgraded to 3.1.0 I noticed that the hit testing code below (taken from the Unity doc) seems to not work anymore. It finds hits where there's nothing and over actual buttons and things it doesn't find a hit. I also noticed that it seems like all the UI elements got larger. Anyone have any...
  • 1
  • 2