IN THIS ARTICLE
Introduction to Open 3D Engine’s Lua Editor
The O3DE Lua Editor (Lua IDE) offers an intuitive integrated development environment (IDE) that makes it easy to author, debug, and edit Lua scripts when you create or extend your game. Lua Editor is a standalone application, but can be opened directly from the O3DE Editor using the Edit Mode toolbar.
Lua Editor can open multiple scripts at the same time. Each script has its own tab in the editor. The editor provides a standard set of capabilities for text editing but also includes useful features for editing source code.
The following table summarizes the options available while editing and debugging.
|Comment selected block||Ctrl+K|
|Find in open files||Ctrl+Shift+F|
|Fold source functions||Alt+0|
|Go to line||Ctrl+G|
|Quick find local||Ctrl+F3|
|Quick find local reverse||Ctrl+Shift+F3|
|Replace in open files||Ctrl+Shift+R|
|Select to brace¹||Ctrl+Shift+]|
|Transpose lines down||Ctrl+Shift+Down Arrow|
|Transpose lines up||Ctrl+Shift+Up Arrow|
|Uncomment selected block||Ctrl+Shift+K|
|Unfold source functions||Alt+Shift+0|
¹ Select to brace selects a block bounded by braces. Before using this option, the cursor must be immediately next to the beginning or ending brace of the block.
In addition to the usual search capabilities, the Find feature can display the results of four different searches separately.
Click the Find icon or press Ctrl+F to perform searches in the currently open file, or in all open files.
Before starting a search, choose Find 1, Find 2, Find 3, or Find 4 to choose the window in which you want to see the results. You can maintain the results of four searches separately in the tabbed windows. The search results in the other windows remain unchanged.
To go directly to the line in the code which a search result was found, double-click the line in the search results.
Note:For convenience, you can also dock or float the Find Results window.
Lua Editor includes Perforce integration features. When you open a file from your Perforce environment, Lua Editor displays the file’s status in the top right of the text editing window.
The Source Control menu offers Check Out/Check In functionality.
Copyright © 2022 Open 3D Engine Contributors
Documentation Distributed under CC BY 4.0.
The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Policy page.