AddScriptToEvaluateOnNewDocumentParameter

@Serializable
data class AddScriptToEvaluateOnNewDocumentParameter(val source: String, val worldName: String? = null, val includeCommandLineAPI: Boolean? = null, val runImmediately: Boolean? = null)

Constructors

constructor(source: String, worldName: String? = null, includeCommandLineAPI: Boolean? = null, runImmediately: Boolean? = null)

Properties

Link copied to clipboard

Specifies whether command line API should be available to the script, defaults to false.

Link copied to clipboard
val runImmediately: Boolean? = null

If true, runs the script immediately on existing execution contexts or worlds. Default: false.

Link copied to clipboard
Link copied to clipboard
val worldName: String? = null

If specified, creates an isolated world with the given name and evaluates given script in it. This world name will be used as the ExecutionContextDescription::name when the corresponding event is emitted.