unity-experiment-framework icon indicating copy to clipboard operation
unity-experiment-framework copied to clipboard

Warning in UXFSessionDisplay.cs after importing UXF

Open nuclear-weasels opened this issue 11 months ago • 2 comments

After importing UXF, I got the following warning related to UXFSessionDisplay.cs:

  • Assets\UXF\Scripts\Etc\Editor\UXFSessionDisplay.cs(44,23): warning CS0618: 'Object.FindObjectOfType<T>()' is obsolete: 'Object.FindObjectOfType has been deprecated. Use Object.FindFirstObjectByType instead or if finding any instance is acceptable the faster Object.FindAnyObjectByType'

I am using:

  • Unity 6 (6000.0.27f1)
  • XR Interaction Toolkit v3.0.7
  • UXF v2.4.4

Thanks for all your work on this project!

nuclear-weasels avatar Jan 08 '25 19:01 nuclear-weasels

Looks like UXF doesn't work under Unity 6. I don't have much capacity to update UXF going forwards. If anyone wants to create a PR fixing these issues feel free. Otherwise, I recommend trying an older Unity version

jackbrookes avatar Jan 09 '25 16:01 jackbrookes

Hey! I've gone ahead and done the version bump while maintaining backward compatibility. Let me know if everything looks good, or if it would be better to release a version that's only meant for Unity 6 and beyond.

ThatAmuzak avatar Jan 24 '25 18:01 ThatAmuzak