Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

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.

Примечание

There are notable differences when using this API with C#. See API различия C# и GDScript for more information.

Constructors

RID

RID ( )

RID

RID ( RID from )

Methods

int

get_id ( ) const

bool

is_valid ( ) const

Operators

bool

operator != ( RID right )

bool

operator < ( RID right )

bool

operator <= ( RID right )

bool

operator == ( RID right )

bool

operator > ( RID right )

bool

operator >= ( RID right )


Constructor Descriptions

RID RID ( )