c# - Giving objects unique ids onStart -
i have bunch of gameobjects assigning unique ids in start function.
void start() { uniqueid = string.format("{0:x}", datetime.now.ticks); }
i thought work every , duplicate ids. how can make sure unique?
unity
provide unique id every object instance, have @ getinstanceid.
Comments
Post a Comment