In this blueprint series, I will be going over the process on exercise 1. Let's begin. I created a new blueprint class. In the blueprint window, you have the blueprints toolbar, components panel (which lies under blueprint panel), my blueprint panel, details panel. The three main tabs are: viewport (which you view the actor) construction scripts event graph Placing nodes - when placing nodes on an asset for blueprints they act as function. A window called 'node graph' is where you place nodes. For exercise 1, I went into the content browser and added a new blueprint class, chose 'actor' and named the file as "BP_hello". Clicking the 'BP_Hello' file opened up the blueprint. Inside the event graph I dragged a wire from the 'BeginPlay' nodes execution pin and releasing it opens up the context menu. I searched for 'print string' and named the message as "Hello Blueprints". Afterward I compiled the blueprint and played in the editor. Inside the "Play" window, it showed the message: "Hello Blueprints"
For exercise 2 I followed up from exercise 1 by going back to the "BP_Hello" blueprint. Inside the event graph, I removed the print string and kept the BeginPlay event. Inside the components panel, I added a new component called 'text' and chose the text render component. Selecting the Text Render component, I used the details panel to set the Z values of location to '100' and changed the text render color to 'green'. Afterward, I added the variable from the 'My Blueprint' panel, added the variable and changed the variable type to "text". I compiled the blueprint. In the default value category I changed the set message variable's default value as "Hello". In the event graph, I dragged out the text render component and opened the context menu. I selected "Set Text". I connected the BeginPlay's output execution pin to the Set Text and connected the Message variable to the Set Text action's value pin. I compiled the blueprint, dropped it in the content browser inside the viewport and played the game in the Level Editor.
And with that done. I will be talking about Lecture 2 for the Blueprint series!
Check out the blog link below:
Comments