GodotSharp Class |
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.
Namespace: Godot
public static class GodotSharp
The GodotSharp type exposes the following members.
Name | Description | |
---|---|---|
AttachThread | Attaches the current thread to the Mono runtime. | |
DetachThread | Detaches the current thread from the Mono runtime. | |
GetDomainId | Returns the current MonoDomain ID. Note: The Mono runtime must be initialized for this method to work (use IsRuntimeInitialized to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash. | |
GetScriptsDomainId | Returns the scripts MonoDomain's ID. This will be the same MonoDomain ID as GetDomainId, unless the scripts domain isn't loaded. Note: The Mono runtime must be initialized for this method to work (use IsRuntimeInitialized to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash. | |
IsDomainFinalizingForUnload | Returns true if the domain is being finalized, false otherwise. | |
IsRuntimeInitialized | Returns true if the Mono runtime is initialized, false otherwise. | |
IsRuntimeShuttingDown | Returns true if the Mono runtime is shutting down, false otherwise. | |
IsScriptsDomainLoaded | Returns true if the scripts domain is loaded, false otherwise. |