getGlobalFunc(name) {
	        return this.getGlobalFuncInternal(name, true);
	    }
Get global PackedFunc from the runtime.
@param name The name of the function.
@param autoAttachToScope Whether to track it via autoDispose
@returns The result function.