Skip to content

Add Unity 6.5 compatibility for GetEntityId#46

Open
mingos wants to merge 1 commit into
Haruma-K:masterfrom
mingos:fix/unity-6-5-entity-id
Open

Add Unity 6.5 compatibility for GetEntityId#46
mingos wants to merge 1 commit into
Haruma-K:masterfrom
mingos:fix/unity-6-5-entity-id

Conversation

@mingos

@mingos mingos commented Jul 1, 2026

Copy link
Copy Markdown

Fixes #45

Summary

This PR adds compatibility with Unity 6.5 by replacing GetInstanceID() with GetEntityId() where required.

To preserve compatibility with earlier Unity versions, conditional compilation is used:

  • Unity 6.5 or newer: GetEntityId() / EntityId
  • Unity 6.3 and 6.4: GetInstanceID() / int

Changes

Updated the following classes:

  • PageContainer
  • ModalContainer
  • SheetContainer

Tested

  • Unity 6.5: Compiles successfully
  • Unity 6.4: Existing implementation is preserved through conditional compilation

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.

Unity 6.5 compatibility: Object.GetInstanceID() causes compilation errors

1 participant