NativeScript

Inherits: Script < Resource < Reference < Object

属性

String

class_name

“”

GDNativeLibrary

library

String

script_class_icon_path

“”

String

script_class_name

“”

方法

String

get_class_documentation ( ) const

String

get_method_documentation ( String method ) const

String

get_property_documentation ( String path ) const

String

get_signal_documentation ( String signal_name ) const

Variant

new () vararg

属性说明

Default

“”

Setter

set_class_name(value)

Getter

get_class_name()


Setter

set_library(value)

Getter

get_library()


  • String script_class_icon_path

Default

“”

Setter

set_script_class_icon_path(value)

Getter

get_script_class_icon_path()


Default

“”

Setter

set_script_class_name(value)

Getter

get_script_class_name()

方法说明

  • String get_class_documentation ( ) const

返回之前用godot_nativescript_set_class_documentation设置的文档字符串。


返回之前用godot_nativescript_set_method_documentation设置的文档字符串。


返回之前用godot_nativescript_set_property_documentation设置的文档字符串。


  • String get_signal_documentation ( String signal_name ) const

返回之前用godot_nativescript_set_signal_documentation设置的文档字符串。


构建基础类型的新对象,并附加此类型的脚本。

注意: 传递给这个函数的任何参数将被忽略,不会传递给局部构造函数。这将在未来的API扩展中改变。