Holds a reference to an Object's instance ID.
    public class EncodedObjectAsID : Reference

Utility class which holds a reference to the internal identifier of an Object instance, as given by Object.GetInstanceId(). This ID can then be used to retrieve the object instance with GD.InstanceFromId(ulong).

This class is used internally by the editor inspector and script debugger, but can also be used in plugins to pass and display objects as their IDs.

Inheritance Chain

Constructors

    public EncodedObjectAsID()

Properties

    public ulong ObjectId { get; set; }

The Object identifier stored in this EncodedObjectAsID instance. The object instance can be retrieved with GD.InstanceFromId(ulong).

Methods

    [Obsolete("GetObjectId is deprecated. Use the ObjectId property instead.")]
    public ulong GetObjectId()

    [Obsolete("SetObjectId is deprecated. Use the ObjectId property instead.")]
    public void SetObjectId(ulong id)
Tags: