Installation
Follow these steps to set up Angelscript for Unreal Engine:
Engine Setup
You have two options:
- Use the pre-built engine binaries if available
- Compile the engine yourself from source
Using Pre-built Binaries
If pre-built engine binaries are available for your platform, you can download them from the project’s distribution channels. Follow the standard Unreal Engine installation process.
Compiling from Source
To compile from source:
-
Clone the UnrealEngine-Angelscript repository:
Terminal window git clone --recursive https://github.com/Hazelight/UnrealEngine-Angelscript.git -
Follow the standard compilation instructions for Unreal Engine for your platform
- For Windows, run
Setup.batand thenGenerateProjectFiles.bat, then open the solution and build - For macOS, run
Setup.shand thenGenerateProjectFiles.sh, then open the project and build - For Linux, run
Setup.shand thenGenerateProjectFiles.sh, then use make to build
- For Windows, run
-
Once the engine is built, you can create or open a project with it
Project Setup
Once you have the engine installed:
- Create a new project or open an existing one with the custom engine
- The plugin should be automatically enabled for your project
Installing the VS Code Extension
For the best development experience, install the VS Code extension:
- Install Visual Studio Code if you haven’t already
- Install the Unreal Angelscript Extension from the VS Code Marketplace
- The extension provides features like:
- Code completion
- Error checking
- Go to definition
- Find references
- Debugging support
Verifying Installation
To verify that everything is set up correctly:
- Create a new script file in your project’s
Script/folder (it will be created automatically when you first open the project) - Add a simple actor class:
class ATestActor : AActor{}
- Save the file and check that it appears in the Unreal Editor’s Place Actors panel
Next Steps
Now that you have installed Angelscript for Unreal Engine, you can proceed to the Scripting Introduction to learn how to use it.