Skip to content

Conversation

@Codengineer
Copy link
Contributor

@Codengineer Codengineer commented Feb 10, 2026

Fix deprecated instanceID API usages in com.unity.ml-agents

Proposed change(s)

Fixing issue with GetInstanceID being obsolete since Unity 6.3. Now calling GetEntityId() where GetInstanceID() was used before to keep package and examples compatible with Unity 6.0, 6.3, 6.4 and 6.5

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

UUM-132069

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

Tested with DevProject and Project with 6.0, 6.3 and 6.5

Calling GetEntityId() where GetInstanceID was used before to keep package and examples compatible with Unity 6.0, 6.3, 6.4 and 6.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants