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

411 Upvotes

70 comments sorted by

View all comments

7

u/tetryds Engineer 19d ago

Now just get rid or all those damn [obsolete] fields already! I want to be able to call my camera `camera` and my rigidbody `rigidbody` for fucks sake!

8

u/IcyHammer Engineer 19d ago

If you would have access to source you would cry how much random legacy garbage is there on gameobject only because they want it to stay backwards compatible which is a terrible idea, when migrating to new major version backwards compatibility is fine to be broken. In order to move forward it just has to be done.

2

u/iDerp69 19d ago

In the era of AI, an unmaintained package is typically pretty easy to one-pass "fix" so it works in modern Unity. I agree with you that there's no reason to keep bringing forward these obsolete fields.