29 views

Details

1) Create a new UI script
2) Paste the following to the script portion of the UI script.


functionsUIscriptHelpers();
function functionsUIscriptHelpers() {
	function helper1() {
		alert("TEST helper1 FUNC")
	}
	functionsUIscriptHelpers.functionsUIscriptHelpers = helper1;
}

3) Set UI script to Global.

4) Give it a name "functionsUIscript" and save.

This function helper1 can be called in a UI action as follows.


function onClickOfUIAction() {
	functionsUIscriptHelpers.helper1();
}

Article Information

Last Updated:2020-01-02 01:50:12
Published:2019-12-29