Is it possible to use a prefab or sprite for the the image of a bar fill and background.

I am reworking my UI system and adding new UI art, but having problems creating bars out of sprites of prefabs.
By prefabs I mean like how you could create a prefab to override UI elements like choice buttons, background, and so forth.
  • edited June 2020
    Not directly in ORK - but you could set up the content box prefab of the used GUI box and add custom UI like that.

    When ORK spawns the GUI box via the new UI, it'll have a GUIBoxComponent attached, which you can use to get the combatant of a Combatant HUD:
    Combatant combatant = ((CombatantHUDContent)guiBoxComponent.GUIBox.Content).Combatant;
    You can use the combatant to get the values for your bars (and other content).
    Post edited by gamingislove on
    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!
Sign In or Register to comment.