Page 1 of 1

RichText Hover issue

Posted: 11 Mar 2024, 21:56
by peanut
Hello,

Here is a recording from unity, its the button from hello world sample:
https://www.dropbox.com/scl/fi/09582yyr ... m44lw&dl=0
- On the left:
            <Button Margin="10">
                <TextBlock noesis:RichText.Text="Test1"/>
            </Button>
- Right:
            <Button Margin="10">
                <TextBlock Text="Test1"/>
            </Button>
pay close attention on the small area right above and left from first letter where its not hit visible, so its loosing hover.

I tried forcing IsHitVisible="false" on text and have button background for hit, same result.

Is this an issue with RichText?

Thank you.

Re: RichText Hover issue

Posted: 12 Mar 2024, 10:32
by peanut
Further tests showed the issue is in our project, so you can ignore it for now.

Re: RichText Hover issue

Posted: 12 Mar 2024, 11:53
by jsantos
Great! Marking as solved. Thanks for getting back.

Re: RichText Hover issue

Posted: 12 Mar 2024, 12:19
by Otter
We found out that if you position UI at Z that is not 0, then the Run element will cause issues. Inside UpdateActions of NoesisView.cs it hits Noesis.Run element when the UI is not at position 0, otherwise it does not. Z coordinate of Noesis.Run is always 0 and then it calculates wrong mouse position.

We tried this on your WorldSpaceUI sample if you set Object1 position to (0,1,1) and XRRig position to (0,0,-1) it starts to blink with above code sample - rotation of both objects is (0,0,0).

Re: RichText Hover issue

Posted: 12 Mar 2024, 12:54
by Otter
We have fixed it temporarily inside NoesisView. We used
void HitTest3D(Visual reference, Point3D point, Vector3D direction, HitTestFilterCallback filterCallback, HitTest3DResultCallback resultCallback)

and ignored Noesis.Run element

Re: RichText Hover issue

Posted: 12 Mar 2024, 13:53
by jsantos
Is this issue only happening when using noesis:RichText ?

Re: RichText Hover issue

Posted: 12 Mar 2024, 14:43
by peanut
Yea, so far we noticed it only with RichText.

Re: RichText Hover issue

Posted: 13 Mar 2024, 11:59
by jsantos
Could you please create a ticket with a patch with you local modifications to understand this a bit more? Thank you!