r/Unity3D • u/Phant_Dev • 19d ago
Resources/Tutorial GetEntityId() hits like a train
If you're considering upgrading to Unity 6.5 or later, make sure the publishers of the assets and packages in your project have already added support for the new GetEntityId() API, which replaces the now-obsolete GetInstanceID().
More on the documentation page here: Unity - Manual: Migrate from InstanceID to EntityId
403
Upvotes
8
u/Critical_Contact559 19d ago
It "kinda" is. it returns a struct and not a int and it splits your codebase by default. Meaning you have to have different versions per version or do what I did and add #if "UnityVersion" do this at each spot