Documentation

Support

Unity Lite

Open Unity Lite

Unity Lite

Logic Editor window reference

Use the Logic Editor window to create and edit Logic scripts.
Read time 2 minutesLast updated 2 days ago

This information gives an overview of the Logic Editor window User Interface (UI), which you use to work with Logic scripts. The Logic Editor window contains three main panels:
The Logic Editor User Interface (UI) with Node Library on the left, Logic Builder in the middle, and Methods & Variables on the right

The Logic Editor User Interface (UI)

Node Library

The Node Library panel is where you can find all the available nodes. Nodes are the building blocks for your logic.

Property

Description

NodesThe list of nodes in the panel in different categories- for example, events, actions, conditions.
Advanced BlocksEnable this option to switch to more complex logic with greater control. Disable to switch back to basic nodes.
Search BarEnter the name of a specific node you want to find. This search returns nodes even if they only exist in the advanced section.

Logic Builder

Use the Logic Builder to create and drag nodes into your script and build your logic. Connect nodes together to create Logic Blocks. Right-click on a node or the background of this panel for the following options:

Context option

Description

Create NoteCreate a note. You can attach notes to a node, or leave in empty space in the Logic Builder.
Open documentationSome nodes have documentation available in the Unity API reference. Select to go to the documentation. Only available on certain nodes.
CutRemove the selected node but keep it in memory so you can paste it elsewhere.
CopyCopy the selected node so you can paste it elsewhere.
DuplicateCopy and paste the selected node in place.
DeleteRemove the selected node.
Delete (Keep chain)Remove a node but keep the connection between the previous and next nodes.
Add Unity Event Method
For more advanced users, you can right-click on the background of the middle panel to add Unity Event Methods such as
Awake
,
Start
,
Update
and more. This feature allows you to hook into standard Unity lifecycle events and build more complex logic.

Logic Builder Hotkeys

Use the following hotkeys to speed up your workflow in the Logic Builder:

Action

Hotkey

Cut nodeCmd/Ctrl + X
Duplicate nodeCmd/Ctrl + D
Paste node in the Logic BuilderCmd/Ctrl + V
Redo actionCmd/Ctrl + Y
Toggle searchCmd/Ctrl + F
Undo actionCmd/Ctrl + Z

Methods and Variables

The panel lets you create and manage methods (groups of actions) and variables (data holders).

Property

Descriptions

Script NameChange the name of your Logic script in this field.
MethodsUse the Add(+) button to create a new method.
VariablesUse the Add(+) button to create a new variable.
RemoveThe Remove icon shows next to each variable or method in this panel. Select to delete the item.
Show/HideThis icon shows next to each variable. Click to toggle the variable's visibility. Hidden variables don’t appear in the Logic component for editing.
For more information about methods and variables, refer to Methods, variables and parameters.