I’m trying to find where the origin of this event (SetObjective) is in the HUD example for the Content Essentials project. Is it in compiled code? The comment is the same as ToggleMenu, which is fired in the player blueprint. Does the term “script” to you guys mean Blueprints, and even more clear, the graph of the blueprints? Also, the graphs don’t seem to be simulating when I run (I don’t see the wires firing from the above events at all).
Hello there,
The Event SetObjective and ToggleMenu are both Blueprint Interfaces which allow multiple Blueprints to communicate with each other. You can read more about them here: [Blueprint Interface Wiki][1]
The comment refers to “script” but it means the Level Blueprint. Essentially, the Level Blueprint sets the Objective to BP_Pickup_Child_Health (which is placed in the level) and assigns that in the BPI_HUD_Interface_Events. The BP_HUD_Example Blueprint then reads/sets the Objective as “Current Objective” in the HUD.
As for your question regarding seeing Blueprints in action, the Level Blueprint will run automatically if you have that up and you’ll see the wires firing. If you want to watch a specific Blueprint however, you’ll need to enable it by using the Debug Filter dropdown seen below:
While your level is running, hit Shift+F1 to gain control of your mouse then head over to the Blueprint you want to watch and set it via the Debug Filter.
Hope this helps clarify things!
-W
Fantastic! Thanks!