diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-08 06:32:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-08 06:32:46 +0200 |
commit | d514bdff62b3140f2872d57bd5a933c40403aad7 (patch) | |
tree | 6655bdbfeee81755decffc6130b9a13329a6234d /modules/gdnative/doc_classes/GDNativeLibrary.xml | |
parent | 31600f07d2fae10a2f256ea5621e0a64d8bb671b (diff) | |
parent | 9499eef4da14bea59e55fe663ce16fa151ef21f7 (diff) |
Merge pull request #32607 from Calinou/doc-gdnative-singleton-prefix
Document the GDNative singleton method prefix being changeable
Diffstat (limited to 'modules/gdnative/doc_classes/GDNativeLibrary.xml')
-rw-r--r-- | modules/gdnative/doc_classes/GDNativeLibrary.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnative/doc_classes/GDNativeLibrary.xml b/modules/gdnative/doc_classes/GDNativeLibrary.xml index ae9a00543c..aa48ab44f2 100644 --- a/modules/gdnative/doc_classes/GDNativeLibrary.xml +++ b/modules/gdnative/doc_classes/GDNativeLibrary.xml @@ -39,7 +39,7 @@ [b]Note:[/b] If the library defines tool scripts that run inside the editor, [code]reloadable[/code] must be [code]false[/code]. Otherwise, the editor will attempt to unload the tool scripts while they're in use and crash. </member> <member name="singleton" type="bool" setter="set_singleton" getter="is_singleton" default="false"> - If [code]true[/code], Godot loads the library at startup rather than the first time a script uses the library, calling [code]gdnative_singleton[/code] after initializing the library. The library remains loaded as long as Godot is running. + If [code]true[/code], Godot loads the library at startup rather than the first time a script uses the library, calling [code]{prefix}gdnative_singleton[/code] after initializing the library (where [code]{prefix}[/code] is the value of [member symbol_prefix]). The library remains loaded as long as Godot is running. [b]Note:[/b] A singleton library cannot be [member reloadable]. </member> <member name="symbol_prefix" type="String" setter="set_symbol_prefix" getter="get_symbol_prefix" default=""godot_""> |