x

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"

Using widget with level blueprint?

Hi,

I am trying to make a widget that will count up from inside the level blueprint! could someone point me in the right direction?

I am trying to add a +1 every time something happens inside my level blueprint and would like to display the widget inside the game..

Product Version: UE 4.14
Tags:
more ▼

asked Mar 08 '17 at 01:22 PM in Blueprint Scripting

avatar image

KebabCritic
60 17 16 17

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

2 answers: sort voted first

I have worked it out myself!!

Thanks to this youtube tutorial https://www.youtube.com/watch?v=_CV_Sg3Ffw8&t=187s

Instead of casting the game mode after his barrels are destroyed in the video, I done it so it casts the game mode and the custom event inside the level blueprint where I needed to add a +1 to the widget!

For example I needed this for my wave system which is done inside my level blueprint and after the wave has ended it adds a +1 to my wave counter widget!

Hope this helps anyone else that is struggling with this :)

more ▼

answered Mar 08 '17 at 03:00 PM

avatar image

KebabCritic
60 17 16 17

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

Is there a specific reason why you want to use the level blueprint for that?

I never tried to use my level blueprint to tell something that something else happened. I think the game mode, game state or game instance would be a better catch, because you can always get the game mode, state or instance. You can also set a specific game mode or game state for each level, so you are also able to split informations if needed. As far as I know you can also use game instance for that, but the game instance is preserved all the time as long as the game runs.

If you store your information in said blueprints, then you can go into your widget, get the game mode/state/instance, cast to the one you want to use and then get the information you need.

more ▼

answered Mar 08 '17 at 02:42 PM

avatar image

VizualTek
116 2 3 6

avatar image KebabCritic Mar 08 '17 at 03:02 PM

Hi,

I managed to figure it out myself eventually :D I needed it in my level blueprints because my wave system is set up through it and I wanted a widget which will display which wave the player is in :) thanks for your efforts anyway!!

(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