Closed dementcore closed 6 months ago
Hi @dementcore,
You can use a host variable for this purpose.
First, you'll need a HostFunctions
object:
engine.AddHostObject("host", new HostFunctions());
Once you have that, you can do the following in JavaScript:
let variable= host.newVar('');
var result = myhostobj.tryread(5,variable.out);
variable.value == 'Test'; // true
Good luck!
Please reopen this issue if you have additional thoughts or questions about this topic. Thank you!
Hi!
It is possible to invoke a host function with out parameters from script and get the value in script after invoke?
Example host code:
Example script code:
Thanks in advance!