Serialization.

GetEntityId(Object) Method

Summary

[Editor-Only]
  • In Unity 6.3+: returns the entity ID of the object.
  • In older versions: returns the instance ID of the object.

Syntax

public static int GetEntityId(Object obj)

Parameters

Name Type Description
obj Object

Return Value

Type Description
int