Skip to content

Fix Unity 6.4 Object ID compatibility#41

Merged
wuyize25 merged 3 commits into
wuyize25:mainfrom
RuiCarvalhoCouto:fix/unity-6-4-entity-id
Jul 19, 2026
Merged

Fix Unity 6.4 Object ID compatibility#41
wuyize25 merged 3 commits into
wuyize25:mainfrom
RuiCarvalhoCouto:fix/unity-6-4-entity-id

Conversation

@RuiCarvalhoCouto

@RuiCarvalhoCouto RuiCarvalhoCouto commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes CS0619 compilation errors on Unity 6.4 and later.
  • Uses Object.GetEntityId() on Unity 6.4+.
  • Retains Object.GetInstanceID() on older supported Unity versions.
  • Preserves the existing GsplatResourceManager.Release(int) public API.
  • Stores internal object identifiers as ulong so both APIs share a common key type.

Testing

  • Imported a model of 10M Gaussians & SH2.
  • Rendered a model of 10M Gaussians & SH2 on Unity 6.3 LFS, in Play Mode and in Scene Mode.
  • Rendered a model of 10M Gaussians & SH2 on Unity 6.5, in Play Mode and in Scene Mode.
  • Check if SH3 and SH4 are rendering correctly.

@wuyize25

Copy link
Copy Markdown
Owner

Thank you for the PR and testing!

@wuyize25
wuyize25 merged commit bfa44ee into wuyize25:main Jul 19, 2026
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