1 Create a new plug-in project or use the already existing one.
2 Create a new folder under the project; for example, name it as ‘globalFunctoins’.
3 Create an xml file under the folder; for example, name it as ‘ExtendedGlobalFunction.xml’.
4 Edit the file to define a global function. Notice that, the attribute ‘showInAction’ should be set to ‘true’ to indicate this function will be available in the ‘Action’ panel of XUI ECA editor.