Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


globalobjectid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
globalobjectid [2021/02/11 01:29]
uninomiconadmin
globalobjectid [2021/02/11 20:33]
uninomiconadmin [Bug: Querying deleted objects]
Line 56: Line 56:
 This seems to be a bug. The correct result should have been ''null'', because that GID was deleted. This seems to be a bug. The correct result should have been ''null'', because that GID was deleted.
  
-I have had some luck <sup>[//[[:wiki:citation-needed|citation needed]]//]</sup> querying these 'bad' GIDs individually with ''GlobalObjectIdentifierToObjectSlow''. This seems to properly return null in certain cases. This does not cure all cases, however((Luckily, there was only a small set of objects that were valid to be stored by my GIDs, and so I could discard any GIDs resolving to the wrong type.)).+I have had some luck <sup>[//[[:wiki:tag:dark-magic|dark magic]]//]</sup> querying these 'bad' GIDs individually with ''GlobalObjectIdentifierToObjectSlow''. This seems to properly return null in certain cases. This does not cure all cases, however((Luckily, there was only a small set of objects that were valid to be stored by my GIDs, and so I could discard any GIDs resolving to the wrong type.)).
  
 +Update: This is fixed in 2021.1 [[https://issuetracker.unity3d.com/issues/globalobjectidglobalobjectidentifierstoobjectsslow-sometimes-returns-a-random-existing-gameobject|bug tracker]].
 +
 +{{backlinks>.}}
globalobjectid.txt · Last modified: 2021/02/11 20:36 by uninomiconadmin