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...
EncodedObjectAsID¶
继承: RefCounted < Object
保存对 Object 实例 ID 的引用。
描述¶
实用程序类,其中包含对 Object 实例的内部标识符的引用,由 Object.get_instance_id 给出。然后可以使用该 ID 通过 @GlobalScope.instance_from_id 检索对象实例。
该类由编辑器检查器和脚本调试器在内部使用,但也可用于插件中,以使用其 ID 传递和显示对象。
属性¶
|
属性说明¶
int object_id = 0
存储在该 EncodedObjectAsID 实例中的 Object 标识符。可以使用 @GlobalScope.instance_from_id 检索对象实例。