I'm trying to update the content of a HUD within code. But every time I do it all of the UI Content under it gets disabled (i'm assuming this is because of the User variable in it being invalid) . So how would I go about updating the User within the HUD properly. The image is what I currently have.

image
  • What content do you want to display in the HUD?
    The FurceUserUpdate can be used to change the user of the HUD, but what you're passing on here is nothing that can be displayed by the HUD, so the content components will have no valid content and are disabled.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I want to display the ability I have there in the image. I want to preview it so the player can see the details of the ability in question.

    image
  • You'll probably have some luck if you use statusValue.Settings if your HUD uses generic content components (e.g. HUD Text Content or ORK HUD Text Content) to e.g. display name, icon or description.

    For specialized setups (e.g. ORK HUD Status Text Content displaying an Ability) this'll require an actual instance of an ability as the HUD user, e.g. the AbilityShortcut of a combatant's ability or even better a DragShortcutWrapper instance that has the combatant who owns/uses it and the ability shortcut available.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Using a ORK HUD Text Content seems to work! How would I go about displaying the tooltips with it?
  • Theoretically just via a HUD Tooltip component, but tooltip display depends on certain content being displayed, the pure ability settings don't work here, so you'd once again require an AbilityShortcut for this.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • So I'm giving the HUD component an AbilityShortcut now. The icon works but the tooltip doesn't seem to work when I hover my mouse over it. This is the shortcut I give it btw

    image
  • Is the HUD Tooltip component attached to a game object that has a graphic (image, text, etc.) attached as well? Otherwise it'll not receive cursor over events from Unity.
    Also, make sure your tooltip HUD can display abilities (either displaying all tooltips or has ability tooltips added).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Yep, I believe those are all in place. Here are my components so far.

    Canvas
    image

    HUD
    image

    Button
    image

    Status
    image

  • Might be the button is eating the cursor events here ... try adding the HUD Tooltip component above or below the button in the hierarchy.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.