Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Inventory System Asset Errors

Discussion in 'Scripting' started by Mick_Ash, Nov 16, 2023.

  1. Mick_Ash

    Mick_Ash

    Joined:
    Oct 6, 2023
    Posts:
    28
    Hello,

    I am getting errors that won't allow the game to run. I am using the Inventory Master uGUI asset by Sander Buccheim and when trying to run the game, these errors appear:

    UnityException: Tag: Tooltip is not defined.
    ConsumeItem.Start () (at Assets/InventoryMaster/Scripts/Item/ConsumeItem.cs:19)

    UnityException: Tag: Tooltip is not defined.
    ShowTooltip.Start () (at Assets/InventoryMaster/Scripts/Item/ShowTooltip.cs:18)

    UnityException: Tag: Tooltip is not defined.
    PlayerInventory.Start () (at Assets/InventoryMaster/Scripts/ExampleScript/PlayerInventory.cs:179)

    Any idea what to do? Should I just find another asset for inventory management? Please, help!
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,169
    Sounds like the error is telling you you need a Tag named Tooltip.
    This may have been part of the instructions for the asset also, but I don't know since I don't use it. But I would try that first.
     
  3. APSchmidt

    APSchmidt

    Joined:
    Oct 31, 2023
    Posts:
    252
    Did you add the tag "Tooltip" in Tags and Layers?
     
  4. Mick_Ash

    Mick_Ash

    Joined:
    Oct 6, 2023
    Posts:
    28
    I don't think so. Would I just need to add it and assign it?
     
  5. Mick_Ash

    Mick_Ash

    Joined:
    Oct 6, 2023
    Posts:
    28
    Update: the tooltip tag exists, but it's odd that the error only shows up in the example script.
     
  6. Mick_Ash

    Mick_Ash

    Joined:
    Oct 6, 2023
    Posts:
    28
    Solved it! Just had to remove the example scene!