mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
[Doc] Clarify the session-specific nature of RID
and ObjectID
This commit is contained in:
parent
71699e08c9
commit
6ab303cd76
@ -693,6 +693,7 @@
|
|||||||
<return type="int" />
|
<return type="int" />
|
||||||
<description>
|
<description>
|
||||||
Returns the object's unique instance ID. This ID can be saved in [EncodedObjectAsID], and can be used to retrieve this object instance with [method @GlobalScope.instance_from_id].
|
Returns the object's unique instance ID. This ID can be saved in [EncodedObjectAsID], and can be used to retrieve this object instance with [method @GlobalScope.instance_from_id].
|
||||||
|
[b]Note:[/b] This ID is only useful during the current session. It won't correspond to a similar object if the ID is sent over a network, or loaded from a file at a later time.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_meta" qualifiers="const">
|
<method name="get_meta" qualifiers="const">
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<description>
|
<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.
|
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].
|
A low-level resource may correspond to a high-level [Resource], such as [Texture] or [Mesh].
|
||||||
|
[b]Note:[/b] 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.
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
</tutorials>
|
</tutorials>
|
||||||
|
Loading…
Reference in New Issue
Block a user