ObjectId||doc136123

September 20, 2022

Format

 Object.objID 
  • The class to which the attribute belongs:Object

Description

The object's unique ID. When the object is created, the game will automatically assign a unique objID to the object, so as to distinguish each object in the game and access specific objects.

The object ID of entity is different from the ID of instance

Value Returned

type Description
int ObjectId


Code Samples

output entity object id

local objID = object.objID
print(objID)