Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
A handle for a Resource's unique identifier.
The RID Variant type is used to access a low-level resource by its unique ID. RIDs are opaque, which means they do not grant access to the resource by themselves. They are used by the low-level server classes, such as DisplayServer, RenderingServer, TextServer, etc.
There are notable differences when using this API with C#. See C# API differences to GDScript for more information.
RID ( )
get_id ( ) const
is_valid ( ) const