1 Star 1 Fork 0

天天编程/godot-docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
class_signal.rst 6.51 KB
一键复制 编辑 原始数据 按行查看 历史
github_url: hide

Signal

Class representing a signal defined in an object.

Methods

:ref:`Signal<class_Signal>` :ref:`Signal<class_Signal_method_Signal>` ( :ref:`Object<class_Object>` object, :ref:`StringName<class_StringName>` signal_name )
:ref:`int<class_int>` :ref:`connect<class_Signal_method_connect>` ( :ref:`Callable<class_Callable>` callable, :ref:`Array<class_Array>` binds=[ ], :ref:`int<class_int>` flags=0 )
:ref:`Variant<class_Variant>` :ref:`disconnect<class_Signal_method_disconnect>` ( :ref:`Callable<class_Callable>` callable )
void :ref:`emit<class_Signal_method_emit>` ( ... ) vararg
:ref:`Array<class_Array>` :ref:`get_connections<class_Signal_method_get_connections>` ( )
:ref:`StringName<class_StringName>` :ref:`get_name<class_Signal_method_get_name>` ( )
:ref:`Object<class_Object>` :ref:`get_object<class_Signal_method_get_object>` ( )
:ref:`int<class_int>` :ref:`get_object_id<class_Signal_method_get_object_id>` ( )
:ref:`bool<class_bool>` :ref:`is_connected<class_Signal_method_is_connected>` ( :ref:`Callable<class_Callable>` callable )
:ref:`bool<class_bool>` :ref:`is_null<class_Signal_method_is_null>` ( )

Method Descriptions

Creates a new signal named signal_name in the given object.


Connects this signal to the specified :ref:`Callable<class_Callable>`, optionally providing binds and connection flags.


Disconnects this signal from the specified :ref:`Callable<class_Callable>`.


  • void emit ( ... ) vararg

Emits this signal to all connected objects.


Returns the list of :ref:`Callable<class_Callable>`s connected to this signal.


Returns the name of this signal.


Returns the object emitting this signal.


Returns the ID of the object emitting this signal (see :ref:`Object.get_instance_id<class_Object_method_get_instance_id>`).


Returns true if the specified :ref:`Callable<class_Callable>` is connected to this signal.


Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ttcode-net/godot-docs.git
git@gitee.com:ttcode-net/godot-docs.git
ttcode-net
godot-docs
godot-docs
master

搜索帮助