Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

What is the Blueprint behavoir of bind and hidden items?

I have implemented a fairly intensive function that loops through and sums up all the values of a 1000 value array, and binds that value to text in the menu. I am concerned that this may be adding lag to the game, though it still runs fine on the development computer. My questions are:

  1. When do bound functions run (in this case, binding to the text of a text box) - e.g. does it run every clock tick (hopefully not), once in a while, when a value changes, or what? The binding I am talking about is I compute the game completion percentage (a fairly intensive process) to a text box in the game menu.

  2. Does blueprint code run for hidden objects? I hide the menu for normal gameplay, and display it when the game is paused, then re-hide it when resuming gameplay.

As long as hidden objects don't execute their code, it probably shouldn't lag out the game.

Product Version: UE 4.17
more ▼

asked Jan 23 '19 at 10:58 PM in Blueprint Scripting

avatar image

12 5 8 11

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first
  1. Bound getter functions in UMG are called every time the widget ticks, that is correct. Idealy if you have a heavy process to generate the value you can create a dispatcher in your class and bind that event on the widget, so when you update the value you call that event and set the value on your widget.

  2. Hidden widgets do not tick.

more ▼

answered Jan 24 '19 at 01:34 PM

avatar image

944 21 13 29

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question