Forum begins after the advertisement:


Cannot assign Item Name and Item Description to the UI Manager

Home Forums Video Game Tutorial Series Creating a Farming RPG in Unity Cannot assign Item Name and Item Description to the UI Manager

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11770

    I can’t assign Item Name and Item Description into the UI Manager by dragging them!

    Variables

    Function

    Please, if anyone know, what I have to do to fix it.

    #11772
    Terence
    Keymaster

    Hi Ondra, are you using TextMeshPro in your Editor? To be able to assign the item name and description, you need to assign a GameObject with a Text component. If you only have TextMeshPro, you will need to add the following line at the top:

    using TMPro;

    Then, change the Text components to TextMeshPro Text components:

    public TextMeshProUGUI itemNameText;
    public TextMeshProUGUI itemDescriptionText;
    #11774

    I see… thanks for that! My Unity version is 2022 or the newest so I had some error to that.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: