User avatar
peanut
Topic Author
Posts: 17
Joined: 10 Oct 2023, 16:44

RichText Hover issue

11 Mar 2024, 21:56

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.
 
User avatar
peanut
Topic Author
Posts: 17
Joined: 10 Oct 2023, 16:44

Re: RichText Hover issue

12 Mar 2024, 10:32

Further tests showed the issue is in our project, so you can ignore it for now.
 
User avatar
jsantos
Site Admin
Posts: 3925
Joined: 20 Jan 2012, 17:18
Contact:

Re: RichText Hover issue

12 Mar 2024, 11:53

Great! Marking as solved. Thanks for getting back.
 
Otter
Posts: 18
Joined: 23 Sep 2023, 12:04

Re: RichText Hover issue

12 Mar 2024, 12:19

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).
 
Otter
Posts: 18
Joined: 23 Sep 2023, 12:04

Re: RichText Hover issue

12 Mar 2024, 12:54

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
 
User avatar
jsantos
Site Admin
Posts: 3925
Joined: 20 Jan 2012, 17:18
Contact:

Re: RichText Hover issue

12 Mar 2024, 13:53

Is this issue only happening when using noesis:RichText ?
 
User avatar
peanut
Topic Author
Posts: 17
Joined: 10 Oct 2023, 16:44

Re: RichText Hover issue

12 Mar 2024, 14:43

Yea, so far we noticed it only with RichText.
 
User avatar
jsantos
Site Admin
Posts: 3925
Joined: 20 Jan 2012, 17:18
Contact:

Re: RichText Hover issue

13 Mar 2024, 11:59

Could you please create a ticket with a patch with you local modifications to understand this a bit more? Thank you!

Who is online

Users browsing this forum: No registered users and 2 guests