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 godot.CSharpScript
.
Static variables
Static methods
staticgetDomainId():Int
Returns the current MonoDomain ID.
Note: The Mono runtime must be initialized for this method to work (use godot.GodotSharp.isRuntimeInitialized
to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash.
staticgetScriptsDomainId():Int
Returns the scripts MonoDomain's ID. This will be the same MonoDomain ID as godot.GodotSharp.getDomainId
, unless the scripts domain isn't loaded.
Note: The Mono runtime must be initialized for this method to work (use godot.GodotSharp.isRuntimeInitialized
to check). If the Mono runtime isn't initialized at the time this method is called, the engine will crash.
staticisDomainFinalizingForUnload(domainId:Int):Bool
Returns true
if the domain is being finalized, false
otherwise.
staticisRuntimeShuttingDown():Bool
Returns true
if the Mono runtime is shutting down, false
otherwise.