Search Issue Tracker

Active

Votes

0

Found in

2.2.2

Issue ID

UUM-132977

Regression

No

Warnings are thrown after building Mixed Reality template

Mixed Reality Template

-

Reproduction steps:
1. Create a new Mixed Reality template project
2. Build the project
3. Observe the Console

Actual result: “Assets/MRTemplateAssets/Scripts/OcclusionManager.cs(67,14): warning CS0414: The field 'OcclusionManager.m_HandRemovalEnabled' is assigned but its value is never used” warning is thrown
Expected result: No errors or warnings are thrown

Reproducible with: 6000.0.66f1, 6000.3.6f1, 6000.4.0b6, 6000.5.0a5

Reproduced on: Windows 11, macOS Sequoia 26.2 (M4)

Note:
Additional warnings are thrown in 6000.4.0b6:
{code:java}
Assets/MRTemplateAssets/Scripts/ARBoundingBoxDebugVisualizer.cs(149,30): warning CS0618: 'Object.FindFirstObjectByType<T>()' is obsolete: 'FindFirstObjectByType has been deprecated because it relies on instance ID ordering. Use FindAnyObjectByType instead, which does not depend on ordering.' {code}
{code:java}
Assets/MRTemplateAssets/Scripts/GazeTooltips.cs(32,30): warning CS0618: 'Object.FindFirstObjectByType<T>()' is obsolete: 'FindFirstObjectByType has been deprecated because it relies on instance ID ordering. Use FindAnyObjectByType instead, which does not depend on ordering.'
{code}

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.