Skip to content

BUG: Object.GetInstanceID()' is obsolete for 6000.5.6f1 #532

Closed

Description

@alexxtaurus83

Unity UI Extensions Bug Report

Describe the bug

Runtime\Scripts\Utilities\ExtensionMethods.cs(27,17): error CS0619: 'Object.GetInstanceID()' is obsolete: 'GetInstanceID is deprecated. Use GetEntityId instead. This will be removed in a future version.

Runtime\Scripts\Controls\ColorPicker\ColorPickerPresets.cs(38,38): error CS0619: 'Object.GetInstanceID()' is obsolete: 'GetInstanceID is deprecated. Use GetEntityId instead. This will be removed in a future version.'

Expected behavior

Use GetEntityId instead

Actual behavior

GetInstanceID()

  • Unity Version: 6000.5.6f1
  • Unity UI Extensions Version
  • 3.0.0

Activity

  1. ardaocakkk commented on Aug 12, 2026

    @ardaocakkk

    same bug, using GetEntityId fixed it

  2. empika commented on Aug 25, 2026

    @empika

    Yup, I've hit this too and it's blocking my CI builds. I've cloned and fixed and added as a separate package to my project.
    I'm not confident in making a pull request as I'm not entirely sure what IsPrefab is trying to accomplish. I think it could just be replaced with PrefabUtility.IsOutermostPrefabInstanceRoot?

  3. SimonDarksideJ commented on Sep 24, 2026

    @SimonDarksideJ
    Contributor

    Gah, they added/changed even more. I fixed all the ones that caused errors and the automation didn't find any more for V3. SO thanks for the PR to fix the remaining. But the PR needs refreshing from development

  4. SimonDarksideJ commented on Oct 13, 2026

    @SimonDarksideJ
    Contributor

    Resolved in #537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions