Hi,
In my shop scene1) my currency hud is showing but not updatingi have a HUD in my scene hierarchy with a
HUD Text Content component on.
But the HUD only updates when entering the scene. While buying/selling items in the scene, the HUD doesn't update.
(Also, i've tried to follow this tuto but the HUD doesn't show :
http://orkframework.com/guide/tutorials/ui-setups/unity-ui-currency-hud/ )
In Battle2) i want a HUD to show only when the enemy is taking damage, but comparing HP
Current value and
Display value doesn't work.
Instead, use the currency HUD as you linked above - why it's not showing depends on your setup. Generally, the HUD Combatant Item component that's used to get the currency requires a combatant provided to it by it's own content provider, e.g. by having the HUD be used as a Combatant HUD.
Alternatively, you can also use the HUD Player Combatant content provider component.
2) I'll test this, never used it that way :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Will be fixed in the next update.
Also, a Not Equal check is the way to go if you want to display on any changes (while counting to the new value).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
i've tried with a HUD Player Combatant component without success.
2) Not Equal ! indeed, did not think of it thanks
How's the HUD generally shown - are you using it as a HUD set up in the editor?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Putting the HUD Prefab directly into the scene works.
Set up in the editor doesn't, even with no display conditions.
The Only Leaders option will only display the HUD for the leader of a group, but you still need to enable player, ally or enemy to display it for someone. And since this is for a shop, you'll probably need the player.
With Only Leaders disabled, it'd show the HUD for each member of a group.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Or perhaps i have to have my mouse cursor above a combatant with a special component ?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
since i don't need one i never checked <_< well, it works now :p
thanks GiL
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
In my game, the player move like in a Visual Novel (from scene to scene with arrows HUD).
Since battling worked without me having to touch at the player settings i just never bothered with it.
But perhaps i will have to, i'm not sure i'm still discovering ORK ^^
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
thanks GiL.