GameDragon I have an entire pause menu with multiple pages and sub menus that was completed prior to adding ORK framework to my project. I'd like to use this same menu but populate it with data from ORK.
This is the exact same situation I am in!
I can already access the information (combatant name, for example) through script though, by
CombatantComponent combatantComponent = select.GetComponent<CombatantComponent>();
text = combatantComponent.Combatant.GetName();
However since I've also already setup loads of HUD templates in ORK already, and the exact same information and format are needed in my own UI, I am looking for a way to do use HUD templates or ORK component directly and I believe there should be a way, just that I can't seem make it work yet.
gamingislove There are multiple such components available to use them outside of a HUD, e.g. the HUD Player Combatant (Content Provider) component.
So I found 4 content providers that claim to work outside of a HUD:
I'm trying to display the status values of a spawned combatant, and my game does not have a "player character" that player can control through gamepad:
So this HUD Combatant Object (Content Provider) seems like the best fit.
Q.1 Even after I attach a HUD Combatant Object (Content Provider) component to an empty gameObject (named HUD Combatant Object (Content Provider) in screenshot) , point the "Combatant Game Object" fields to a newly spawned combatant, and still nothing happens. All the ORK Framework - HUD - Content/Status Value gameObjects added as child of this HUD Combatant Object (Content Provider) gameObject either displays nothing, or can't be enabled.
Q. 2 Currently I have to drag the "Spawned Combatant" gameObject to the "Combatant Game Object" field AFTER it is spawned. How do I have this connection established as soon as a new combatant is spawned? The idea is when player click on a newly spawned combatant, a UI pops up showing information of that combatant, such as name, level, HP, etc. (As shown in the first screenshot)