Click or drag to resize

Tooltip Properties

The Tooltip type exposes the following members.

Properties
  NameDescription
Public propertyArrowRectTransform
Transform of the Arrow object so we can move the canvas slightly when we scale up and down to keep it pointing at the correct location
Public propertyAutoHideIntervalInSeconds
Number of seconds to wait before hiding the tooltip automatically
Public propertyHideAnimationTriggerParameterName
The trigger's name that will play the HIDE animation on the Animator
Public propertyMaxDistanceTooltipInMetersForScale
Maximum total distance in meters. This should be larger than MaxDistanceTooltipInMetersForScale. At distance > MaxDistanceTooltipInMetersForScale and distance < MaxDistanceTotalInMetersForScale, the arrow is displayed At distance < MaxDistanceTooltipInMetersForScale the tooltip is displayed and the arrow hidden
Public propertyMaxDistanceTotalInMetersForScale
Maximum total distance in meters. This should be larger than MaxDistanceTooltipInMetersForScale. At distance > MaxDistanceTooltipInMetersForScale and distance < MaxDistanceTotalInMetersForScale, the arrow is displayed At distance < MaxDistanceTooltipInMetersForScale the tooltip is displayed and the arrow hidden
Public propertyMinDistanceInMetersForScale
Minimum distance in meters used to scale tooltip. Anything closer than this means the tooltip does not scale anymore and stays constant size.
Public propertyNoInteractionPeriodForShow
Number of seconds with no interactions to trigger the display of the tooltip
Public propertyNumberOfTimesToShow
Number of times to show the tooltip. Set to 0 (Default) which disables this feature
Public propertyShouldScaleWithDistance
Should this tooltip scale up the further away the player gets from it?
Public propertyShowArrowAnimationTriggerParameterName
The trigger's name that will play the SHOW arrow animation on the Animator
Public propertyShowHideAnimator
Animator to use when showing/hiding the tooltip
Public propertyShowTooltipAnimationTriggerParameterName
The trigger's name that will play the SHOW tooltip animation on the Animator
Public propertySizeScalarAtMaxDistance
The amount to scale the size by at maximum distance. The tooltip's size is an interpolation between this and the size at minimum distance.
Top
See Also