About Live Assist Panels
The Live Assist Panels allow you to design web based user panels to control elements of the Unreal projects, such as Cameras, lights, objects positions etc.
The Live Assist Panel web server needs to be launched manually using the dedicated desktop shortcut. Run it to start the web server. You should get the following output:
Open Chrome and type in the following URL to open the Panel web page: http://localhost. Login default credentials are admin/adminLAP.
First custom panel
We start by selecting Panels in Live Assist Panels
Then we add new Panel
Set the Size
To Start Editing the Panel we need to click the Edit Icon in the Top Left Corner
Select the Code tab
In the Code -> Main we add General command to help us send Commands to VSAR Data Engine
function setLua( Command )
{
console.log( Command )
set( "ue4", "lua_in", Command );
}
window.setLua = setLua;
We define function called setLua that accepts LUA Command, prints the command to log and sets the command in the ue4 bucket and the lua_in key
This essentially forwards the command to VSAR
On the bottom left one you will find commands that can be added to the layout by clicking on them. Start by adding a button and resize it manually to a decent size.
Commands and Actions that are triggered when pressing that button are written as Functions in Lua scripting language within the Code tab at the top left.
Those Functions are then called by the Button from the Commands tab at the bottom right:
Lua script examples - Message to Unreal Output Logs
Command (onClick):
setLua(‘PrintLog(95)’)
Output:
For more info on LUIA API, see the separate guide. |