Object.GetInstanceIDfunction GetInstanceID () : intDescriptionReturns the instance id of the object. The instance id of an object is always guaranteed to be unique.
JavaScript
print(GetInstanceID()); using UnityEngine; import UnityEngine |
