This function returns a struct containing all the options, and their values, for the extension with the given name.
The function will return undefined if the provided extension name is invalid.
extension_get_options(extension_name);
Argument | Type | Description |
---|---|---|
extension_name | String | The name of your extension asset as a string |
var _options = extension_get_options("MyExtension");
var _enabled = _options.enabled;
This code gets the options struct for an extension and reads a value from it.