Announcement

Collapse
No announcement yet.

UMG Implementation question. Moving widgets and drawing stuff onscreen

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    UMG Implementation question. Moving widgets and drawing stuff onscreen

    Ssome question on UMG implementation with blueprint.
    i've had a fair share of experience using UMG with Blueprint but can't seems to figure these out.
    Any help would be appreciated.

    1) Is there a way to move widgets around? I'm asking this specifically for the purpose of doing floating
    information on the screen ( e.g HP Bar of RTS Unit , Player Name/Icons on screen) . My plan, to loop through the amount of unit on screen
    create HP bar, detect & update them as widget child and update the position per tick. I can do all of that except the position.
    Is there a better way to do this?

    2) What are the ideas of Minimap implementation as of now using UMG? Specifically how do you go about drawing
    enemy dots/blob on the minimap? If they're child of a widget, how would I go about moving them around?
    Developer at AmmoboxStudios.



    Eximius ( An FPS/RTS Hybrid )

    #2
    Bupming the thread.. so many experts in UMG I'm sure someone can help with this
    Developer at AmmoboxStudios.



    Eximius ( An FPS/RTS Hybrid )

    Comment


      #3
      Originally posted by Frozenfire View Post
      Ssome question on UMG implementation with blueprint.
      i've had a fair share of experience using UMG with Blueprint but can't seems to figure these out.
      Any help would be appreciated.

      1) Is there a way to move widgets around? I'm asking this specifically for the purpose of doing floating
      information on the screen ( e.g HP Bar of RTS Unit , Player Name/Icons on screen) . My plan, to loop through the amount of unit on screen
      create HP bar, detect & update them as widget child and update the position per tick. I can do all of that except the position.
      Is there a better way to do this?

      2) What are the ideas of Minimap implementation as of now using UMG? Specifically how do you go about drawing
      enemy dots/blob on the minimap? If they're child of a widget, how would I go about moving them around?
      In the newest branch of UE4 from GitHub, widgets have a render transform property that will allow you to update their positions dynamically. This should be in 4.5 as well if you aren't building the source. If you can't wait for that, you can move them dynamically using the padding and alignment settings for your widgets, but it's much more difficult.

      I'm no expert on minimaps, but this YouTube tutorial might be of some interest: http://www.youtube.com/watch?v=adYVI5XYmoI
      iTween For UE4
      Procedural pathed animation for actors, components & UMG - $0
      Runtime DataTable
      DataTables dynamically loaded from text or Google Sheets while your game is running!
      easyCSV
      Fast, cheap, and accurate CSV parsing at runtime!

      Comment

      Working...
      X