Inventool Documentation
  • Inventool Documentation
  • đŸ•šī¸Quick Start
    • Installation
    • Start Creating
  • 💡General
    • Running the Demo
    • Menu Options
    • UI Updates
    • UI Customizations
      • uGUI
      • UI Toolkit
    • Custom Item Drops
  • 🎓Tutorials
    • Demo Walkthrough
  • âœī¸Editors
    • Inventool
      • Inventory
      • Equipment
      • Items
      • Currencies
      • Crafting
      • Dismantling
      • Enchanting
      • Stats
        • Stat IDs
        • Attributes
      • Settings
    • Item Type Manager
    • Localization Editor
    • Stats Editor
    • Merchants
      • Shopkeeper
      • Craftsman
      • Enchanter
    • Storage
    • Loot
      • Loot Box
      • Item Pouch
      • Currency Pouch
    • Components
      • Initializer
      • UI
        • uGUI
          • Inventool Window
          • Split UI
            • Inventory Window UGUI
            • Equipment Window UGUI
            • Key Items Window UGUI
            • Crafting Window UGUI
            • Enchanting Window UGUI
            • Storage Window UGUI
            • Shop Window UGUI
            • Selector UGUI
          • Action Menu UGUI
          • Hover Details UGUI
          • Confirm Prompt UGUI
          • Quantity Prompt UGUI
          • Character Viewer Element UGUI
        • UI Toolkit
          • Inventool Window
          • Split UI
            • Inventory Window
            • Equipment Window
            • Key Items Window
            • Crafting Window
            • Enchanting Window
            • Storage Window
            • Shop Window
          • Action Menu
          • Hover Details
          • Confirm Prompt
          • Quantity Prompt
        • Character Viewer
      • Overworld Merchant
      • Storage Keeper
      • Item Drop
      • Item Spawner
      • Input
        • Cross Input Support
        • Cross Input Support UGUI
          • Target Selectable
  • 📄Scripting API
    • Initialization
    • Inventory
    • Equipment
      • Equipment Slot
    • Items
      • Item
      • Item Type
      • Item Stack
      • Item Drop
      • Item Spawner
      • Loot Box
      • Item Pouch
    • Currencies
      • Currency Identity
      • Currency
        • Value
      • Currency Pouch
    • Crafting
      • Craft
      • Crafter
    • Enchanting
      • Enchantment
    • Stats
      • Stat Identity
      • Attribute
      • Stat
        • Stat Value
          • Value
        • Effectiveness
      • Stat Profile
    • Storing
      • Storage
      • Storage Keeper
    • Settings
    • Merchants
      • Shopkeeper
      • Craftsman
      • Enchanter
      • Overworld Merchant
    • UI
      • uGUI
        • Inventool Window UGUI
        • Split UI
          • Draggable Window UGUI
            • Inventory Window UGUI
            • Equipment Window UGUI
            • Key Items Window UGUI
            • Crafting Window UGUI
            • Enchanting Window UGUI
            • Storage Window UGUI
            • Shop Window UGUI
          • Selector UGUI
        • Action Menu UGUI
        • Hover Details UGUI
        • Confirm Prompt UGUI
        • Quantity Prompt UGUI
        • Draggable Element UGUI
          • Equipment Slot Element UGUI
          • Item Slot Element UGUI
          • Item Stack Element UGUI
        • Action Menu Option UGUI
        • Currency Element UGUI
        • Inventory Filter UGUI
        • Inventory Slot UGUI
        • Key Item Element UGUI
        • Shop Item Element UGUI
        • Storage Currency Element UGUI
        • Stat Element UGUI
      • UI Toolkit
        • Inventool Window
        • Split UI
          • Draggable Window
            • Inventory Window
            • Equipment Window
            • Key Items Window
            • Crafting Window
            • Enchanting Window
            • Storage Window
            • Shop Window
        • Action Menu
        • Hover Details
        • Confirm Prompt
        • Quantity Prompt
        • Item Elements
          • Item Stack Element
          • Equipment Slot Element
          • Item Slot Element
          • Shop Item Element
      • Action Menu Option
      • Character Viewer
    • Events
    • Sounds
    • Saving & Loading
      • Inventory & Equipment
      • Storage
    • Input
      • Cross Input Support
      • Cross Input Support UGUI
    • Localization
      • Localization Settings
      • Localizer
  • đŸ› ī¸Support
    • Getting Help
  • 📚Changelogs
    • Latest Releases
    • Future Plans
  • ⭐Rate Me?
Powered by GitBook
On this page
  • Fields & Properties
  • Active Instance
  • Open
  • Close
  1. Scripting API
  2. UI
  3. uGUI

Hover Details UGUI

Scripting with the InventoolHoverDetailsUGUI class.

The InventoolHoverDetailsUGUI class is a mini pop-up window that displays item details.

Fields & Properties

Name
Description
Type
Access

statElementPrefab

The stat element prefab.

StatElementUGUI

protected

content

The main content container.

RectTransform

protected

canvas

The canvas component.

Canvas

protected

animator

The animator component.

Animator

protected

itemBackground

The image used to display the item background.

Image

protected

itemIcon

The image used to display the item icon.

Image

protected

itemNameLabel

The label that displays the item name.

TextMeshProUGUI

protected

itemTypeLabel

The label that displays the item type.

TextMeshProUGUI

protected

descriptionScroll

The scroll rect that contains the description.

ScrollRect

protected

descriptionLabel

The label that displays the description.

TextMeshProUGUI

protected

statsScroll

The scroll rect that displays all stats.

ScrollRect

protected

weightArea

The object that contains weight content.

GameObject

protected

weightLabel

The label that displays the item's weight.

TextMeshProUGUI

protected

currencyIcon

The image that displays the currency icon.

Image

protected

currencyLabel

The label that displays the currency amount.

TextMeshProUGUI

protected

bottomArea

The element that contains the bottom content.

RectTransform

protected

separator

The separator element.

RectTransform

protected

loadedStatElements

A list of loaded stat elements.

List<StatElementUGUI>

protected

appearanceDelay

The length of time the user must hover an item for the details to display.

float

public

autoScrollDelay

The automatic scrolling delay when the scroll rect reaches the beginning or end.

float

protected

descriptionAutoScrollSpeed

The automatic scrolling speed of the description scroll rect.

float

protected

statsAutoScrollSpeed

The automatic scrolling speed of the stats scroll rect.

float

protected

autoScrollDescriptionToEnd

If the description auto scroll is currently scrolling to the end.

bool

protected

autoScrollStatsToEnd

If the stats auto scroll is currently scrolling to the end.

bool

protected

openAction

The open action.

Action

protected

transitionState

The current transition state.

TransitionState

protected

Target

The RectTransform currently being targeted.

RectTransform

public

IsOpen

If the hover details is currently open.

bool

public

Active Instance

You can get the active InventoolHoverDetailsUGUI instance with InventoolHoverDetailsUGUI.Instance. Ensure there's an instance of it in your scene before using this field.

Open

Opening the hover details essentially requires a RectTransform target. By default, Inventool has special UI elements that hold a reference to an item, which is used by the InventoolHoverDetailsUGUI class to both open at the location of the UI element and also display the item details. So, it's not as easy as just calling an Open method.

// This may only open the hover details without setting the item
InventoolHoverDetailsUGUI.Instance.Open(myVisualElement);

Close

InventoolHoverDetailsUGUI.Instance.Close();
PreviousAction Menu UGUINextConfirm Prompt UGUI

Last updated 2 months ago

📄