脚本¶
Inherits: Resource < Reference < Object
继承人: CSharpScript , GDScript , NativeScript , PluginScript , VisualScript
类别: 核心
简要说明¶
存储为资源的类。
方法¶
can_instance ( ) const |
|
get_base_script ( ) const |
|
get_instance_base_type ( ) const |
|
has_script_signal ( String signal_name ) const |
|
has_source_code ( ) const |
|
instance_has ( Object base_object ) const |
|
is_tool ( ) const |
|
方法说明¶
bool can_instance ( ) const
返回 true
如果脚本可以实例化。
Script get_base_script ( ) const
返回此脚本直接继承的脚本。
String get_instance_base_type ( ) const
返回脚本的基类型。
返回 true
如果脚本或基类用给定的名称定义了一个信号。
bool has_source_code ( ) const
返回 true
如果脚本包含非空源代码。
返回 true
如果 base_object
是此脚本的实例。
bool is_tool ( ) const
返回 true
如果脚本是工具脚本。可以在编辑器中运行工具脚本。
重新加载脚本的类实现。返回错误代码。