RID
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.
A low-level resource may correspond to a high-level Resource
, such as Texture
or Mesh
.
Note: RIDs are only useful during the current session. It won't correspond to a similar resource if sent over a network, or loaded from a file at a later time.
通过 C# 使用该 API 时会有显著不同,详见 :ref:doc_c_sharp_differences
\ 。
构造函数
方法
运算符
bool | operator != ( right: RID ) |
bool | operator < ( right: RID ) |
bool | operator <= ( right: RID ) |
bool | operator == ( right: RID ) |
bool | operator > ( right: RID ) |
bool | operator >= ( right: RID ) |
构造函数说明
RID
RID ( )
Constructs an empty RID with the invalid ID 0
.
Constructs a RID as a copy of the given RID.
方法说明
Returns the ID of the referenced low-level resource.
Returns true
if the RID is not 0
.
运算符说明
bool
operator != ( right: RID
)
Returns true
if the RID s are not equal.
bool
operator < ( right: RID
)
Returns true
if the RID's ID is less than right
's ID.
bool
operator <= ( right: RID
)
Returns true
if the RID's ID is less than or equal to right
's ID.
bool
operator == ( right: RID
)
Returns true
if both RID s are equal, which means they both refer to the same low-level resource.
bool
operator > ( right: RID
)
Returns true
if the RID's ID is greater than right
's ID.
bool
operator >= ( right: RID
)
Returns true
if the RID's ID is greater than or equal to right
's ID.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。