Triggering Multiple Actions via Single Button
Last updated
Last updated
Main goal of this section is changing state of Character Blueprint, load a level with Level Streaming and change the color of Spotlight Control blueprint simultaneously with a single click.
In this section, we will be utilizing MainLevel map of the RealityExample, the project shipped with Reality 5.3.
It is possible to trigger multiple actions with a single button.
Launch the RealityExample project.
Create a new Action, rename it to something like Play All.
Expand the UE5 folder, then go to Blueprints > and select the BP_LevelStreaming.
By inheriting the previous method, add the Chane State
property of the Character Blueprint into the timeline, as shown in the image above.
Add the Lightcolor&intensity
property of the BP_Spotlight into the timeline, as shown in the image above.
We added Load Level, Change State and Light Color & Intensity properties to the Action Timeline, as illustrated above.
Go to first frame and add keyframe to each property.
Go to second 2, change the Blue value of Lightcolor&intensity from 0.500 to 5.000
Add a keyframe to Light Color & Intensity, change its interpolation type to EaseInOut, as illustrated above.
Save the action.
Create a new Action, rename it to something like Stop All.
Add Unload Level, Change State and Lightcolor&intensity properties to the Action Timeline.
Go to first frame and add keyframe to each property.
Go to second 2, change the Blue value of Lightcolor&intensity from 5.000 to 0.500.
Add a keyframe to Lightcolor&intensity, change its interpolation type to EaseInOut.
Save the action.
Activate the Form Builder and create a new template form.
Repeat the same procedure for the second action.
Save the Template Form, as illustrated above.
Click on the buttons and check the results via APM.
Create a node tree and activate the , as shown in the image above.
Change the camera angle to a suitable position to observe changes by using feature.
Select the UE5
node, go to .
Go to panel, expand the Default.
Click on the button of the Load Level
property, as illustrated above.
Go to the first Action, click & hold your left mouse button on the button, drag & drop it into .
Activate the module, select your template from