コード例 #1
0
 /// <summary>
 /// Draws a hint at a specific position of the screen.
 /// </summary>
 /// <param name="hint">The content of the hint</param>
 /// <param name="rect">The rect where the hint will be drawn. The top-left corner of the hint will start at the X coordinate</param>
 public static void DrawHintAt(DynamicHintContent hint, Rect rect)
 {
     TooltipView.s_ForceExtensionOfNextDynamicHint = true;
     TooltipView.Show(hint.ToTooltipString(), rect);
 }
コード例 #2
0
 /// <summary>
 /// Draws a hint at a Rect, if the mouse is in it.
 /// </summary>
 /// <param name="hint">The hint to draw</param>
 /// <param name="tooltipRect">The rect where the hint will be drawn</param>
 internal static void DrawMouseTooltip(DynamicHintContent hint, Rect tooltipRect)
 {
     GUIStyle.SetMouseTooltip(hint.ToTooltipString(), tooltipRect);
 }