Hi guys, I followed the tutorial here
http://orkframework.com/tutorial/gameplay/individual-combatant-huds/ and all worked well except that the HP bars are not fixed above the combatants heads.
I made sure to create an empty game object, call it HUD and make sure it was in the prefab hierarchy on the hierarchy tab (and replace the old prefabs where required, with the new ones) I have tired putting the game object in either the prefab itself or even the bone hierarchy like for an equipment viewer.
Path to child on the HP Bar HUD under HUDs in the framework is set to "HUD" which is the name of my empty game object.
Perhaps it still isn't finding this object? The object appears with black text in the hirachy not blue text, does this mean its not parented correctly?
On the up side the bars are appearing and taking damage etc just not staying above combatants heads (infact they never go there, just seem to move around the bottom of my screen depending on my view- If a video is helpful let me know).
Thanks for any help.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Here is a quick vid of what is happening (please excuse the test crap everywhere but you will get the general idea from the vid).
https://youtu.be/UBsMqzP_XqM
Thanks again.
If they're placed correctly, check out your Screen/GUI Settings in Game > Game Settings. The default screen size and GUI scale mode are responsible for adjusting the UI to the actual screen size.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Firstly this HUD issue. Please see the new video here, it shows all my ORK settings along with the problem in game.
Please note I changed some minor settings from the tutorial like in shops = ignore etc, and I only selected player, as I just wanted to simplify things to one HUD and trouble shoot. (I've also tried with Full HD res and with the 1650 res in ork and unity game window settings - makes no difference).
I've even tried making the HUD object a child of the bone structure and adding the path to child in ORK - still behaved exactly the same way.
A few things I've noticed.
1. There are TWO HP HUDs floating around, they are very close together but you can see two, at the start of the game. Why? I have only got "Player" selected in my settings, there should only be one. I have searched for secondary players in the scene but nothing came up.
2. The indivdual HP HUD seems to be aligned with the player in the X/Z axis but is inverted with the Y axis of the camera - you can see this in the video when I move the camera up and down (In the first scene where the player spawns).
3. This alignment only occurs in the scene provided by the ORK tutorial. In the new scenes (made primarily via Gaia) there is no such alignment, they just go straight to the top left corner of the screen as if the HUD object hasn't been found on the player.
I'm using the John stairs camera controller script and have the camera attached to the actual player on a child object - I had this same HUD issue before ever doing that, but I am actively trying to solve this issue with John.
Thanks for any help. @gamingislove
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!