import

fun import(import: String, alias: String? = null)

Imports the selected import using an optional alias. Wildcard imports using * are supported, but they cannot have an alias.

If an alias is given, the import will be executed with a Kotlin import alias using the as operator. The import will be available in future scripts.

Example usage: engine.import("com.badlogic.gdx.utils.*")

When performing multiple imports at once, use importAll instead.