This function returns the value of the given option in the extension with the given name.
The function will return undefined if the provided extension name is invalid.
extension_get_option_value(extension_name, option_name);
Argument | Type | Description |
---|---|---|
extension_name | String | The name of your extension asset as a string |
option_name | String | The name of the option to read |
var _enabled = extension_get_option_value("MyExtension", "enabled");
This code gets the value of the enabled option in the MyExtension extension.