Click or drag to resize

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.

Inheritance Hierarchy
SystemObject
  GodotGodotSharp

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static class GodotSharp

The GodotSharp type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberSingleton
Top
Methods
  NameDescription
Public methodStatic memberAttachThread

Attaches the current thread to the Mono runtime.

Public methodStatic memberDetachThread

Detaches the current thread from the Mono runtime.

Public methodStatic memberGetDomainId

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.

Public methodStatic memberGetScriptsDomainId

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.

Public methodStatic memberIsDomainFinalizingForUnload

Returns true if the domain is being finalized, false otherwise.

Public methodStatic memberIsRuntimeInitialized

Returns true if the Mono runtime is initialized, false otherwise.

Public methodStatic memberIsRuntimeShuttingDown

Returns true if the Mono runtime is shutting down, false otherwise.

Public methodStatic memberIsScriptsDomainLoaded

Returns true if the scripts domain is loaded, false otherwise.

Top
See Also