#How to set tooltip through code?
1 messages · Page 1 of 1 (latest)
Invalid assignment of property or key 'hint_tooltip' with value of type 'String' on a base object of type 'Control'.
is what I get upon running this code
the error is saying hint_tooltip isn't a property of Control nodes
I think tooltip_text is the property you're looking for
yeah that seems right, though I'm using the set method in a process loop, does it being set again every frame prevent it from being shown on hover?
idk, you could avoid setting it when it remains the same value
thing is I'm trying to add it as a hover info to show how many of a certain material you have currently
so it updates often anyways
you can limit how often it updates
is the tooltip even showing if it doesn't change?
tooltips might just not work for this
mm maybe I should make it just change the text label on hover or something
could be easier
probably