Bridge between Godot and the Mono runtime (Mono-enabled builds only).
</brief_description>
<description>
This class is a bridge between Godot and the Mono runtime. It exposes several low-level operations and is only available in Mono-enabled Godot builds.
See also [CSharpScript].
</description>
<tutorials>
</tutorials>
...
...
@@ -11,26 +14,30 @@
<returntype="void">
</return>
<description>
Attaches the current thread to the mono runtime.
Attaches the current thread to the Mono runtime.
</description>
</method>
<methodname="detach_thread">
<returntype="void">
</return>
<description>
Detaches the current thread from the mono runtime.
Detaches the current thread from the Mono runtime.
</description>
</method>
<methodname="get_domain_id">
<returntype="int">
</return>
<description>
Returns the current MonoDomain ID.
[b]Note:[/b] The Mono runtime must be initialized for this method to work (use [method is_runtime_initialized] to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash.
</description>
</method>
<methodname="get_scripts_domain_id">
<returntype="int">
</return>
<description>
Returns the scripts MonoDomain's ID. This will be the same MonoDomain ID as [method get_domain_id], unless the scripts domain isn't loaded.
[b]Note:[/b] The Mono runtime must be initialized for this method to work (use [method is_runtime_initialized] to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash.
</description>
</method>
<methodname="is_domain_finalizing_for_unload">
...
...
@@ -39,26 +46,28 @@
<argumentindex="0"name="domain_id"type="int">
</argument>
<description>
Returns whether the domain is being finalized.
Returns [code]true[/code] if the domain is being finalized, [code]false[/code] otherwise.
</description>
</method>
<methodname="is_runtime_initialized">
<returntype="bool">
</return>
<description>
Returns [code]true[/code] if the Mono runtime is initialized, [code]false[/code] otherwise.
</description>
</method>
<methodname="is_runtime_shutting_down">
<returntype="bool">
</return>
<description>
Returns [code]true[/code] if the Mono runtime is shutting down, [code]false[/code] otherwise.
</description>
</method>
<methodname="is_scripts_domain_loaded">
<returntype="bool">
</return>
<description>
Returns whether the scripts domain is loaded.
Returns [code]true[/code] if the scripts domain is loaded, [code]false[/code] otherwise.