|
Infinity Engine v0.6.20
C++ API Documentation
|
Utility for detecting available scripting runtime bridges. More...
#include <RuntimeUtils.hpp>
Static Public Member Functions | |
| static bool | isRuntimeAvailable (Infinity::Data::ProceduralComponentRuntime runtime) |
| Checks if a specific scripting runtime is available. | |
Utility for detecting available scripting runtime bridges.
RuntimeUtils provides functionality to query which scripting language runtimes are available in the current Infinity Engine instance. This enables procedural components to determine whether they can execute scripts written in C#, Python, JavaScript, or other supported languages.
The Infinity Engine supports procedural components implemented in multiple languages through runtime bridges. These bridges allow components to be authored in high-level scripting languages while integrating seamlessly with the native C++ engine. Runtime availability depends on:
Common use cases:
Example usage:
|
static |
Checks if a specific scripting runtime is available.
Queries whether the specified runtime bridge is available in the current engine instance. Returns true if components using that runtime can be loaded and executed.
| runtime | The runtime to check (from ProceduralComponentData schema). |