I have to store information about every object (gameobject/mesh) in an excel file. Like I have a sphere object I am getting its instanceId and saving it in excel. Within the excel file along with object instance id i am saving additional things like object display name, type.
objInstanceId = transform.GetInstanceID();
My question is that is the safest way? I checked that instanceID is unique but I am not sure if it is gets changed ever? Like if I replace my model will it get changed? I need a unique and unchanged identifier for every single mesh so that I can save it in an excel file and associate some data with the identifier!