[TOC]

Scripting To enable AngelScript scripting support, the Script subsystem needs to be created and registered after initializing the Engine. This is accomplished by the following code, seen eg. in Tools/Urho3DPlayer/Urho3DPlayer.cpp:

context->RegisterSubsystem(new Script(context)); There are three ways the AngelScript language can be interacted with in Urho3D:

Immediate execution Immediate execution takes one line of AngelScript, compiles it, and executes. This is not recommended for anything that needs high performance, but can be used for example to implement a developer console. Call the Script subsystem’s Execute() function to use. For example:

GetSubsystem