We offer the possibility to send commands from PIXERA into the Unreal scene via the level blueprint to then activate whatever functionality the user requires.
Warning
The PIXERA Connect Plugin is required for the following features in this article to work. Follow this article to install and learn about the Connect Plugin: PIXERA Connect, an Unreal Plugin - General Usage.
Setup Unreal
To enable the execution of an Action in the Level Blueprint, the Events must be specified with the Action “Register Event”. A created custom Event attached to this Action can be recognized and executed in PIXERA. The Event name will be used later in PIXERA.
In this example are two registered Events, play and stop. Make sure to use the Event “BeginPlay” connected to the “Register Event” Action for the Event to be registered when the Unreal Project is opened in PIXERA, if done afterward PIXERA will not see the Event, and it cannot be activated.
Setup PIXERA
The call “triggerEventByName(string triggerName)” used on an Unreal World object can be used to call the Event in PIXERA. This will be setup either with an API Call, a PIXERA action, or a direct UI call. The example below is using a PIXERA action with Code Block programming.
- Locate your Unreal Resource in the PIXERA Module and extend it in its own module
- Open the Action getUnrealWorld
- Connect a SendText module to the triggerEventByName action
- Enter the string to send in the SendText.Text action.
- You can also simply connect it with a button in the Control UI and add the trigger name
Running the “sendText()” Action will now run the “play” Event in the Unreal Level Blueprint.
Continue With PIXERA Connect
The PIXERA Connect Plugin allows a variety of workflows with an opened Unreal Project. Follow the links below to learn more:
PIXERA Connect, an Unreal Plugin - General Usage
PIXERA Connect, an Unreal Plugin - Trigger Events in Unreal from PIXERA
PIXERA Connect, an Unreal Plugin - Unreal Level Streaming and Loading In Pixera
PIXERA Connect, an Unreal Plugin - Send Variable Data from PIXERA to Unreal
PIXERA Connect, an Unreal Plugin - Send Variable Data from Unreal to PIXERA
PIXERA 2.0.56 | 10. July 2024 | CL