Question regarding tooltips

Started by Wasupwithuman · 7 months ago · 2 replies · 96 views

#1
Wasupwithuman
Member
JoinedFeb 2025 Posts2 Score365
Apologize if this is a noob question, but I searched and couldn't find anything.

I am confused on the "tooltips" that should be showing up on IPressables.

Do I need to implement this tooltip displays myself in razor? From looking through the docs and the news releases it looked like this should happen "automagically"...

Do I need to call something specific when doing a raycast to show the tooltip?

An example just for further clarification, I added the chair component to a model but the sit tooltip does not show up in when looking at it. At this point i'm not sure if it should show up automatically, do I need to call something, or am I supposed to be implementing this myself?

Thanks.
#2
Remscar
Member
JoinedMay 2021 Posts49 Score2,705
I think that ToolTIp is just a data class of the tooltip that you should show but it's not showing it for you.

You will need to see if the player is looking at a pressable, if so, try to get a tooltip, and if there is one, then you should display some UI element as the tooltip and then populate it with the data you get back from IPressable.Tooltip
#3
Wasupwithuman
Member
JoinedFeb 2025 Posts2 Score365
Thanks for the clarification, much appreciated 
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.