Struct LunyObjectId
Unique identifier for an engine object/node in a LunyScript context. Separate from engine's native GetInstanceID() for cross-engine compatibility. Sequential integers for deterministic ordering and debugging.
public readonly struct LunyObjectId
Fields
Value
public readonly int Value
Field Value
- int
Methods
CompareTo(LunyObjectId)
public int CompareTo(LunyObjectId other)
Parameters
otherLunyObjectId
Returns
- int
Equals(LunyObjectId)
public bool Equals(LunyObjectId other)
Parameters
otherLunyObjectId
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
Generate()
Generates a new unique ObjectID.
public static LunyObjectId Generate()
Returns
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(LunyObjectId, LunyObjectId)
public static bool operator ==(LunyObjectId left, LunyObjectId right)
Parameters
leftLunyObjectIdrightLunyObjectId
Returns
- bool
operator !=(LunyObjectId, LunyObjectId)
public static bool operator !=(LunyObjectId left, LunyObjectId right)
Parameters
leftLunyObjectIdrightLunyObjectId
Returns
- bool