varNameAtPluginName: name of the variable, combined with the plugin name: variableName@pluginName
varValue: value of the variable. Can be nullptr, in which case the value of the variable will be the top item of the provided stack (or, if stackHandle is 0, varName will only be used for code auto-completion purpose).
: a stack handle obtained with simCreateStack
. Set to 0 if varValue
is not nullptr. Set to -1 if varValue
is not nullptr and you do not want the variable to appear in the script editor auto-completion list. If a stack is provided, it will be released at a later point by CoppeliaSim.