场景管理场景节点Slot本页总览Slot 描述: 用于监听节点事件的信号槽对象类。 继承自:Object。 add 类型: 函数。 描述: 向此信号槽添加一个新的处理回调函数。 签名: add: function(self: Slot, handler: function(...: any)) 参数: 参数名类型描述handlerfunction要添加的处理函数。 set 类型: 函数。 描述: 清除信号槽上之前添加的处理回调函数,并设置一个新的处理回调函数。 签名: set: function(self: Slot, handler: function(...: any)) 参数: 参数名类型描述handlerfunction要设置的处理回调函数。 remove 类型: 函数。 描述: 从此信号槽中删除先前添加的处理回调函数。 签名: remove: function(self: Slot, handler: function(...: any)) 参数: 参数名类型描述handlerfunction要删除的处理回调函数。 clear 类型: 函数。 描述: 清除此信号槽中的所有处理回调函数。 签名: clear: function(self: Slot)