Table of Contents

Struct LunyObjectId

Namespace
Luny.Engine.Bridge
Assembly
Luny.dll

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

other LunyObjectId

Returns

int

Equals(LunyObjectId)

public bool Equals(LunyObjectId other)

Parameters

other LunyObjectId

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Generate()

Generates a new unique ObjectID.

public static LunyObjectId Generate()

Returns

LunyObjectId

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

left LunyObjectId
right LunyObjectId

Returns

bool

operator !=(LunyObjectId, LunyObjectId)

public static bool operator !=(LunyObjectId left, LunyObjectId right)

Parameters

left LunyObjectId
right LunyObjectId

Returns

bool