Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
RID¶
A handle for a Resource's unique identifier.
Description¶
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.
A low-level resource may correspond to a high-level Resource, such as Texture or Mesh.
Note
There are notable differences when using this API with C#. See Différences de l'API C# par rapport à GDScript for more information.
Constructors¶
RID ( ) |
|
Methods¶
get_id ( ) const |
|
is_valid ( ) const |
Operators¶
operator != ( RID right ) |
|
operator < ( RID right ) |
|
operator <= ( RID right ) |
|
operator == ( RID right ) |
|
operator > ( RID right ) |
|
operator >= ( RID right ) |
Constructor Descriptions¶
RID RID ( )
Constructs an empty RID with the invalid ID 0
.
Constructs a RID as a copy of the given RID.
Method Descriptions¶
int get_id ( ) const
Returns the ID of the referenced low-level resource.
bool is_valid