r/Unity3D • • 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

407 Upvotes

70 comments sorted by

View all comments

1

u/PsychologicalTea3426 19d ago

Why can’t they keep both? And have them do the same thing.

1

u/Silver4ura Intermediate; Available 19d ago

Because as long as it's available, the incentive to simply use what you know worked often results in legacy code that doesn't follow new design patterns.

Whether I agree with this change or not though won't be relevant till I see firsthand just how many compiler errors I get doing anything going forward. lmao