Michsky – Docs Michsky – Docs
  • Home 
  • Documentation 
    • Hex UI 
    • Beam UI 
    • Reach UI 
    • Heat UI 
    • DreamOS 
    • Modern UI Pack 
    • Loading Screen Studio 
    • Dark UI 
    • Motion Titles Pack 
  • Contact 
Michsky – Docs Michsky – Docs
Michsky – Docs
  • Home 
  • Documentation 
    • Hex UI 
    • Beam UI 
    • Reach UI 
    • Heat UI 
    • DreamOS 
    • Modern UI Pack 
    • Loading Screen Studio 
    • Dark UI 
    • Motion Titles Pack 
  • Contact 

Modern UI Pack

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Button
    • Charts
    • Context Menu
    • Dropdown
    • Horizontal Selector
    • List View
    • Modal Window
    • Movable Window
    • Notification
    • Progress Bar
    • Slider
    • Switch
    • Tooltip
    • Window Manager
    • Other Elements
  • UI Manager
  • Others & Add-ons
  1. Home
  2. Modern UI Pack
  3. UI Elements
  4. Tooltip
Updated on August 3, 2022

Modern UI Pack

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Button
    • Charts
    • Context Menu
    • Dropdown
    • Horizontal Selector
    • List View
    • Modal Window
    • Movable Window
    • Notification
    • Progress Bar
    • Slider
    • Switch
    • Tooltip
    • Window Manager
    • Other Elements
  • UI Manager
  • Others & Add-ons

Tooltip

Author: admin 187 views

After creating the Tooltip System from Modern UI Pack menu, you can add ‘Tooltip Content’ component to the objects you want to use with. Just type your description and you’re good to go! You can also change tooltip bounds, but I’d suggest you keep them. It’s basically changing the tooltip direction, so it’s always visible even if it’s on the corner. Works with Screen Space Camera, Screen Space Overlay and World Space (with limitations) canvas modes.

Properties

Property Type Function

mainCanvas

Canvas

Initializes the system depending on the rendering mode.

tooltipSmoothness

float

Sets the tooltip animation smoothness.

preferredWidth

float

Sets the max tooltip width.

Scripting (Tooltip Manager)

				
					using Michsky.MUIP; // MUIP namespace
using UnityEngine;

public class SampleClass : MonoBehaviour
{
    [SerializeField] private TooltipManager myTooltipSystem;

    void YourFunction()
    {
        myTooltipSystem.tooltipSmoothness = 0.1f; // Change smoothness
        myTooltipSystem.allowUpdating = false; // Allow or disallow updating
    }
}				
			

Scripting (Tooltip Content)

				
					using Michsky.MUIP; // MUIP namespace
using UnityEngine;

public class SampleClass : MonoBehaviour
{
    [SerializeField] private TooltipContent myTooltipContent;

    void YourFunction()
    {
        myTooltipContent.description = "New description"; // Change description
        myTooltipContent.delay = 0f; // Add or change delay
    }
}				
			

How can we help?

A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.

© 2024 Michsky