Search Issue Tracker

Active

Votes

0

Found in

2.2.2

Issue ID

UUM-137448

Regression

Yes

Getting 'Object.GetInstanceID()' is obsolete errors when creating a new project with specific templates

Mixed Reality Template

-

Steps to reproduce:

  1.  Create a new project using AR Mobile, Mixed Reality or VR template
  2.  Observe the errors

Actual results: 
Getting:
Library/PackageCache/com.unity.xr.interaction.toolkit@e986f3a5995f/Editor/Debugger/XRInteractableSnapVolumesTreeView.cs(386,28): error CS0619: 'EntityId.implicit operator EntityId(int)' is obsolete: 'EntityId will not be representable by an int in the future. This casting operator will be removed in a future version.'
Library/PackageCache/com.unity.xr.interaction.toolkit@e986f3a5995f/Editor/Debugger/XRInteractionDebuggerWindow.cs(372,24): error CS0619: 'Object.GetInstanceID()' is obsolete: 'GetInstanceID is deprecated. Use GetEntityId instead. This will be removed in a future version.'
Library/PackageCache/com.unity.xr.compositionlayers@d683872db661/Runtime/Emulation/SceneEmulatedProjectionRig.cs(46,38): error CS0619: 'Object.GetInstanceID()' is obsolete: 'GetInstanceID is deprecated. Use GetEntityId instead. This will be removed in a future version.'
Errors

Expected results: 
Project is created without issues on AR Mobile, Mixed Reality or VR templates

Reproducible with versions: 
6000.5.0b1 (c1f81ff5b082)
AR Mobile - 2.1.2
Mixed Reality - 2.2.2
VR - 9.2.2
 

Not reproducible with versions: 
6000.5.0a9 (253a859729df)
AR Mobile - 2.1.2
Mixed Reality - 2.2.2
VR - 9.2.2

Tested on (OS): 
MacOS Sequoia 15.7.4
Win 11

Notes: reproducible with High Definition 3D sample Template - 16.1.2 as well

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.