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#과 GDScript의 API 차이점 for more information.
RID ( )
get_id ( ) const
is_valid ( ) const
RID RID ( )
Constructs an empty RID with the invalid ID
Constructs a RID as a copy of the given RID.
int get_id ( ) const
Returns the ID of the referenced low-level resource.
bool is_valid ( ) const
true if the RID is not
true if the RIDs are not equal.
true if the RID's ID is less than
true if the RID's ID is less than or equal to
true if both RIDs are equal, which means they both refer to the same low-level resource.
true if the RID's ID is greater than
true if the RID's ID is greater than or equal to